https://github.com/juspay/rust-flake
A simple flake module for Rust development, based on crane.
https://github.com/juspay/rust-flake
Last synced: 11 months ago
JSON representation
A simple flake module for Rust development, based on crane.
- Host: GitHub
- URL: https://github.com/juspay/rust-flake
- Owner: juspay
- License: mit
- Created: 2024-04-03T23:30:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-21T09:36:18.000Z (about 1 year ago)
- Last Synced: 2025-07-21T11:33:29.497Z (about 1 year ago)
- Language: Nix
- Homepage:
- Size: 66.4 KB
- Stars: 30
- Watchers: 7
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://nixos.zulipchat.com/#narrow/stream/446608-rust-flake)
# rust-flake
A simple flake module for Rust development, based on [Crane](https://crane.dev/). `rust-flake` is inspired by [`haskell-flake`](https://github.com/srid/haskell-flake).
## Examples
- Single crates
- https://github.com/srid/rust-nix-template
- https://github.com/juspay/nix-rs
- Multi-crate workspace
- https://github.com/juspay/omnix
- https://github.com/juspay/superposition
- Desktop apps
- https://github.com/srid/dioxus-desktop-template
- https://github.com/juspay/omnix
## Comparison with other tools
| | rust-flake | [nix-cargo-integration](https://github.com/yusdacra/nix-cargo-integration) |
| --- | --- | --- |
| Stable over time | ✔️ | ✖️[^crane] |
[^crane]: `rust-flake` uses [crane](https://crane.dev/) directly, which is known to be stable. Whereas `nix-cargo-integration` uses `dream2nix` which is known to be unstable. See [here](https://matrix.to/#/!gcrYWdPsIUOFpXFDHB:matrix.org/$vJGlKFLKj4uRp-QkokK_0ISnnXHaXQ5tv7A_PcDYl7A?via=matrix.org&via=nixos.dev&via=goblin.sh) and [here](https://github.com/srid/rust-nix-template/pull/27)