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:
dependabot[bot] 2024-03-17 19:10:10 +01:00 committed by GitHub
parent 03b4833812
commit 3dee0d1a8c
4 changed files with 14 additions and 8 deletions

View File

@ -97,10 +97,10 @@
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "i686-unknown-freebsd",
"i686-unknown-linux-musl",
"mips-unknown-linux-musl",
"mips64-unknown-linux-muslabi64",
"mips64el-unknown-linux-muslabi64",
"mipsel-unknown-linux-musl",
# "mips-unknown-linux-musl",
# "mips64-unknown-linux-muslabi64",
# "mips64el-unknown-linux-muslabi64",
# "mipsel-unknown-linux-musl",
"sparc64-unknown-linux-gnu",
# BLOCKEDTODO(https://github.com/cross-rs/cross/issues/975): currently broken
# "sparcv9-sun-solaris",

View File

@ -19,4 +19,4 @@ description = "Implementation of #[derive(Encode, Decode)] for bincode"
proc-macro = true
[dependencies]
virtue = "0.0.15"
virtue = "0.0.16"

View File

@ -87,6 +87,13 @@ pub(crate) mod varint;
use de::{read::Reader, Decoder};
use enc::write::Writer;
#[cfg(any(
feature = "alloc",
feature = "std",
feature = "derive",
feature = "serde"
))]
pub use features::*;
pub mod config;
@ -95,7 +102,6 @@ pub mod de;
pub mod enc;
pub mod error;
pub use atomic::*;
pub use de::{BorrowDecode, Decode};
pub use enc::Encode;

View File

@ -7,9 +7,9 @@ fn decode_error_size() {
#[test]
fn encode_error_size() {
#[cfg(any(feature = "std", feature = "alloc"))]
#[cfg(feature = "std")]
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);
}