Comments (4)
Yeah, I've ran into this as well. However, cargo check
allows passing through additional options to cargo rustc
.
In other words you should be able to run cargo check --lib
or cargo check --bin NAME
to check an individual part of the crate.
from cargo-check.
Hm, than I don't see what problem you wrapper actually solves? It's way easier to define an alias than to build cargo check
.
from cargo-check.
Just as advertised, it's just a wrapper around calling cargo rustc -- -Zno-trans
, if aliases are a better fit for your use case, then I recommend using them.
I tried using cargo check
alias before writing this. However I preferred having a shorter command that covered the majority of the use cases I encountered and could just accept additional arguments when I needed them.
In other words I didn't want to have multiple aliases for every cargo rustc
option, just a way to always add -- -Zno-trans
without explicitly typing it each time.
But yeah, if aliases work better, use them 😄.
from cargo-check.
inactive, closing
from cargo-check.
Related Issues (17)
- Archlinux package HOT 3
- Cargo errors out on "cargo check" HOT 2
- Don't recompile project when there's no need
- Warning: Option Z Is Unstable HOT 1
- --error-format=json support HOT 1
- Use no-trans for every crate
- Make github releases
- co-exist with new `cargo check` sub-command
- warning: function is never used: main HOT 1
- doesn't work with workspace
- An unkown error occured: dep-info not in an understood format
- error: the option `Z` is only accepted on the nightly compiler
- Support both [[bin]] and [lib] together? HOT 5
- Support cargo install HOT 1
- Relicense under dual MIT/Apache-2.0 HOT 1
- Recursively lint path-local crates
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-check.