alchemy/src/lib.rs
Jason Travis Smith 022f6ae87a Adds the ability to convert a value to the platform or network order.
This handles doing the configure check to see what the platform
endianess is for converting byte orders.
2016-11-03 15:04:29 -04:00

37 lines
1.0 KiB
Rust

//! The Alchemy library is a data type to byte converter library.
//! Alchemy handles converting numbers to and from bytes
//! in either big or little endian format.
#![doc(html_logo_url="",
html_favicon_url="http://cybermagesllc.com/favicon.ico",
html_root_url="http://cybermagesllc.com")]
#![feature(associated_consts)]
#![warn(missing_docs)]
#[macro_use]
extern crate scribe;
#[cfg(feature="sigils")]
extern crate sigils;
mod byte_sized;
mod converter;
mod endian;
mod transmutable;
pub use ::byte_sized::ByteSized;
pub use ::byte_sized::{U8_BYTES, U16_BYTES, U32_BYTES, U64_BYTES, USIZE_BYTES};
pub use ::byte_sized::{I8_BYTES, I16_BYTES, I32_BYTES, I64_BYTES, ISIZE_BYTES};
pub use ::byte_sized::{F32_BYTES, F64_BYTES};
pub use ::byte_sized::get_byte_size_of_string;
pub use ::converter::Converter;
pub use ::endian::{BigEndian, LittleEndian, PlatformEndian, NetworkEndian};
pub use ::endian::Endianess;
pub use ::endian::{network_to_platform_order, platform_to_network_order};
pub use ::transmutable::Transmutable;