6262//! [`SaturatingSub`] for all const-generic bounded integers.
6363//! - `serde1`: Implement [`Serialize`] and [`Deserialize`] for the bounded integers, making sure all
6464//! values will never be out of bounds. This has a deprecated alias `serde`.
65- //! - `zerocopy06 `: Implement [`AsBytes `] for all bounded integers, and [`Unaligned`] for
66- //! macro-generated ones.
65+ //! - `zerocopy `: Implement [`IntoBytes `] for all bounded integers,
66+ //! and [`Unaligned`] for suitable macro-generated ones.
6767//! - `step_trait`: Implement the [`Step`] trait which allows the bounded integers to be easily used
6868//! in ranges. This will require you to use nightly and place `#![feature(step_trait)]` in your
6969//! crate root if you use the macro.
9090//! [`SaturatingSub`]: https://docs.rs/num-traits/0.2/num_traits/ops/saturating/trait.SaturatingSub.html
9191//! [`Serialize`]: https://docs.rs/serde/1/serde/trait.Serialize.html
9292//! [`Deserialize`]: https://docs.rs/serde/1/serde/trait.Deserialize.html
93- //! [`AsBytes `]: https://docs.rs/zerocopy/0.6 /zerocopy/trait.AsBytes .html
94- //! [`Unaligned`]: https://docs.rs/zerocopy/0.6 /zerocopy/trait.Unaligned.html
93+ //! [`IntoBytes `]: https://docs.rs/zerocopy/0.8 /zerocopy/trait.IntoBytes .html
94+ //! [`Unaligned`]: https://docs.rs/zerocopy/0.8 /zerocopy/trait.Unaligned.html
9595//! [`Step`]: https://doc.rust-lang.org/nightly/core/iter/trait.Step.html
9696//! [`Error`]: https://doc.rust-lang.org/stable/std/error/trait.Error.html
9797//! [`ParseError`]: https://docs.rs/bounded-integer/*/bounded_integer/struct.ParseError.html
@@ -126,8 +126,8 @@ pub mod __private {
126126 #[ cfg( feature = "serde1" ) ]
127127 pub use :: serde1;
128128
129- #[ cfg( feature = "zerocopy06 " ) ]
130- pub use :: zerocopy06 ;
129+ #[ cfg( feature = "zerocopy " ) ]
130+ pub use :: zerocopy ;
131131
132132 pub use bounded_integer_macro:: bounded_integer as proc_macro;
133133
@@ -238,7 +238,7 @@ block! {
238238 let bytemuck1: ident = cfg_bool!( feature = "bytemuck1" ) ;
239239 let serde1: ident = cfg_bool!( feature = "serde1" ) ;
240240 let std: ident = cfg_bool!( feature = "std" ) ;
241- let zerocopy06 : ident = cfg_bool!( feature = "zerocopy06 " ) ;
241+ let zerocopy : ident = cfg_bool!( feature = "zerocopy " ) ;
242242 let step_trait: ident = cfg_bool!( feature = "step_trait" ) ;
243243 let d: tt = dollar!( ) ;
244244
@@ -247,7 +247,7 @@ block! {
247247 macro_rules! __bounded_integer_inner2 {
248248 ( $d( $d tt: tt) * ) => {
249249 $crate :: __private:: proc_macro! {
250- [ $crate ] $alloc $arbitrary1 $bytemuck1 $serde1 $std $zerocopy06 $step_trait $d( $d tt) *
250+ [ $crate ] $alloc $arbitrary1 $bytemuck1 $serde1 $std $zerocopy $step_trait $d( $d tt) *
251251 }
252252 } ;
253253 }
0 commit comments