Rename the probe rust file to probe.rs

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...
This commit is contained in:
Peter Kolloch 2019-11-24 20:48:14 +01:00 committed by GitHub
parent 303e1a08e7
commit f8c7340ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ fn main() {
fn compile_probe() -> Option<ExitStatus> {
let rustc = env::var_os("RUSTC")?;
let out_dir = env::var_os("OUT_DIR")?;
let probefile = Path::new(&out_dir).join("lib.rs");
let probefile = Path::new(&out_dir).join("probe.rs");
fs::write(&probefile, PROBE).ok()?;
Command::new(rustc)
.arg("--edition=2018")