mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-03 20:13:48 +00:00
When pulling crates via git (to grab non-released yet fixes or otherwise), the `path = "../"` in each crate crates duplicates unless you pull the whole tree in your local `[patch.crates-io]`. This creates issues in downstream packaging (nix, ...) where a crate version can only appear once. Those are somewhat difficult to diagnose. Using a `[patch.crates-io]` in the workspace serves the same purpose but does not create the duplication in consumers' tree.
16 lines
343 B
TOML
16 lines
343 B
TOML
[workspace]
|
|
members = [
|
|
"curve25519-dalek",
|
|
"curve25519-dalek-derive",
|
|
"ed25519-dalek",
|
|
"x25519-dalek"
|
|
]
|
|
resolver = "2"
|
|
|
|
[profile.dev]
|
|
opt-level = 2
|
|
|
|
[patch.crates-io]
|
|
curve25519-dalek-derive = { path = "./curve25519-dalek-derive" }
|
|
curve25519-dalek = { path = "./curve25519-dalek" }
|
|
x25519-dalek = { path = "./x25519-dalek" }
|