Comments (13)
For good measure I just re-built and installed 0.5.1 and works just fine again, so it's not just a compiler version issue.
from cargo-bloat.
The only difference between 0.5.1 and 0.5.2 is that cargo
was updated. So you should ask there.
from cargo-bloat.
I agree that cargo is most likely the culprit but I'm not sure where and what to ask. Works just fine for anything else besides cargo-bloat.
from cargo-bloat.
I have no idea what this error means. It's not my code for sure. I can't do anything about.
from cargo-bloat.
Me neither. I'll try cargo 0.29.0 and if it doesn't fix the problem I'll find someone to tell me what to report there.
from cargo-bloat.
Hm, no dice, same problem with cargo 0.29.0 and also with all other crate versions updated.
from cargo-bloat.
Hi. I've removed the cargo
dependency. But it should work exactly the same. It's still experimental, but you can try it via:
cargo install --git https://github.com/RazrFalcon/cargo-bloat --force
Any feedback are welcome.
from cargo-bloat.
Nice, compiles a lot faster, too. Unfortunately it still does not work:
# cargo bloat --release --example gpio_hal_blinky
Compiling ...
Error: only 'bin' and 'cdylib' crate types are supported.
from cargo-bloat.
Could you post cargo build --message-format=json --release --example gpio_hal_blinky
?
from cargo-bloat.
Here you go:
# cargo build --message-format=json --release --example gpio_hal_blinky
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/release/build/cortex-m-789c9b4fb8fa0ad3/build-script-build"],"fresh":true,"package_id":"cortex-m 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"edition":"2015","kind":["custom-build"],"name":"build-script-build","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-0.5.6/build.rs"}}
{"features":["device"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/release/build/cortex-m-rt-968fd6a8f761a7a1/build-script-build"],"fresh":true,"package_id":"cortex-m-rt 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"edition":"2015","kind":["custom-build"],"name":"build-script-build","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.5.3/build.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libvcell-dcff5f3d9b5ec36a.rlib"],"fresh":true,"package_id":"vcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"vcell","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/vcell-0.1.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libr0-58427bbbea582a8d.rlib"],"fresh":true,"package_id":"r0 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"r0","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/r0-0.2.2/src/lib.rs"}}
{"features":["const-fn"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libbare_metal-8ac535386433ea91.rlib"],"fresh":true,"package_id":"bare-metal 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"bare-metal","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/bare-metal-0.2.3/src/lib.rs"}}
{"features":["cortex-m-rt","default","rt"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/release/build/stm32f042-f70a40b2c3dbb1c5/build-script-build"],"fresh":true,"package_id":"stm32f042 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"edition":"2015","kind":["custom-build"],"name":"build-script-build","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/stm32f042-0.6.1/build.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libaligned-d7f58051669ec0ff.rlib"],"fresh":true,"package_id":"aligned 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"aligned","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/aligned-0.2.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libvoid-ba1a7fc66ea37c43.rlib"],"fresh":true,"package_id":"void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"void","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libpanic_abort-06c1d4e1fbcedbd0.rlib"],"fresh":true,"package_id":"panic-abort 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"panic-abort","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.2.0/src/lib.rs"}}
{"features":["unstable"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libnb-8bedad602f927eb2.rlib"],"fresh":true,"package_id":"nb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"nb","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/nb-0.1.1/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libcast-593b3e6621e0dca6.rlib"],"fresh":true,"package_id":"cast 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"cast","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/cast-0.2.2/src/lib.rs"}}
{"features":["default","embedded-graphics","graphics"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/release/build/ssd1306-c10062262b1636f0/build-script-build"],"fresh":true,"package_id":"ssd1306 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"edition":"2015","kind":["custom-build"],"name":"build-script-build","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/ssd1306-0.2.0/build.rs"}}
{"features":["default"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libembedded_graphics-8f4fb5438e126a98.rlib"],"fresh":true,"package_id":"embedded-graphics 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"embedded-graphics","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-graphics-0.4.0/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libnumtoa-6f60e4bcba0f5563.rlib"],"fresh":true,"package_id":"numtoa 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"numtoa","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/numtoa-0.1.0/src/lib.rs"}}
{"cfgs":["cortex_m","armv6m"],"env":[],"linked_libs":["static=cortex-m"],"linked_paths":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/build/cortex-m-fa9d8fb1e764c75f/out"],"package_id":"cortex-m 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)","reason":"build-script-executed"}
{"cfgs":["armv6m"],"env":[],"linked_libs":["static=cortex-m-rt"],"linked_paths":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/build/cortex-m-rt-f91a8fecf8b257e1/out"],"package_id":"cortex-m-rt 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)","reason":"build-script-executed"}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libvolatile_register-620f7187fb1e385b.rlib"],"fresh":true,"package_id":"volatile-register 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"volatile-register","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/volatile-register-0.2.0/src/lib.rs"}}
{"cfgs":[],"env":[],"linked_libs":[],"linked_paths":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/build/stm32f042-2ac462e62fa6a63c/out"],"package_id":"stm32f042 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)","reason":"build-script-executed"}
{"features":["nb","unproven"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libembedded_hal-d460ab763895f80d.rlib"],"fresh":true,"package_id":"embedded-hal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"embedded-hal","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-hal-0.2.1/src/lib.rs"}}
{"cfgs":[],"env":[],"linked_libs":[],"linked_paths":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/build/ssd1306-020ca8790833f26a/out"],"package_id":"ssd1306 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)","reason":"build-script-executed"}
{"features":["device"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libcortex_m_rt-dff6e7769c48272e.rlib"],"fresh":true,"package_id":"cortex-m-rt 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"cortex-m-rt","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.5.3/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libcortex_m-97a8ccb5a851019c.rlib"],"fresh":true,"package_id":"cortex-m 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"cortex-m","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-0.5.6/src/lib.rs"}}
{"features":[],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libina260-0a16d31c1c8dd9f1.rlib"],"fresh":true,"package_id":"ina260 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"ina260","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/ina260-0.2.2/src/lib.rs"}}
{"features":["default","embedded-graphics","graphics"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libssd1306-3e4b516afe73c325.rlib"],"fresh":true,"package_id":"ssd1306 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"ssd1306","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/ssd1306-0.2.0/src/lib.rs"}}
{"features":["cortex-m-rt","default","rt"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libstm32f042-51c84c97f629d2b9.rlib"],"fresh":true,"package_id":"stm32f042 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"stm32f042","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/stm32f042-0.6.1/src/lib.rs"}}
{"features":["cortex-m","cortexm"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libshared_bus-5e883915e7c1f013.rlib"],"fresh":true,"package_id":"shared-bus 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"shared-bus","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/shared-bus-0.1.2/src/lib.rs"}}
{"features":["default","rt"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libstm32f042_hal-a9b9eb6c8a02cfef.rlib"],"fresh":true,"package_id":"stm32f042-hal 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"stm32f042-hal","src_path":"/Users/egger/.cargo/registry/src/github.com-1ecc6299db9ec823/stm32f042-hal-0.4.2/src/lib.rs"}}
{"features":["default","rt"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/deps/libnucleo_f042k6-9cd65c4ec48a7442.rlib"],"fresh":true,"package_id":"nucleo-f042k6 0.2.2 (path+file:///Users/egger/OSS/nucleo-f042k6)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"edition":"2015","kind":["lib"],"name":"nucleo-f042k6","src_path":"/Users/egger/OSS/nucleo-f042k6/src/lib.rs"}}
{"features":["default","rt"],"filenames":["/Users/egger/OSS/nucleo-f042k6/target/thumbv6m-none-eabi/release/examples/gpio_hal_blinky"],"fresh":true,"package_id":"nucleo-f042k6 0.2.2 (path+file:///Users/egger/OSS/nucleo-f042k6)","profile":{"debug_assertions":false,"debuginfo":2,"opt_level":"s","overflow_checks":false,"test":false},"reason":"compiler-artifact","target":{"crate_types":["bin"],"edition":"2015","kind":["example"],"name":"gpio_hal_blinky","src_path":"/Users/egger/OSS/nucleo-f042k6/examples/gpio_hal_blinky.rs"}}
Finished release [optimized + debuginfo] target(s) in 0.09s
from cargo-bloat.
Fixed. You can try again.
from cargo-bloat.
Indeed. Works now! Thanks so much for caring.
from cargo-bloat.
Good. Then I will publish a new version soon.
from cargo-bloat.
Related Issues (20)
- Doesn't work with custom registries HOT 2
- Default test binary HOT 3
- --release flag fails HOT 4
- Add an option to sort output by crate/fn name instead of size HOT 1
- Discrepancy in reported `.text` size: `cargo bloat` vs GNU Binuils `size` HOT 3
- Cargo bloat doesn't forward compiler errors on build failure HOT 5
- don't suggest -n if all data is shown HOT 1
- Support custom profiles HOT 2
- How do I use cargo bloat with `-Zbuild-std`? HOT 7
- Incorrect target resolving
- Cargo bloaty reports only a tiny portion of the whole binary HOT 5
- How to examine other sections in the `.so` file? HOT 4
- Error: parsing failed cause 'section .symtab is missing'. HOT 10
- Detect `strip = true` in Cargo.toml HOT 3
- It "hangs" sometimes HOT 18
- Total time using cargo bloat --time? HOT 2
- missing releases on github HOT 2
- Info on the Size Calculation HOT 5
- FR: Cargo bloat should allow multiple `--features=foo` flags and merge them HOT 1
- [Q&A] Is there a tool or plugin that uses `cargo bloat` information to point at duplication due to monomorphization? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-bloat.