Comments (6)
cargo bloat, as expected, uses cargo. So it works exactly like cargo and can't behave differently.
Maybe you want to use --bin and --example flags?
from cargo-bloat.
It doesn't seem like that's the case here? With cargo
I can run cargo
in a particular subcrate and have it operate only on that crate (including only its dependencies and relevant Cargo.toml
file). There's also cargo -p
that lets you do the same. But cargo-bloat
seems to always operate on the entire workspace?
from cargo-bloat.
Can you make an example or give a link to the repo? At the moment, cargo-bloat behaves exactly as cargo itself. There are no specific code for this.
from cargo-bloat.
The repository I linked to in the post above is an example. If you clone it and run, say, cargo check
inside of the basics/
directory, it will only compile things relevant to that crate. If you run cargo bloat
, it will complain about the unsupported feature in benchmarks/Cargo.toml
, even though that's not related to basics
at all.
from cargo-bloat.
I can work around this by removing "benchmarks" from the workspace
list in /Cargo.toml
. Interestingly enough, it looks like cargo bloat
doesn't compile the code in the other crates, it just parses all of their Cargo.toml
files. So I guess then this is probably working as intended. I just saw the weird behavior because the older cargo
version used by cargo-bloat
fails to parse. Closing!
from cargo-bloat.
Good. But I still plan to implement this, so I will reopen it.
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.