{"id":13611133,"url":"https://github.com/ipetkov/crane","last_synced_at":"2026-04-02T11:38:21.578Z","repository":{"id":37590754,"uuid":"448456146","full_name":"ipetkov/crane","owner":"ipetkov","description":"A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.","archived":false,"fork":false,"pushed_at":"2026-03-18T18:16:45.000Z","size":3155,"stargazers_count":1311,"open_issues_count":35,"forks_count":125,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-03-19T07:47:01.892Z","etag":null,"topics":["cargo","crate","nix","nixos","nixpkgs","rust"],"latest_commit_sha":null,"homepage":"https://crane.dev","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipetkov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-16T04:23:52.000Z","updated_at":"2026-03-18T18:16:17.000Z","dependencies_parsed_at":"2024-02-22T00:31:39.875Z","dependency_job_id":"09610205-873d-41d3-9254-3700a43c7600","html_url":"https://github.com/ipetkov/crane","commit_stats":{"total_commits":597,"total_committers":47,"mean_commits":"12.702127659574469","dds":"0.17420435510887777","last_synced_commit":"7e4586bad4e3f8f97a9271def747cf58c4b68f3c"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/ipetkov/crane","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipetkov%2Fcrane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipetkov%2Fcrane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipetkov%2Fcrane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipetkov%2Fcrane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipetkov","download_url":"https://codeload.github.com/ipetkov/crane/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipetkov%2Fcrane/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31305710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T09:48:21.550Z","status":"ssl_error","status_checked_at":"2026-04-02T09:48:19.196Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","crate","nix","nixos","nixpkgs","rust"],"created_at":"2024-08-01T19:01:52.105Z","updated_at":"2026-04-02T11:38:21.555Z","avatar_url":"https://github.com/ipetkov.png","language":"Nix","funding_links":[],"categories":["Nix","Programming Languages"],"sub_categories":["Rust"],"readme":"# Crane\n\nA [Nix] library for building [cargo] projects.\n\n* **Source fetching**: automatically done using a Cargo.lock file\n* **Incremental**: build your workspace dependencies just once, then quickly lint,\n  build, and test changes to your project without slowing down\n* **Composable**: split builds and tests into granular steps. Gate CI without\n  burdening downstream consumers building from source.\n\n## Features\n\n* Automatic vendoring of dependencies in a way that works with Nix\n  - Alternative cargo registries are supported (with a minor configuration\n    change)\n  - Git dependencies are automatically supported without additional\n    configuration.\n    - Cargo retains the flexibility to only use these dependencies when they are\n      actually needed, without forcing an override for the entire workspace.\n* Reusing dependency artifacts after only building them once\n* [clippy] checks\n* [rustfmt] checks\n* [cargo-doc] generation\n* And support for a number of popular tools such as:\n  - [cargo-audit]\n  - [cargo-deny]\n  - [cargo-llvm-cov]\n  - [cargo-nextest]\n  - [cargo-tarpaulin]\n  - [trunk]\n\n## Getting Started\n\nThe easiest way to get started is to initialize a flake from a template:\n\n```sh\n# Start with a comprehensive suite of tests\nnix flake init -t github:ipetkov/crane#quick-start\n```\n\nOtherwise check out the [examples and templates] for more detailed examples. An\n[API Reference] is also available.\n\n## Compatibility Policy\n\nBreaking changes can land on the `master` branch at any time, so it is\nrecommended you use a versioning strategy when consuming this library (for\nexample, using something like flakes or [niv]).\n\nTagged releases will be cut periodically and changes will be documented in the\n[CHANGELOG]. Release versions will follow [Semantic Versioning].\n\nThe test suite is run against the latest stable nixpkgs release, as well as\n`nixpkgs-unstable`. Any breakage on those channels is considered a bug and\nshould be reported as such.\n\n## License\n\nThis project is licensed under the MIT license.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion by you, shall be licensed as MIT, without any additional terms or\nconditions.\n\n[API reference]: https://crane.dev/API.html\n[cargo-audit]: https://rustsec.org/\n[cargo-deny]: https://github.com/EmbarkStudios/cargo-deny\n[cargo-doc]: https://doc.rust-lang.org/cargo/commands/cargo-doc.html\n[cargo]: https://doc.rust-lang.org/cargo/\n[cargo-llvm-cov]: https://github.com/taiki-e/cargo-llvm-cov\n[cargo-nextest]: https://nexte.st/\n[cargo-tarpaulin]: https://github.com/xd009642/tarpaulin\n[CHANGELOG]: ./CHANGELOG.md\n[clippy]: https://github.com/rust-lang/rust-clippy\n[custom-toolchain]: ./examples/custom-toolchain/flake.nix\n[examples and templates]: https://crane.dev/getting-started.html\n[niv]: https://github.com/nmattia/niv\n[Nix]: https://nixos.org/\n[rustfmt]: https://github.com/rust-lang/rustfmt\n[Semantic Versioning]: http://semver.org/spec/v2.0.0.html\n[Trunk]: https://trunkrs.dev/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipetkov%2Fcrane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipetkov%2Fcrane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipetkov%2Fcrane/lists"}