wasm-component-semver 1.0.0

Library for working with semantic versions using logic that is compatible with the WebAssembly Component Model implementation in Wasmtime
Documentation
{
  pkgs,
  config,
  lib,
  ...
}:

{
  packages = with pkgs; [
    cargo-nextest
    cargo-watch
    git
  ];

  languages.rust.enable = true;

  processes = lib.optionalAttrs (!config.devenv.isTesting) {
    cargo-watch.exec = "cargo-watch";
  };

  enterTest = ''
    set -e
    cargo fmt --check --all
    cargo check --workspace --all-targets
    cargo nextest run --workspace
  '';

  git-hooks.hooks.actionlint.enable = true;
  git-hooks.hooks.nixfmt-rfc-style.enable = true;
}