Update virtue requirement from 0.0.15 to 0.0.16 (#692)
* Update virtue requirement from 0.0.15 to 0.0.16 Updates the requirements on [virtue](https://github.com/bincode-org/virtue) to permit the latest version. - [Release notes](https://github.com/bincode-org/virtue/releases) - [Commits](https://github.com/bincode-org/virtue/compare/v0.0.15...v0.0.16) --- updated-dependencies: - dependency-name: virtue dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Fixed warning that was causing compile issues * Fixed failing test in validating error size * Removed broken cross-compile tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Victor Koenders <git@trang.ar>
This commit is contained in:
parent
03b4833812
commit
3dee0d1a8c
|
|
@ -97,10 +97,10 @@
|
||||||
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
|
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
|
||||||
# "i686-unknown-freebsd",
|
# "i686-unknown-freebsd",
|
||||||
"i686-unknown-linux-musl",
|
"i686-unknown-linux-musl",
|
||||||
"mips-unknown-linux-musl",
|
# "mips-unknown-linux-musl",
|
||||||
"mips64-unknown-linux-muslabi64",
|
# "mips64-unknown-linux-muslabi64",
|
||||||
"mips64el-unknown-linux-muslabi64",
|
# "mips64el-unknown-linux-muslabi64",
|
||||||
"mipsel-unknown-linux-musl",
|
# "mipsel-unknown-linux-musl",
|
||||||
"sparc64-unknown-linux-gnu",
|
"sparc64-unknown-linux-gnu",
|
||||||
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
|
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
|
||||||
# "sparcv9-sun-solaris",
|
# "sparcv9-sun-solaris",
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@ description = "Implementation of #[derive(Encode, Decode)] for bincode"
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
virtue = "0.0.15"
|
virtue = "0.0.16"
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,13 @@ pub(crate) mod varint;
|
||||||
|
|
||||||
use de::{read::Reader, Decoder};
|
use de::{read::Reader, Decoder};
|
||||||
use enc::write::Writer;
|
use enc::write::Writer;
|
||||||
|
|
||||||
|
#[cfg(any(
|
||||||
|
feature = "alloc",
|
||||||
|
feature = "std",
|
||||||
|
feature = "derive",
|
||||||
|
feature = "serde"
|
||||||
|
))]
|
||||||
pub use features::*;
|
pub use features::*;
|
||||||
|
|
||||||
pub mod config;
|
pub mod config;
|
||||||
|
|
@ -95,7 +102,6 @@ pub mod de;
|
||||||
pub mod enc;
|
pub mod enc;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
|
||||||
pub use atomic::*;
|
|
||||||
pub use de::{BorrowDecode, Decode};
|
pub use de::{BorrowDecode, Decode};
|
||||||
pub use enc::Encode;
|
pub use enc::Encode;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ fn decode_error_size() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn encode_error_size() {
|
fn encode_error_size() {
|
||||||
#[cfg(any(feature = "std", feature = "alloc"))]
|
#[cfg(feature = "std")]
|
||||||
assert_eq!(std::mem::size_of::<bincode::error::EncodeError>(), 32);
|
assert_eq!(std::mem::size_of::<bincode::error::EncodeError>(), 32);
|
||||||
|
|
||||||
#[cfg(not(any(feature = "std", feature = "alloc")))]
|
#[cfg(not(feature = "std"))]
|
||||||
assert_eq!(std::mem::size_of::<bincode::error::EncodeError>(), 24);
|
assert_eq!(std::mem::size_of::<bincode::error::EncodeError>(), 24);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue