blob: df99de412e6df3e44f5c47acefc9221a8ac6e7b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Rust
==================
## Resources
- [http://xion.io/post/code/rust-iter-patterns.html]()
- [https://deterministic.space/rust-cli-tips.html]()
- [https://manishearth.github.io/blog/2018/01/10/whats-tokio-and-async-io-all-about/]()
Optimization: use `RUSTFLAGS="-C target-cpu=native"` to take advantage of CPU
special features.
(via http://vfoley.xyz/rust-compilation-tip/)
For local rust/std documentation, do `rustup doc`.
## Little tricks
Run tests with stdout output:
cargo test -- --nocapture
To run tests with logging enabled (eg, with `env_logger`), make sure you add
`env_logger::init()` to the test function itself.
|