Skip to content

Commit

Permalink
Use .rs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
chinedufn committed Jun 24, 2020
1 parent 3befd50 commit e159f6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/crate1/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
4 changes: 3 additions & 1 deletion crates/crate1/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions crates/crate2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate1::

#[cfg(test)]
mod tests {
#[test]
Expand Down

0 comments on commit e159f6d

Please sign in to comment.