cranelift_codegen_shared/
lib.rs

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
22pub mod constant_hash;
23pub mod constants;
24
25/// Version number of this crate.
26pub const VERSION: &str = env!("CARGO_PKG_VERSION");