Section IV - library
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}extern crate actix_web;static VER: &str = "v1";pub mod hello_world;ArchConfWorkshopUser:~/environment/rust-daas (master) $ cargo build Compiling rust-daas v0.1.0 (/home/ec2-user/environment/rust-daas) error[E0583]: file not found for module `hello_world` --> src/lib.rs:5:1 | 5 | pub mod hello_world; | ^^^^^^^^^^^^^^^^^^^^ | = help: to create the module `hello_world`, create file "src/hello_world.rs" error[E0463]: can't find crate for `actix_web` --> src/lib.rs:1:1 | 1 | extern crate actix_web; | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate error: aborting due to 2 previous errors Some errors have detailed explanations: E0463, E0583. For more information about an error, try `rustc --explain E0463`. error: could not compile `rust-daas`.
Last updated