2021-10-06 13:01:52 +08:00
|
|
|
#![no_std]
|
|
|
|
#![feature(never_type)]
|
|
|
|
|
2023-09-05 16:21:39 +08:00
|
|
|
#[cfg(feature = "alloc")]
|
2021-10-06 13:01:52 +08:00
|
|
|
extern crate alloc;
|
|
|
|
extern crate core_io;
|
|
|
|
|
|
|
|
#[cfg(feature = "byteorder")]
|
|
|
|
extern crate byteorder;
|
|
|
|
|
|
|
|
pub mod cursor;
|
|
|
|
#[cfg(feature = "byteorder")]
|
|
|
|
pub mod proto;
|
|
|
|
|
|
|
|
pub use cursor::Cursor;
|
2023-02-22 11:02:43 +08:00
|
|
|
#[cfg(all(feature = "byteorder", feature = "alloc"))]
|
|
|
|
pub use proto::ReadStringError;
|
2021-10-06 13:01:52 +08:00
|
|
|
#[cfg(feature = "byteorder")]
|
|
|
|
pub use proto::{ProtoRead, ProtoWrite};
|