crate2nix
crate2nix copied to clipboard
rebuild only changed crates in CI with crate2nix and nix
Sometimes `crate2nix generate` differently orders crateBin list and this confuses our CI which expects deterministic output. Unfortunately I cannot reproduce it anymore, but it happened on our big cargo workspace...
Per the TODO, we could leverage Nixpkgs to do this better still, but it isn't terribly convenient at this time. I rather do it after the other cross PRs are...
Now that we support cross compilation, it's wrong to have a global `target`. Instead, we keep per-platform metadata for `cfg` the same way we keep per-platform derivations.
> trace: warning: `buildRustCrate` is deprecated, use `buildRustCrateForPkgs` instead
Hi! I'm having some trouble when using crates from a repository which defines a workspace (multiple crates). Here are the relevant bits of my example: Cargo.toml ``` [dependencies] virtual-dom-rs =...
I am getting this error, and I think it is because the git dependency that is being fetched is a workspace. Here is the dependency that is being fetched https://github.com/informalsystems/modelator....
Hey! I am starting to play around with `nix` to build Rust projects and I am experimenting on a crate that pulls in some dependencies from a private crate registry....
...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,...