This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! ## Documentation Example | |
//! | |
//! This is a lot of great documentation, you ought to read and maintain this. | |
//! | |
//! Somehow i think, you are going to not do that. | |
//! | |
//! ```rust | |
//! use documentation_test::meaning_of_life; | |
//! | |
//! fn it_works() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> cargo test | |
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs | |
Running target\debug\deps\documentation_test-4cd8ffe7876c6af7.exe | |
running 1 test | |
test tests::it_works ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out | |
Doc-tests documentation_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! ## Documentation Example | |
//! | |
//! This is a lot of great documentation, you ought to read and maintain this. | |
//! | |
//! Somehow i think, you are going to not do that. | |
//! | |
//! ```rust | |
//! fn it_works() { | |
//! assert_eq!(2 + 2, 4); | |
//! } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! ## Documentation Example | |
//! | |
//! This is a lot of great documentation, you ought to read and maintain this. | |
//! | |
//! Somehow i think, you are going to not do that. | |
//! | |
//! ```rust | |
//! fn it_works() { | |
//! assert_eq!(2 + 2, 4); | |
//! } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> cargo init documentation_test | |
Created library project | |
> cd ./documentation_test | |
> cargo test | |
Compiling documentation_test v0.1.0 (file:///C:/documentation_test) | |
Finished dev [unoptimized + debuginfo] target(s) in 0.50 secs | |
Running target\debug\deps\documentation_test-4cd8ffe7876c6af7.exe | |
running 1 test | |
test tests::it_works ... ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> cargo run | |
Compiling rust_bin v0.1.0 (file:///C:/rust_bin) | |
error[E0601]: main function not found | |
error: aborting due to previous error | |
error: Could not compile `rust_bin`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
println!("Hello, world!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> cargo run --verbose | |
Compiling rust_bin v0.1.0 (file:///C:/rust_bin) | |
Running `rustc --crate-name rust_bin src\main.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=a2f9914a23e80948 -C extra-filename=-a2f9914a23e80948 --out-dir C:\rust_bin\target\debug\deps -L dependency=C:\rust_bin\target\debug\deps` | |
Finished dev [unoptimized + debuginfo] target(s) in 0.53 secs | |
Running `target\debug\rust_bin.exe` | |
Hello, world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> mkdir rust_bin | |
> cd rust_bin | |
> cargo init --bin | |
Created binary (application) project | |
> cargo run | |
Compiling rust_bin v0.1.0 (file:///C:/Development/Rust/rust_bin) | |
Finished dev [unoptimized + debuginfo] target(s) in 0.54 secs | |
Running `target\debug\rust_bin.exe` | |
Hello, world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET PATH=%PATH%;%CD%\deps\depot_tools | |
CD deps | |
fetch v8 | |
cd v8 | |
git new-branch flathead |