crate2nix icon indicating copy to clipboard operation
crate2nix copied to clipboard

rebuild only changed crates in CI with crate2nix and nix

Results 109 crate2nix issues
Sort by recently updated
recently updated
newest added

Using the following overlay: ```nix self: super: rec { crate2nix-tools = import ((builtins.fetchTarball sources.crate2nix.url) + "/tools.nix") {}; nil-src = import (crate2nix-tools.generatedCargoNix { name = "nil"; src = builtins.fetchTarball sources.nil.url; })...

I'd like to use the awesome caching abilities to run integration tests, but I can't see a way to do that, there's the `runTests` flag but that does a different...

On using crate2nix to build the package, it sometimes is able to locate the package and then gives the error. [Link](https://github.com/wiredhikari/minimint/blob/crate2nix/log.txt) to logs. [Link](https://github.com/wiredhikari/minimint/blob/crate2nix/flake.nix) to the flake.

`crate2nix` generates things like these in `Cargo.nix`: ```nix "tsu-mini-std" = rec { crateName = "tsu-mini-std"; version = "0.1.0"; edition = "2021"; # We can't filter paths with references in Nix...

readme says > Smart caching: It uses smart crate by crate caching so that nix rebuilds exactly the crates that need to be rebuilt. Compare that to docker layers... please...

Hello, there is an issue where (if a repo uses `main` instead of `master`) `generatedCargoNix` fails. The offending line is here https://github.com/kolloch/crate2nix/blob/master/tools.nix#L237. Unfortunately `master` is a sensible default given legacy...

Currently whenever Cargo.lock changes, developer has to notice and run `crate2nix` manually. This is annoying but I can't think of simple way to automate this away that's consistent for developers...

I get this really strange error but only in flakes. `nix-build` is fine, but `nix run` breaks. And it only happens if the git working copy is not dirty. ```...

```toml [dependencies] opentelemetry-surf = { git = "https://github.com/asaaki/opentelemetry-surf", branch = "main" } ``` ``` builder for '/nix/store/601g5y6hd9wkz84csgp5915walkgv7ng-rust_opentelemetry-surf-0.1.1.drv' failed with exit code 1; last 10 log lines: error: environment variable `CARGO_CRATE_NAME`...

bug
help wanted

I have a similar issue to the one described in https://github.com/kolloch/crate2nix/issues/42, but I suspect the root cause is somewhat different. I am attempting to build a Rust project that makes...