crane
crane copied to clipboard
A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
## Motivation The API docs seem wrong here, copy-pasta probably. ## Checklist - [x] updated `docs/API.md` (or general documentation) with changes - [ ] updated `CHANGELOG.md`
i started a project with this template and decided to use a phase hook to embed version information in my program. this failed immediately as crane tried to run my...
``` root@b62e2017d34d:/workspaces/bitbop/cherami# nix build .#cherami-build --json [{"drvPath":"/nix/store/pgdmyk1hp4522mhizncd35nc7paaphpm-cherami-build.drv","outputs":{"out":"/nix/store/kxxrqw6ga3rnz0wvcr6k972rcx9y0yp3-cherami-build"},"startTime":1713302261,"stopTime":1713302470}] root@b62e2017d34d:/workspaces/bitbop/cherami# nix build .#cherami-build --json [{"drvPath":"/nix/store/ca13xkr0cyg0yvq32rmr0mlk6lhvfl12-cherami-build.drv","outputs":{"out":"/nix/store/wng10qh7bkpyh36phq7h84pjgbdwpv08-cherami-build"},"startTime":1713303254,"stopTime":1713303460}] ``` I didn't change any source files in the meantime. Why is it building twice and resulting...
This is a bit of a vague question, so apologies in advance if it's considered off-topic. I'm trying to use crane to build a project at $JOB, which is quite...
The problem with `workspace.package.name` is that unlike `workspace.package.version` nothing really needs to inherit it, as packages usually have more specific names. So when setting it just so crane can pick...
Hello, I need to compile my project using an older `nixpkgs` (23.05). The issue I'm facing is that it tries to compile `crane-utils` using nix `rustPlatform` which uses Cargo 1.69...
Way to get the binary for `cargo-test/cargo-nextest` For some reason, I would like to run tests not at the time of building the application, but after For example, this can...
## Motivation Currently, the source filtering done by `cleanCargoSource` causes a lot of empty directories to be copied into the build when all the files in them are filtered out....
**Describe the bug** Changing names of crates (and their references) in `nix flake init -t github:ipetkov/crane#quick-start-workspace` breaks everything and gets me this: last 10 log lines: > cargo 1.81.0 (2dbb1af80...
**Is your feature request related to a problem? Please describe.** I often want to take advantage of `filterCargoSources`, etc. in a context where I have to jump through hoops to...