Add crate version identifiers.
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user