Skip to content

Commit

Permalink
Don't use CARGO_MANIFEST_DIR in include!() path
Browse files Browse the repository at this point in the history
include!() expects a path relative to the current file, so we don't need
to dynamically construct its argument at all. In fact, the current
argument breaks the build when CARGO_MANIFEST_DIR holds a relative path
from the working directory and the working directory isn't the crate
root.
  • Loading branch information
tchebb authored and chifflier committed Dec 12, 2022
1 parent fbdda56 commit 4a90626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;

include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/load.rs"));
include!("src/load.rs");

fn main() -> Result<()> {
println!("cargo:rerun-if-changed=assets/oid_db.txt");
Expand Down

0 comments on commit 4a90626

Please sign in to comment.