2021-10-06 13:01:52 +08:00
|
|
|
#![no_std]
|
|
|
|
#![feature(never_type)]
|
|
|
|
#![cfg_attr(feature = "alloc", feature(alloc))]
|
|
|
|
|
|
|
|
extern crate alloc;
|
|
|
|
extern crate core_io;
|
|
|
|
|
|
|
|
#[cfg(feature = "alloc")]
|
|
|
|
#[macro_use]
|
|
|
|
use alloc;
|
|
|
|
#[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};
|