Skip to content

0.13.0

Compare
Choose a tag to compare
@kolloch kolloch released this 11 Apr 07:46
· 39 commits to master since this release

The usual internal version updates but there is more!

Documentation as Github Page

The old README.md had become very long and hard to navigate.
Check out the new and shiny page at https://nix-community.github.io/crate2nix/!

Export tools as flake attribute

Do you like to use import from derivation
so that you do not have to regenerate Cargo.nix on every dependency change?

The related convenience functions are now also available via the flake attribute "tools":

# ...
      perSystem = { system, pkgs, lib, inputs', ... }:
        let
          cargoNix = inputs.crate2nix.tools.${system}.appliedCargoNix {
            name = "rustnix";
            src = ./.;
          };
        in
        rec {
          packages.default = cargoNix.rootCrate.build;
        };
# ...

Check out the documentation.

Flakify the crate2nix build itself

Convert the pre-flake infrastructure step-by step to nix flakes,
while attempting to preserve compatibility for non-flake users.

This is more of an internal change and should not affect the usage of crate2nix yet but a more
flake friendly interface is planned.

Tests and some utilities are still working flake-less but use the flake inputs by default.