Unverified Commit 5e398e18 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

arti: 1.6.0 -> 1.7.0, enable `full` feature (#460918)

parents e4220e2d b88fa69c
Loading
Loading
Loading
Loading
+20 −4
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "arti";
  version = "1.6.0";
  version = "1.7.0";

  src = fetchFromGitLab {
    domain = "gitlab.torproject.org";
@@ -20,10 +20,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
    owner = "core";
    repo = "arti";
    tag = "arti-v${finalAttrs.version}";
    hash = "sha256-uBt4A9ORjJccnmzHxwoVHguvox7jOKqdrc6JdrvSrzk=";
    hash = "sha256-4Vx5ATVdE8AoMWjDKKkwGOFVOwI0Qhyfr8MiAo+7MNw=";
  };

  cargoHash = "sha256-XkdkCCHY+xLc1haFvqpwNsPgs6rh4AAGxMofrIwFFk0=";
  cargoHash = "sha256-x1Pws9XbvwZqxJTJmPHQd6qbNLgkHxCK3YIZbRylk2M=";

  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];

@@ -39,9 +39,25 @@ rustPlatform.buildRustPackage (finalAttrs: {
    "arti"
  ];

  # `full` includes all stable and non-conflicting feature flags. the primary
  # downsides are increased binary size and memory usage for building, but
  # those are acceptable for nixpkgs
  buildFeatures = [ "full" ];

  # several tests under `full` require access to internal types, which are
  # currently marked as experimental for public usage.
  checkFeatures = [
    "full"
    "experimental-api"
  ];

  checkFlags = [
    # problematic test that hangs the build
    "--skip=reload_cfg::test::watch_multiple"
    "--skip=reload_cfg::test::watch_single_file"

    # some of the cli tests attempt to validate that the filesystem and build
    # is securely configured, which is somewhat broken by the nix build sandbox
    "--skip=cli_tests"
  ];

  nativeInstallCheckInputs = [