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::map_unwrap_or,
16         clippy::print_stdout,
17         clippy::unicode_not_nfc,
18         clippy::use_self
19     )
20 )]
21 
22 pub mod condcodes;
23 pub mod constant_hash;
24 pub mod constants;
25 pub mod isa;
26 
27 /// Version number of this crate.
28 pub const VERSION: &str = env!("CARGO_PKG_VERSION");
29