Skip to content

Commit

Permalink
Update virtue requirement from 0.0.15 to 0.0.16 (#692)
Browse files Browse the repository at this point in the history
* 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](bincode-org/virtue@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>
  • Loading branch information
dependabot[bot] and Victor Koenders committed Mar 17, 2024
1 parent e7dff9d commit 9255d49
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cross_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ description = "Implementation of #[derive(Encode, Decode)] for bincode"
proc-macro = true

[dependencies]
virtue = "0.0.15"
virtue = "0.0.16"
8 changes: 7 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions tests/error_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 9255d49

Please sign in to comment.