crane
crane copied to clipboard
A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
I was admiring the results of `crane`-based CI pipeline in Fedimint: https://github.com/fedimint/fedimint/actions/runs/2853966200 . After adding all the proper `src` filtering, when no source files were modified, nothing gets rebuild -...
https://github.com/fedimint/fedimint/runs/7830647635?check_suite_focus=true (corresponding [PR](https://github.com/fedimint/fedimint/pull/354) ) I might be misreading it, but it looks like `crane` lets `cargo` run with the previous state from cache, even thought the source of a dependency...
I'm trying to use crane to build a package dependent on on `polkadot-runtime` which is included in https://github.com/paritytech/polkadot/ repo and depends on several packages available in the same workspace. From...
As transfers times are often the bottleneck, would be nice if it was possible to pass custom arguments to `zstd` compression (like `-19` or even `-U -30`) and trade compute...
Originally brought up in https://github.com/ipetkov/crane/discussions/75 Repro flake: https://github.com/shanesveller/axum-rest-example/blob/5e8831b91724f81970204fff877293e2f2ec65d2/flake.nix#L83-L169 Running nix path-info .#docker -r gives: /nix/store/004217z94skkdd664v74aa1a43x1xq7b-cargo-package-aho-corasick-0.7.18 /nix/store/00d196bbncisks5amrximqmia6p6w204-cargo-package-mime-0.3.16 /nix/store/01a5gg965ki1zx34vzl9jk5wz4f4y01b-cargo-package-async-stream-impl-0.3.3 /nix/store/0ap1cxi1l8ax2as9znihmh8w99bdh8ai-cargo-package-which-4.2.5 /nix/store/0gnkg18w8fh6x87w7ywg3qmj05l87r0w-cargo-package-atoi-1.0.0 /nix/store/0kx0m1dyby3q7ngww9x7k1ikdl3h1x60-cargo-package-unicode-normalization-0.1.21 /nix/store/0rgm65ymq6hhkf4b3sy0qqadckkypndv-cargo-package-tokio-1.20.1 /nix/store/0vdzclflbbmlq0y509prp7fn8jv5pl8j-cargo-package-httparse-1.7.1 /nix/store/1269vy9nzw5p170p26i9hkisrbmn4hvd-cargo-package-parking_lot-0.11.2 /nix/store/185dqq2w54qm1qri00ixa7smb1cg5fx9-cargo-package-android_system_properties-0.1.4 /nix/store/1afbvyc3d2r9v8i81iwm8hbnb4lmv3qz-cargo-package-typenum-1.15.0 /nix/store/1gcgis47wk8qxc5ch9frdacwas8jx0n4-cargo-package-sqlformat-0.1.8 /nix/store/1mpj58d7lr0m2h3cz0w716hnl10dm28m-axum-rest-example-customisation-layer /nix/store/1nlhzs2n4h71kmxzk0zimjhj14q0zwyn-cargo-package-paste-1.0.8 /nix/store/1pxc8zaydlbdcxyprlxvs0yd8m4gw36p-cargo-package-async-stream-0.3.3 /nix/store/1v5i6h1407qmhgy6yrjri8kjwpz6445x-cargo-package-tracing-attributes-0.1.22...
After I realized [why my projects rebuilds completely any time I touch any file](https://github.com/ipetkov/crane/discussions/73) it became apparent that `src = ./.;` is *never* a thing that one should use in...
https://github.com/ipetkov/crane/pull/49 seems to have broken my use of cargoTarpaulin- reverting the `cargoBuildCommand` from ``` cargoBuildCommand = "cargoWithProfile tarpaulin"; ``` to ``` cargoBuildCommand = "cargo tarpaulin";` ``` in `lib/cargoTarpaulin.nix` avoided a...
It's not clear to me how you'd use a private Git repository and crane. In my Cargo.toml I specified my private Git repo but when I'm trying to build I'm...
Currently, when building for targets that do not support `std`, like `x86_64-unknown-none`, `cargo check` on the costructed dummy source fails with: ``` > error[E0463]: can't find crate for `std` >...
As the title says, currently it will also clean depended files. I understand that this is not something that is easily fixed, but I believe all the information is there...