Patch serde to github.com/AndrewScull/serde fork

serde_derive does not currently support using integer values as map
keys. CTAP uses integer values for various CBOR map keys. In order to
properly serialize and deserialize types for the CTAP protocol, a forked
version of serde from a pull request that adds support for renaming
field keys as integer types is used.

Tracked in <https://github.com/serde-rs/serde/pull/2209>
main
Nick Zana 2 years ago
parent d4a94b83af
commit cfc7856894

@ -3,3 +3,6 @@
members = [
"crates/*",
]
[patch.crates-io]
serde = { git = "https://github.com/AndrewScull/serde", branch = "intnames" }

@ -9,7 +9,7 @@ edition = "2021"
fido-common = { path = "../fido-common" }
bounded-integer = { version = "0.5.3", features = ["types", "std"] }
coset = "0.3.3"
serde = { version = "1.0", features = ["derive"], optional = true }
serde = { version = "=1.0.136", features = ["derive"], optional = true }
[features]
serde = ["dep:serde", "fido-common/serde", "bounded-integer/serde1"]

@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
ciborium = { version = "0.2.1", default-features = false, optional = true }
coset = { version = "0.3.4", default-features = false }
serde = { version = "1", features = ["derive"], optional = true }
serde = { version = "=1.0.136", features = ["derive"], optional = true }
serde_with = { path = "../../../serde_with/serde_with", optional = true }
bitflags = { version = "2.2.1", default-features = false, optional = true }

Loading…
Cancel
Save