| Crates.io | cargo-nbuild |
| lib.rs | cargo-nbuild |
| version | 0.1.2 |
| created_at | 2023-06-09 08:56:39.185513+00 |
| updated_at | 2023-06-19 16:41:31.360498+00 |
| description | A Rust builder that uses the nix package manager |
| homepage | |
| repository | https://github.com/shuttle-hq/cargo-nbuild |
| max_upload_size | |
| id | 886096 |
| size | 23,663 |
A cargo builder that uses the buildRustCrate from the nix package manager.
This yields the following benefits:
A cannot alter the filesystem or inject source code into libraries that will affect the build of another project B.A has a dependency on some crate, let's say tokio, with features macros and rt, then this builder will cache each dependency individually. So if project B also uses tokio with the same features and version, then the tokio dependency will not be rebuild.cargo install cargo-nbuild
:warning: The nix package manager needs to be installed on your system.
:bulb: You also need to enable the new nix command in the user specific configuration or system wide configuration.
From a Rust project run
cargo nbuild
This builder is still in early days and is missing features
cargo build --target ...cargo build --package ... equavalent is missing.cargo build options