Skip to content

Commit

Permalink
Merge pull request #3748 from nymtech/feature/fix_default_packet_type
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyv1987 committed Aug 7, 2023
2 parents 49440bf + 314d7a7 commit 695d347
Show file tree
Hide file tree
Showing 7 changed files with 233 additions and 18 deletions.
1 change: 1 addition & 0 deletions common/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ nym-pemstore = { path = "../../common/pemstore", version = "0.3.0" }
rand_chacha = "0.2"

[features]
default = ["sphinx"]
serde = ["serde_crate", "serde_bytes", "ed25519-dalek/serde", "x25519-dalek/serde"]
asymmetric = ["x25519-dalek", "ed25519-dalek", "zeroize"]
hashing = ["blake3", "digest", "hkdf", "hmac", "generic-array"]
Expand Down
5 changes: 5 additions & 0 deletions common/nymsphinx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ path = "framing"
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio]
version = "1.24.1"
features = ["sync"]

[features]
default = ["sphinx"]
sphinx = ["nym-crypto/sphinx", "nym-sphinx-params/sphinx", "nym-sphinx-types/sphinx"]
outfox = ["nym-crypto/outfox", "nym-sphinx-params/outfox", "nym-sphinx-types/outfox"]
5 changes: 3 additions & 2 deletions common/nymsphinx/framing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ bytes = "1.0"
tokio-util = { version = "0.7.4", features = ["codec"] }
thiserror = "1.0.37"

nym-sphinx-types = { path = "../types" }
nym-sphinx-params = { path = "../params" }
nym-sphinx-types = { path = "../types", features = ["sphinx", "outfox"] }
nym-sphinx-params = { path = "../params", features = ["sphinx", "outfox"] }

1 change: 1 addition & 0 deletions common/nymsphinx/params/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ nym-crypto = { path = "../../crypto", features = ["hashing", "symmetric"] }
nym-sphinx-types = { path = "../types" }

[features]
default = ["sphinx"]
sphinx = ["nym-crypto/sphinx", "nym-sphinx-types/outfox"]
outfox = ["nym-crypto/outfox", "nym-sphinx-types/outfox"]
1 change: 1 addition & 0 deletions common/nymsphinx/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ nym-outfox = { path = "../../../nym-outfox", optional = true }
thiserror = "1"

[features]
default = ["sphinx"]
sphinx = ["sphinx-packet"]
outfox = ["nym-outfox"]
Loading

0 comments on commit 695d347

Please sign in to comment.