You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using cargo-equip but no matter what I do it does not remove tests or comments.
I created a small test project, cargo-equip-bug.zip. When I run cargo equip --bin cargo-equip-bug --minify --remove docs the output I get is:
Running `/home/bauke/.cargo/bin/rustup run nightly cargo udeps --output json -p cargo-equip-bug --bin cargo-equip-bug`
Checking cargo-equip-bug v0.1.0 (/tmp/cargo-equip-bug)
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
info: Loading depinfo from "/tmp/cargo-equip-bug/target/debug/deps/cargo_equip_bug-fff717856e616173.d"
Bundling the code
Checking cargo-equip-check-output-v9rub87eoq2lw19m v0.0.0 (/tmp/cargo-equip-check-output-v9rub87eoq2lw19m)
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
#[allow(dead_code)]pubmod a {pubstructA;#[cfg(test)]mod tests {#[test]fnit_works(){assert_eq!(2 + 2,4);}}}// Commentfnmain(){println!("Hello, world!");}
I would expect the output to not contain tests and comments.
Version info:
> rustup +nightly --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.74.0-nightly (7d9bce327 2023-09-16)`
> cargo equip --version
cargo-equip 0.20.2-alpha.1
I've tried with cargo-equip versions 0.15 to 0.20.1 as well, but get the same results.
The text was updated successfully, but these errors were encountered:
I tried using cargo-equip but no matter what I do it does not remove tests or comments.
I created a small test project, cargo-equip-bug.zip. When I run
cargo equip --bin cargo-equip-bug --minify --remove docs
the output I get is:I would expect the output to not contain tests and comments.
Version info:
I've tried with cargo-equip versions 0.15 to 0.20.1 as well, but get the same results.
The text was updated successfully, but these errors were encountered: