1 //! Cranelift file reader library. 2 //! 3 //! The `cranelift_reader` library supports reading .clif files. This functionality is needed for 4 //! testing Cranelift, but is not essential for a JIT compiler. 5 6 #![deny( 7 missing_docs, 8 trivial_numeric_casts, 9 unused_extern_crates, 10 unstable_features 11 )] 12 #![warn(unused_import_braces)] 13 #![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))] 14 #![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))] 15 #![cfg_attr( 16 feature = "cargo-clippy", 17 warn( 18 clippy::float_arithmetic, 19 clippy::mut_mut, 20 clippy::nonminimal_bool, 21 clippy::map_unwrap_or, 22 clippy::clippy::print_stdout, 23 clippy::unicode_not_nfc, 24 clippy::use_self 25 ) 26 )] 27 28 pub use crate::error::{Location, ParseError, ParseResult}; 29 pub use crate::isaspec::{parse_options, IsaSpec, ParseOptionError}; 30 pub use crate::parser::{parse_functions, parse_run_command, parse_test, ParseOptions}; 31 pub use crate::run_command::{Comparison, Invocation, RunCommand}; 32 pub use crate::sourcemap::SourceMap; 33 pub use crate::testcommand::{TestCommand, TestOption}; 34 pub use crate::testfile::{Comment, Details, Feature, TestFile}; 35 36 mod error; 37 mod isaspec; 38 mod lexer; 39 mod parser; 40 mod run_command; 41 mod sourcemap; 42 mod testcommand; 43 mod testfile; 44