Cargo
cargo-check
Our great sponsors
Cargo | cargo-check | |
---|---|---|
211 | 0 | |
10,080 | 99 | |
3.9% | - | |
9.9 | 0.0 | |
3 days ago | about 6 years ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Cargo
- Use the XDG Base Directory Specification
-
Hey Rustaceans! Got a question? Ask here (12/2023)!
I was thinking of using OpenAPI Generator to generate a Rust server stub for me. Problem: the generator generates a crate with numerous modules and a rather complicated manifest, not a single module that I can straightforwardly include!. How do I integrate this into my project, then? I can download and run the generator in build.rs, but Cargo doesn't support depending on a crate generated by the build script, so how do I actually use it?
-
Does Cargo's new sparse protocol save our disk space?
The default in nightly was recently changed to sparse protocol. In cargo https://github.com/rust-lang/cargo/pull/11791 repo, and brought into rustc https://github.com/rust-lang/rust/pull/108665 repo.
-
What I learned from contributing to Rust's linter
Unsure how this timing works out with cargo. We first removed most of clippy in April 2021 and then finished it off in March 2022. We just now added back in one clippy lint this month.
-
Does anyone here work in gamedev with Rust as their primary language?
These two issues: #11704 and #4763 lay out the issue I've encountered and I imagine most larger games would as well. It's common to use the preprocessor to strip out code for specific build types (in this case client vs. server). However, cargo check and other rust tools work under the guidance/assumption that features are additive, not subtractive, and that they don't break semver. Specifically, if you're using features to remove code and alter your APIs in the process (as you commonly would with the C++ preprocessor), you'll encounter false positive errors when features like cargo workspaces unify your features by enabling them all.
-
Embedded Rust on ESP32C3 Board, a Hands-on Quickstart Guide
We'll now use Rustup to install both Rust and Cargo (Rust's package manager):
-
Ask HN: Is there a reason every language comes with it's own package manager?
oh look at something like the rust package manager cargo https://doc.rust-lang.org/cargo/ there so much stuff in there specific to rust.
-
PSA: Clippy seems to break incremental cache compilation
I've encountered a similar problem when switching between x86_64 and WASM builds due to having a .cargo/config.toml with rustflags. In my case, it was the difference in rustflags causing the recompile. https://github.com/rust-lang/cargo/issues/8716
-
Examples of old (ca. 1.0.0+) Rust code that still compiles?
I know I've run into this exact issue in CI. There's this open cargo issue about allowing one to restrict the parallel link invocations, but I have no idea how much work would be involved: https://github.com/rust-lang/cargo/issues/9157
- How do regulates companies handle software of unknown Provence (SOUP) when using needed open source crates?
cargo-check
We haven't tracked posts mentioning cargo-check yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
RustCMake - An example project showing usage of CMake with Rust
cargo-watch - Watches over your Cargo project's source.
cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date
Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
RustScan - 🤖 The Modern Port Scanner 🤖
opencv-rust - Rust bindings for OpenCV 3 & 4
crates.io - The Rust package registry
overflower - A Rust compiler plugin and support library to annotate overflow behavior
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
cargo-dot - Generate graphs of a Cargo project's dependencies
cargo-edit - A utility for managing cargo dependencies from the command line.