oxidecomputer / amd-apcb

AMD Generic Encapsulated Software Architecture Platform Security Processor Configuration Block manipulation library
Mozilla Public License 2.0
13 stars 1 forks source link

cargo xtask test failure #77

Closed daym closed 1 year ago

daym commented 1 year ago
   Compiling xtask v0.1.0 (/home/dannym/src/Oxide/real-main/amd-apcb/xtask)
    Finished dev [unoptimized + debuginfo] target(s) in 1.13s
     Running `xtask/target/debug/xtask test`
   Compiling amd-apcb v0.1.0 (/home/dannym/src/Oxide/real-main/amd-apcb)
error[E0277]: the trait bound `for<'de> Apcb<'_>: serde::de::Deserialize<'de>` is not satisfied
    --> examples/fromyaml/main.rs:6:32
     |
6    |     let _foo: amd_apcb::Apcb = serde_yaml::from_str("").unwrap();
     |                                ^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `Apcb<'_>`
     |
     = help: the following other types implement trait `serde::de::Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a str
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
             and 142 others
     = note: required for `Apcb<'_>` to implement `serde::de::DeserializeOwned`
note: required by a bound in `serde_yaml::from_str`

That's because cargo xtask test is trying to run integration tests but has serde disabled.

The simplest fix is not to run integration tests on cargo xtask test--since there's cargo xtask tests to do that anyway.