Skip to content

Commit 2083842

Browse files
committed
doc: describe flake.parts module
1 parent e2c4308 commit 2083842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ This fork of crate2nix includes various fixes and features. Many thanks to @hall
1515
- Fix references to git dependencies with inherited configuration. See https://github.com/nix-community/crate2nix/pull/393.
1616
- Fix incorrect resolution of aliased git dependencies. See https://github.com/nix-community/crate2nix/pull/391.
1717
- More robust handling of finding crates within git workspaces. See https://github.com/nix-community/crate2nix/pull/394.
18-
###
1918
- Support target_has_atomic configuration within Cargo.toml. See https://github.com/timewave-computer/crate2nix/commit/14298635aa8e6e35bad52fdf4d7aa38ee944769b.
2019
- Add pname and description to crates. See https://github.com/timewave-computer/crate2nix/commit/c46dbc3d15a1ccebb7e75a2bf5901dc32a8852c4.
2120
- See commit history for the rest of the changes.
2221

23-
22+
### Flake.parts module
23+
This fork also includes a crate2nix flake.parts module that handles importing Cargo.nix and exporting all the crates for you. It also has cross compilation support, where crateOverrides for crates within the repository are inspected to see if they set `rust`, `cargo`, `pkgs` or `target` and if so Cargo.nix will be re-imported with the new target/toolchain.
2424

2525
[![tests-nix-linux](https://github.com/nix-community/crate2nix/actions/workflows/tests-nix-linux.yml/badge.svg)](https://github.com/nix-community/crate2nix/actions/workflows/tests-nix-linux.yml)
2626
[![tests-nix-macos](https://github.com/nix-community/crate2nix/actions/workflows/tests-nix-macos.yml/badge.svg)](https://github.com/nix-community/crate2nix/actions/workflows/tests-nix-macos.yml)

0 commit comments

Comments
 (0)