diff --git a/crates/crate1/build.rs b/crates/crate1/build.rs index f95d8ad..0754546 100644 --- a/crates/crate1/build.rs +++ b/crates/crate1/build.rs @@ -5,5 +5,5 @@ fn main() { let out = PathBuf::from(std::env::var("OUT_DIR").unwrap()); - std::fs::write(out.join("generated"), generated).unwrap(); + std::fs::write(out.join("generated.rs"), generated).unwrap(); } diff --git a/crates/crate1/src/lib.rs b/crates/crate1/src/lib.rs index 64b8b85..c39f292 100644 --- a/crates/crate1/src/lib.rs +++ b/crates/crate1/src/lib.rs @@ -1,4 +1,6 @@ -include!(concat!(env!("OUT_DIR"), "/generated")); +include!(concat!(env!("OUT_DIR"), "/generated.rs")); + +pub const NOT_GENERATED: u16 = 524; #[cfg(test)] mod tests { diff --git a/crates/crate2/src/lib.rs b/crates/crate2/src/lib.rs index 396a81b..31e1bb2 100644 --- a/crates/crate2/src/lib.rs +++ b/crates/crate2/src/lib.rs @@ -1,5 +1,3 @@ -use crate1:: - #[cfg(test)] mod tests { #[test]