Section IV - library
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}extern crate actix_web;
extern crate test_data_generation;static VER: &str = "v1";pub mod tdg_service;ArchConfWorkshopUser:~/environment/rust-tdg/target/debug (master) $ cargo test Compiling rust-tdg v0.1.0 (/home/ec2-user/environment/rust-tdg) error[E0583]: file not found for module `tdg_service` --> src/lib.rs:7:1 | 7 | pub mod tdg_service; | ^^^^^^^^^^^^^^^^^^^^ | = help: to create the module `tdg_service`, create file "src/tdg_service.rs" error[E0583]: file not found for module `tdg_service` --> src/lib.rs:7:1 | 7 | pub mod tdg_service; | ^^^^^^^^^^^^^^^^^^^^ | = help: to create the module `tdg_service`, create file "src/tdg_service.rs" error: aborting due to previous error For more information about this error, try `rustc --explain E0583`. error: aborting due to previous error For more information about this error, try `rustc --explain E0583`. error: could not compile `rust-tdg`. To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed
Last updated