python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Difference between debug=1 and debug=2
As I was testing this, I ran a test program with the Cargo setting:
[profile.release]
debug = 1
I got exactly the same stacktrace as if with debug = 2:
$ RUST_BACKTRACE=1 cargo run --release
Fini...

at54321
Votes: 0
Answers: 0
Rust can't find 'crate' for 'std'
I'm trying to get a .wasm file via RUSTFLAGS='-C link-arg=-s' cargo build --release --target wasm32-unknown-unknown but get the error:
error[E0463]: can't find crate for `std`
When i type rustup targ...
SurpriseMF
Votes: 0
Answers: 2
Why does Rust perform integer overflow checks in --release?
I have this piece of simple code:
let val: u8 = 255 + 1;
println!("{}", val);
It is said here that such a code will compile normally if run with the --release flag.
I am running this code v...
Oleksandr Novik
Votes: 0
Answers: 2
Failed to run `rustc` error. (Rust cargo build issue)
Im trying to cargo build a file but have some issues.
I set rustup nightly-x86_64-pc-windows-msvc default but still get the error.
RUSTFLAGS='-C link-arg=-s' cargo build --release --target wasm32-unkn...
SurpriseMF
Votes: 0
Answers: 1