Compiling aws-nitro-enclaves-cose v0.5.0 (/home/ec2-user/aws-nitro-enclaves-cose)
error: field must have #[serde(default)] because previous field 2 has #[serde(default)]
--> /home/ec2-user/aws-nitro-enclaves-cose/src/sign.rs:65:5
|
65 | ByteBuf,
| ^^^^^^^
error: field must have #[serde(default)] because previous field 2 has #[serde(default)]
--> /home/ec2-user/aws-nitro-enclaves-cose/src/sign.rs:67:5
|
67 | ByteBuf,
| ^^^^^^^
error[E0277]: the trait bound `SigStructure: encrypt::_::_serde::Serialize` is not satisfied
--> /home/ec2-user/aws-nitro-enclaves-cose/src/sign.rs:95:28
|
95 | serde_cbor::to_vec(self)
| ------------------ ^^^^ the trait `encrypt::_::_serde::Serialize` is not implemented for `SigStructure`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `encrypt::_::_serde::Serialize`:
&'a T
&'a mut T
()
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
(T0, T1, T2, T3, T4, T5)
and 137 others
note: required by a bound in `to_vec`
--> /home/ec2-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_cbor-0.11.2/src/ser.rs:22:8
|
22 | T: ser::Serialize,
| ^^^^^^^^^^^^^^ required by this bound in `to_vec`
For more information about this error, try `rustc --explain E0277`.
[package]
name = "cose-issue"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
aws-nitro-enclaves-cose = {path="../aws-nitro-enclaves-cose"} # "0.5.0"
serde = "=1.0.181" # does build
# serde = "=1.0.182" # does not build