diff --git a/crate2nix/Cargo.nix b/crate2nix/Cargo.nix index 403294c9..08469f65 100644 --- a/crate2nix/Cargo.nix +++ b/crate2nix/Cargo.nix @@ -3581,6 +3581,7 @@ rec { }: assert (builtins.isList features); assert (builtins.isList dependencies); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); let enabledDependencies = filterEnabledDependencies { @@ -3711,6 +3712,7 @@ rec { assert (builtins.isList features); assert (builtins.isList dependencyPath); assert (builtins.isAttrs featuresByPackageId); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); assert (builtins.isBool runTests); let diff --git a/crate2nix/templates/nix/crate2nix/default.nix b/crate2nix/templates/nix/crate2nix/default.nix index c6fdd748..097cc7f8 100644 --- a/crate2nix/templates/nix/crate2nix/default.nix +++ b/crate2nix/templates/nix/crate2nix/default.nix @@ -452,6 +452,7 @@ rec { }: assert (builtins.isList features); assert (builtins.isList dependencies); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); let enabledDependencies = filterEnabledDependencies { @@ -582,6 +583,7 @@ rec { assert (builtins.isList features); assert (builtins.isList dependencyPath); assert (builtins.isAttrs featuresByPackageId); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); assert (builtins.isBool runTests); let diff --git a/sample_projects/bin_with_git_submodule_dep/Cargo.nix b/sample_projects/bin_with_git_submodule_dep/Cargo.nix index 5c0b9b98..4772e35d 100644 --- a/sample_projects/bin_with_git_submodule_dep/Cargo.nix +++ b/sample_projects/bin_with_git_submodule_dep/Cargo.nix @@ -1799,6 +1799,7 @@ rec { }: assert (builtins.isList features); assert (builtins.isList dependencies); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); let enabledDependencies = filterEnabledDependencies { @@ -1929,6 +1930,7 @@ rec { assert (builtins.isList features); assert (builtins.isList dependencyPath); assert (builtins.isAttrs featuresByPackageId); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); assert (builtins.isBool runTests); let diff --git a/sample_projects/codegen/Cargo.nix b/sample_projects/codegen/Cargo.nix index f84b08bb..5b35dc02 100644 --- a/sample_projects/codegen/Cargo.nix +++ b/sample_projects/codegen/Cargo.nix @@ -974,6 +974,7 @@ rec { }: assert (builtins.isList features); assert (builtins.isList dependencies); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); let enabledDependencies = filterEnabledDependencies { @@ -1104,6 +1105,7 @@ rec { assert (builtins.isList features); assert (builtins.isList dependencyPath); assert (builtins.isAttrs featuresByPackageId); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); assert (builtins.isBool runTests); let diff --git a/sample_projects/sub_dir_crates/Cargo.nix b/sample_projects/sub_dir_crates/Cargo.nix index 53ec4e29..e33621b8 100644 --- a/sample_projects/sub_dir_crates/Cargo.nix +++ b/sample_projects/sub_dir_crates/Cargo.nix @@ -583,6 +583,7 @@ rec { }: assert (builtins.isList features); assert (builtins.isList dependencies); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); let enabledDependencies = filterEnabledDependencies { @@ -713,6 +714,7 @@ rec { assert (builtins.isList features); assert (builtins.isList dependencyPath); assert (builtins.isAttrs featuresByPackageId); + assert (builtins.isString target); assert (builtins.isAttrs targetSpec); assert (builtins.isBool runTests); let