How to build and test Rust programs and libraries without Cargo, only using rustc and rustdoc.
at main 14 lines 207 B view raw
1///Prints something to `stdout`. 2/// 3/// Example test: 4/// ``` 5/// assert_eq!(9, 9) 6/// ``` 7pub fn hello_func() { 8 println!("Hi from rust-lib!") 9} 10 11#[test] 12fn test_1and1eq2() { 13 assert_eq!(1 + 1, 2) 14}