Add crate version identifiers.

This commit is contained in:
Dan Gohman
2019-01-03 14:14:47 -08:00
parent 585bdac91e
commit 40acc1f340
5 changed files with 15 additions and 0 deletions

View File

@@ -69,3 +69,6 @@ pub const WASM_PAGE_SIZE: u32 = 0x10000;
/// The number of pages we can have before we run out of byte index space. /// The number of pages we can have before we run out of byte index space.
pub const WASM_MAX_PAGES: u32 = 0x10000; pub const WASM_MAX_PAGES: u32 = 0x10000;
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -61,3 +61,6 @@ pub use crate::target_tunables::target_tunables;
// Re-export `Instance` so that users won't need to separately depend on // Re-export `Instance` so that users won't need to separately depend on
// wasmtime-runtime in common cases. // wasmtime-runtime in common cases.
pub use wasmtime_runtime::{Instance, InstantiationError}; pub use wasmtime_runtime::{Instance, InstantiationError};
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

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

View File

@@ -69,3 +69,6 @@ pub use crate::vmcontext::{
VMContext, VMFunctionBody, VMFunctionImport, VMGlobalDefinition, VMGlobalImport, VMContext, VMFunctionBody, VMFunctionImport, VMGlobalDefinition, VMGlobalImport,
VMMemoryDefinition, VMMemoryImport, VMSharedSignatureIndex, VMTableDefinition, VMTableImport, VMMemoryDefinition, VMMemoryImport, VMSharedSignatureIndex, VMTableDefinition, VMTableImport,
}; };
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@@ -30,3 +30,6 @@ mod wast;
pub use crate::spectest::instantiate_spectest; pub use crate::spectest::instantiate_spectest;
pub use crate::wast::{WastContext, WastError}; pub use crate::wast::{WastContext, WastError};
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");