From f8c7340ec7684c91a45d120b8f63157aaee7b5d3 Mon Sep 17 00:00:00 2001 From: Peter Kolloch Date: Sun, 24 Nov 2019 20:48:14 +0100 Subject: [PATCH] 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... --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 862fb7a..2cd6bdc 100644 --- a/build.rs +++ b/build.rs @@ -44,7 +44,7 @@ fn main() { fn compile_probe() -> Option { 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")