Handle multiple binaries in one crate

This commit is contained in:
Dave Rolsky
2023-12-10 11:03:10 -06:00
parent 9fb7236944
commit c507aeb1b5
6 changed files with 43 additions and 10 deletions

11
test-project/src/bin2.rs Normal file
View File

@@ -0,0 +1,11 @@
fn main() {
println!("Hello, world!");
}
#[cfg(test)]
mod test {
#[test]
fn test_something() {
assert_eq!(1, 1);
}
}