Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tls_codec: feature for conditional deserialization derivation #1214

Merged
merged 18 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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