1 //! This library contains code that is common to both the `cranelift-codegen` and 2 //! `cranelift-codegen-meta` libraries. 3 4 #![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)] 5 #![warn(unused_import_braces)] 6 #![cfg_attr(feature = "std", deny(unstable_features))] 7 #![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))] 8 #![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))] 9 #![cfg_attr( 10 feature = "cargo-clippy", 11 warn( 12 clippy::float_arithmetic, 13 clippy::mut_mut, 14 clippy::nonminimal_bool, 15 clippy::option_map_unwrap_or, 16 clippy::option_map_unwrap_or_else, 17 clippy::print_stdout, 18 clippy::unicode_not_nfc, 19 clippy::use_self 20 ) 21 )] 22 23 use packed_struct; 24 #[macro_use] 25 extern crate packed_struct_codegen; 26 27 pub mod condcodes; 28 pub mod constant_hash; 29 pub mod constants; 30 pub mod isa; 31 32 /// Version number of this crate. 33 pub const VERSION: &str = env!("CARGO_PKG_VERSION"); 34