These are chat archives for rust-lang/rust
i32, but some generic
T, I have to clone them. It's also the first time I used
unsafeto avoid using
clonetwice. Ahh, progress.
if let. I have read about it, but didn't use yet.
IntoIteratorfor your struct and make it an iterable
usizes, so I thought I could implement my own simple sets and maps which will take advantage of that and will be faster than the standard ones.
^ even debug builds can be stripped significantly
$ du -hs target/debug/zemeroth 54M target/debug/zemeroth $ strip -s target/debug/zemeroth $ du -hs target/debug/zemeroth 9,1M target/debug/zemeroth
2-4mb in my case (I'm also using gfx-rs)
$ du -hs target/release/zemeroth 9,6M target/release/zemeroth $ strip -s target/release/zemeroth $ du -hs target/release/zemeroth 3,9M target/release/zemeroth
RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo build
cargo testbuilds the code first, then runs the tests, so it won't really work xD
RUSTFLAGS="-A dead_code" cargo testif you don't use any other custom flags