Skip to content

Commit fef8583

Browse files
authored
[0.6.x] Remove byteorder feature (#229)
This feature caused breakage in 0.6.2 (see [1] for details). This commit removes the feature and makes the `byteorder` module present unconditionally. This will not be ported to 0.7.0, which will contain the `byteorder` feature. [1] #228 (comment)
1 parent 3293475 commit fef8583

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ pinned-stable = "1.64.0"
2929
pinned-nightly = "nightly-2022-10-17"
3030

3131
[features]
32-
default = ["byteorder"]
33-
3432
alloc = []
3533
simd = []
3634
simd-nightly = ["simd"]
@@ -45,7 +43,6 @@ zerocopy-derive = { version = "=0.6.2", path = "zerocopy-derive" }
4543
[dependencies.byteorder]
4644
version = "1.3"
4745
default-features = false
48-
optional = true
4946

5047
[dev-dependencies]
5148
rand = "0.6"

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ types, see the `byteorder` module.
3434
enabled, the `alloc` crate is added as a dependency, and some
3535
allocation-related functionality is added.
3636

37-
`byteorder` (enabled by default): Adds the `byteorder` module and a
38-
dependency on the `byteorder` crate. The `byteorder` module provides byte
39-
order-aware equivalents of the multi-byte primitive numerical types. Unlike
40-
their primitive equivalents, the types in this module have no alignment
41-
requirement and support byte order conversions. This can be useful in
42-
handling file formats, network packet layouts, etc which don't provide
43-
alignment guarantees and which may use a byte order different from that of
44-
the execution platform.
45-
4637
`simd`: When the `simd` feature is enabled, `FromBytes` and `AsBytes` impls
4738
are emitted for all stable SIMD types which exist on the target platform.
4839
Note that the layout of SIMD types is not yet stabilized, so these impls may

src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@
3333
//! enabled, the `alloc` crate is added as a dependency, and some
3434
//! allocation-related functionality is added.
3535
//!
36-
//! `byteorder` (enabled by default): Adds the [`byteorder`] module and a
37-
//! dependency on the `byteorder` crate. The `byteorder` module provides byte
38-
//! order-aware equivalents of the multi-byte primitive numerical types. Unlike
39-
//! their primitive equivalents, the types in this module have no alignment
40-
//! requirement and support byte order conversions. This can be useful in
41-
//! handling file formats, network packet layouts, etc which don't provide
42-
//! alignment guarantees and which may use a byte order different from that of
43-
//! the execution platform.
44-
//!
4536
//! `simd`: When the `simd` feature is enabled, `FromBytes` and `AsBytes` impls
4637
//! are emitted for all stable SIMD types which exist on the target platform.
4738
//! Note that the layout of SIMD types is not yet stabilized, so these impls may
@@ -134,12 +125,10 @@
134125
#![cfg_attr(not(test), no_std)]
135126
#![cfg_attr(feature = "simd-nightly", feature(stdsimd))]
136127

137-
#[cfg(feature = "byteorder")]
138128
pub mod byteorder;
139129
#[doc(hidden)]
140130
pub mod derive_util;
141131

142-
#[cfg(feature = "byteorder")]
143132
pub use crate::byteorder::*;
144133
pub use zerocopy_derive::*;
145134

0 commit comments

Comments
 (0)