crate2nix
crate2nix copied to clipboard
rebuild only changed crates in CI with crate2nix and nix
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...
Hello, Thank you for this great project. I've managed to generate pretty big Cargo.nix from our workspace and it works like a charm. Is there a way to enable LTO...
I am trying to shift my system to Nix, and I use a lot of tools written in rust using `cargo install`. Some of them don't have Nix packages yet....
I'm trying to use `crate2nix` to build my [toy kernel](https://github.com/lovesegfault/daedalos) but I'm unsure how to correctly cross compile with it. I'm following BlogOS and in chapters [1](https://os.phil-opp.com/freestanding-rust-binary/) and [2](https://os.phil-opp.com/minimal-rust-kernel/) they...
Hello kolloch What should I do in case of an error like this? Thanks. building '/nix/store/40g1cs0a74mbp0wcnb5gx19nnqg3mnw8-rust_anyhow-1.0.34.drv'... unpacking sources unpacking source archive /nix/store/scdyyxvbwvqwhgnaszjw0gxwfdxdrka0-anyhow-1.0.34.tar.gz source root is anyhow-1.0.34 setting SOURCE_DATE_EPOCH to timestamp...
Hey, I've been rereading these docs for a while now and I cannot figure out which override to use to build the tests. I do not want to run them....
Making a derivation that runs `cargo clippy` fails due to trying to download the dependencies. Looking at the clippy page it seems it can be run as `rustc` using `clippy-driver`....
We already `tee` the test output. I'm not sure what benefit the `-x` provides except bunch of noise before the output we probably actually care about. Perhaps it's a debugging...
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...
It seems that if a crate contains doctests, `runTests` doesn't run these while `cargo test` does. I don't know what's involved in making this work.