1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
// License: see LICENSE file at root directory of `master` branch //! # An implementation of <https://github.com/liteserver/binn> //! //! # Project //! //! - Repository: <https://bitbucket.org/haibison/binn-ir> //! - License: [Free Public License 1.0.0](https://opensource.org/licenses/FPL-1.0.0) //! - _This project follows [Semantic Versioning 2.0.0]_ //! //! --- //! //! # Features //! //! - All official types are supported. //! - User defined types are _not_ yet supported. //! //! # Notes //! //! - `#![no_std]` _might_ be supported when [`alloc`][crate:alloc] crate is stabilized. //! - `IR` stands for _implementation in Rust_. //! //! _Special thanks to [Binn]'s authors for their hard work._ //! //! [Semantic Versioning 2.0.0]: https://semver.org/spec/v2.0.0.html //! [Binn]: https://github.com/liteserver/binn //! [crate:alloc]: https://doc.rust-lang.org/alloc/ // TODO: enable this flag when `alloc` crate is stabilized // #![no_std] // ╔═════════════════╗ // ║ IDENTIFIERS ║ // ╚═════════════════╝ macro_rules! crate_code_name { () => { "binn-ir" }} macro_rules! crate_version { () => { "0.3.0" }} /// # Crate name /// /// IR stands for _implementation in Rust_. pub const CRATE_NAME: &'static str = "Binn-IR"; /// # Crate code name pub const CRATE_CODE_NAME: &'static str = crate_code_name!(); /// # Crate version pub const CRATE_VERSION: &'static str = crate_version!(); /// # Crate release date (year/month/day) pub const CRATE_RELEASE_DATE: (u16, u8, u8) = (2018, 7, 13); /// # Unique universally identifier of this crate. Its CRC-32 is `149dc8a5`. pub const UUID: &'static str = "acea8479-f233-4686-af1c-fe198f506ddb"; /// # Tag, which can be used for logging... pub const TAG: &'static str = concat!(crate_code_name!(), "_149dc8a5_", crate_version!()); // ╔════════════════════╗ // ║ IMPLEMENTATION ║ // ╚════════════════════╝ #[test] fn test_crate_version() { assert_eq!(CRATE_VERSION, env!("CARGO_PKG_VERSION")); } #[macro_use] mod cmp_integers; pub mod storage; pub mod value;