Add crate version identifiers.

This commit is contained in:
Dan Gohman
2019-01-07 11:51:47 -08:00
parent 9eba81a8d9
commit a5bd3924e3
8 changed files with 24 additions and 3 deletions

View File

@@ -55,9 +55,6 @@ pub use crate::legalizer::legalize_function;
pub use crate::verifier::verify_function;
pub use crate::write::write_function;
/// Version number of the cranelift-codegen crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub use cranelift_bforest as bforest;
pub use cranelift_entity as entity;
@@ -118,3 +115,6 @@ mod std {
pub use alloc::collections::BTreeSet;
}
}
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -34,3 +34,6 @@ pub mod traps;
pub use crate::backend::{FaerieBackend, FaerieBuilder, FaerieProduct, FaerieTrapCollection};
pub use crate::container::Format;
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -203,3 +203,6 @@ mod std {
pub use self::hashmap_core::{HashMap, HashSet};
}
}
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -49,3 +49,6 @@ mod std {
pub use self::hashmap_core::{HashMap, HashSet};
}
}
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -116,3 +116,6 @@ mod tests {
}
}
}
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -27,3 +27,6 @@ mod backend;
mod memory;
pub use crate::backend::{SimpleJITBackend, SimpleJITBuilder};
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -44,3 +44,6 @@ pub mod prelude {
pub use crate::frontend::{FunctionBuilder, FunctionBuilderContext, Variable};
}
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -67,3 +67,6 @@ mod std {
pub use self::hashmap_core::{map as hash_map, HashMap};
}
}
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");