crane
crane copied to clipboard
A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
Hello. 1. OS & Hardware : Linux synology 4.4.302+ #69057 SMP Fri Jan 12 17:02:59 CST 2024 x86_64 GNU/Linux synology_apollolake_620slim 2. OS & Hardware : Linux synology 4.4.302+ #69057 SMP...
## Motivation Added support to build [Tauri](https://tauri.app/) apps using `cargo tauri` via `buildTauriPackage` ## Checklist - [ ] added tests to verify new behavior - [x] added an example template...
👋 I'm trying to build a project that depends on generated bindings for a WIT world (https://github.com/fermyon/spin/blob/main/crates/world/src/lib.rs). When building with `cargo build`, things work as expected and everything compiles correctly...
## Motivation Fixes #482. MacOS has trouble with derivations which (directly or transitively) have many buildInputs. Crane at present creates a build structure in which a given cargo command will...
Hi! I build on MacOS with the Nix sandbox enabled. This is because I run a MacOS build worker which pushes into a company-shared cache; I want to isolate builds...
My crate `foo` has a dependency on crate `bar` from custom registry `registry1`, and `bar` is itself dependent on crate `baz` from `registry2`. `registry1` and `registry2` are in fact **two...
Suppose I have `crates/foo` and `crates/bar` in a monorepo. Whenever I bump the version of `crates/foo`, the content of `Cargo.lock` at the repo root also changes. That inevitably triggers rebuild...
I've been trying to get crane to compile an embedded rust project, but unfortunately encountered some issues that I was unable to solve. Embedded projects often use an alternative linker...
I use cargo-nextest to produce a [JUnit-style XML report](https://nexte.st/book/junit.html). If all tests succeed inside Nix with crane via cargo-nextest, `result/target/nextest/ci/rust-junit.xml` contains the result file. The problem is: **This file is...
Originally discussed in https://github.com/ipetkov/crane/issues/281 The crux of the issue is that we automatically inherit the crate's version attribute (from `Cargo.toml`) as the version of the `buildDepsOnly` derivation. The value is...