fundamentals 0.0.1-alpha.4

Zero dependencies crate to provide fundamentals type to encode and decode lightning wire messages
Documentation
//! lnspec basic block to encode and decode the
//! basics types with rust.
pub mod bitflag;
pub mod bolt;
pub mod core;
pub mod primitives;
pub mod tlv;
pub mod types;

pub mod prelude {
    pub use crate::bitflag::*;
    pub use crate::bolt::*;
    #[allow(unused_imports)]
    pub use crate::primitives::*;
    pub use crate::tlv::*;
    pub use crate::types::*;

    // FIXME: make this a not std compatible
    #[macro_export]
    macro_rules! error {
    ($($msg:tt)*) => {{
        let msg = format!($($msg)*);
        Err(std::io::Error::new(std::io::ErrorKind::Other, msg))
    }};
}

    pub use error;
}