Skip to content

Commit

Permalink
tls_codec: feature for conditional deserialization derivation (#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkohbrok authored Nov 15, 2023
1 parent b01d57f commit 1caeb97
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 41 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tls_codec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ jobs:
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset
- run: cargo hack test -p tls_codec_derive --feature-powerset --test encode\* --test decode\*
- run: cargo hack test -p tls_codec_derive --feature-powerset --doc
14 changes: 9 additions & 5 deletions tls_codec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ criterion = { version = "0.5", default-features = false }
regex = "1.8"

[features]
default = [ "std" ]
arbitrary = [ "std", "dep:arbitrary" ]
derive = [ "tls_codec_derive" ]
serde = [ "std", "dep:serde" ]
default = ["std"]
arbitrary = ["std", "dep:arbitrary"]
derive = ["tls_codec_derive"]
serde = ["std", "dep:serde"]
mls = [] # In MLS variable length vectors are limited compared to QUIC.
std = [ "tls_codec_derive?/std" ]
std = ["tls_codec_derive?/std"]
conditional_deserialization = [
"derive",
"tls_codec_derive/conditional_deserialization",
]

[[bench]]
name = "tls_vec"
Expand Down
3 changes: 2 additions & 1 deletion tls_codec/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ tls_codec = { path = "../" }
trybuild = "1"

[features]
default = [ "std" ]
default = ["std"]
conditional_deserialization = ["syn/full"]
std = []
Loading

0 comments on commit 1caeb97

Please sign in to comment.