naersk/test/fast
Patryk Wychowaniec 3f976d822b Support unused dependencies
Cargo stashes unused patches into a special section of the Cargo.lock
file:

```
[[patch.unused]]
name = "uuid"
version = "1.4.1"
source = "git+https://github.com/uuid-rs/uuid#50f70278de02c106650b8d6deb325dd59b5f2a24"
```

... a section that we, currently, don't read.

Ignoring that section causes the build to fail because even if the patch
is unused, when the source is unavailable, Cargo tries to fetch it
(which, understandably, is not possible inside the sandbox).

This commit extends our logic so that we download both the "used" and
"unused" dependencies.

Closes https://github.com/nix-community/naersk/issues/308.
2023-09-07 12:09:35 +02:00
..
cargo-config Fix support for .cargo/config 2023-08-18 11:40:12 +02:00
cargo-wildcard refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
default-run refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
dummyfication Bump regex from 1.3.1 to 1.5.5 in /test/fast/dummyfication/fixtures 2022-06-07 12:12:53 +02:00
duplicated-cargo-lock-items Use checksums for recreating crates.io's directory 2023-07-26 14:15:29 +02:00
git-dep refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
git-dep-by-branch refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
git-dep-by-branch-with-slash refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
git-dep-by-tag refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
git-dep-dup refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
git-single-repository-with-multiple-crates Improve unpacking dependencies 2022-09-03 17:53:20 +02:00
git-symlink Improve unpacking dependencies 2022-09-03 17:53:20 +02:00
post-install-hook Add support for the postInstall hook 2022-05-16 19:33:31 +02:00
readme readme: Fix ./script/gen 2022-05-16 19:33:31 +02:00
simple-dep Bump regex from 1.1.8 to 1.5.5 in /test/fast/simple-dep/fixtures 2022-06-07 13:21:23 +02:00
simple-dep-patched Bump regex from 1.1.8 to 1.5.5 in /test/fast/simple-dep-patched/fixtures 2022-06-07 12:12:33 +02:00
symlinks Fix detection of symlinked Cargo.tomls 2023-03-23 11:29:54 +01:00
unused-patch Support unused dependencies 2023-09-07 12:09:35 +02:00
workspace Bump spin from 0.5.0 to 0.5.2 in /test/fast/workspace/fixtures 2022-06-07 15:28:37 +02:00
workspace-build-rs Revamp examples & README 2022-08-04 12:56:43 +02:00
workspace-patched Bump regex from 1.1.8 to 1.5.5 in /test/fast/workspace-patched/fixtures 2022-06-07 15:28:24 +02:00
default.nix Support unused dependencies 2023-09-07 12:09:35 +02:00