Skip to content

jeffmay/coded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coded

Code activity monitor

Rust language notes

We're still learning Rust. Leave your learnings here.

Put ~/.cargo/bin on your PATH

Rust tools installed via cargo install need to be available. Ex: cargo-fmt

The tests dir is for integration tests

Cargo compiles all tests in /tests as a separate crate. This guarantees that they're integration tests, because they must declare

extern crate coded;
use coded::helpers;

println!(...) doesn't work in tests

The test runner captures stdout. Disable this behavior like

cargo test -- --nocapture

Lambdas

let f = |x: Vec<i32>| -> Vec<i32> {
  println!(x);
  x   // return x
}

Shell Aliases

cb="cargo build" and alias ct="cargo test -- --nocapture"


Get help in chat

Chill with others learning rust in IRC

Web client that looks decent: https://kiwiirc.com/client Network: irc.mozilla.org Channel: #rust-beginners

About

Code activity monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages