Peter Kolloch
Peter Kolloch
...but provide a "--locked" for generate option to do so. Code pointers: * For the new command option, see `Opts::Generate` in `main.rs` * For the options passed to cargo metadata,...
Provide a derivation that provides a good basis for a `shell.nix` and includes the following buildInputs: * `cargo`, `rustc`, `binutils`, `clippy`, `rustfmt` and others? Maybe `rls` and `rust-analyzer`? * All...
What does `crate2nix` miss for feeling ready for a 1.0 version? I have plenty ideas for additional features but this is more about * future proofing the "public" attributes of...
If you use `crate2nix` with your own project, you can either use a `tools.nix` based workflow in which `Cargo.nix` is generated in a derivation and imported. Or you can pregenerate...
https://github.com/kolloch/crate2nix/issues/76 introduced `tools.nix` and nix functions for generating the build files in derivations. That allows users to skip checking in the generated `Cargo.nix`. This does not work for "sub modules"...
https://github.com/rust-lang/cargo/pull/7697
https://blog.mozilla.org/nnethercote/2020/04/24/how-to-speed-up-the-rust-compiler-in-2020/
Currently, we cache hashes of prefetched packages (= crates) in `crate-hashes.json`. This is basically a simple list of package name / hash which can lead to many merge conflicts if...