Skip to content
Myr

Rename the probe rust file to probe.rs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This would help some people with build problems using [nix](https://nixos.org) or to be more specific `buildRustCrate` (but that's probably not meaningful to you). See https://github.com/kolloch/crate2nix/issues/39 and https://github.com/NixOS/nixpkgs/issues/74071. It is clearly a bug in buildRustCrate but if you could accept this change in the meanwhile...

authored by Peter Kolloch · committed by GitHub · parent 303e1a0 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:build.rs+1 added-1 removed
42 unmodified lines
4344fn compile_probe() -> Option<ExitStatus> {45 let rustc = env::var_os("RUSTC")?;46 let out_dir = env::var_os("OUT_DIR")?;47 let probefile = Path::new(&out_dir).join("lib.rs");47 let probefile = Path::new(&out_dir).join("probe.rs");48 fs::write(&probefile, PROBE).ok()?;49 Command::new(rustc)50 .arg("--edition=2018")51 .arg("--crate-name=anyhow_build")
8 unmodified lines