diff --git a/lib/environ/src/lib.rs b/lib/environ/src/lib.rs index 5b758ab3ef..9642a73c50 100644 --- a/lib/environ/src/lib.rs +++ b/lib/environ/src/lib.rs @@ -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. pub const WASM_MAX_PAGES: u32 = 0x10000; + +/// Version number of this crate. +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/lib/jit/src/lib.rs b/lib/jit/src/lib.rs index 0fec51aaf3..40c9b0b26b 100644 --- a/lib/jit/src/lib.rs +++ b/lib/jit/src/lib.rs @@ -61,3 +61,6 @@ pub use crate::target_tunables::target_tunables; // Re-export `Instance` so that users won't need to separately depend on // wasmtime-runtime in common cases. pub use wasmtime_runtime::{Instance, InstantiationError}; + +/// Version number of this crate. +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/lib/obj/src/lib.rs b/lib/obj/src/lib.rs index 3a81504355..c8041793b6 100644 --- a/lib/obj/src/lib.rs +++ b/lib/obj/src/lib.rs @@ -29,3 +29,6 @@ mod emit_module; pub use crate::emit_module::emit_module; + +/// Version number of this crate. +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/lib/runtime/src/lib.rs b/lib/runtime/src/lib.rs index a63d89b4eb..b49802dcf5 100644 --- a/lib/runtime/src/lib.rs +++ b/lib/runtime/src/lib.rs @@ -69,3 +69,6 @@ pub use crate::vmcontext::{ VMContext, VMFunctionBody, VMFunctionImport, VMGlobalDefinition, VMGlobalImport, VMMemoryDefinition, VMMemoryImport, VMSharedSignatureIndex, VMTableDefinition, VMTableImport, }; + +/// Version number of this crate. +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/lib/wast/src/lib.rs b/lib/wast/src/lib.rs index 1182068482..f99ada52a9 100644 --- a/lib/wast/src/lib.rs +++ b/lib/wast/src/lib.rs @@ -30,3 +30,6 @@ mod wast; pub use crate::spectest::instantiate_spectest; pub use crate::wast::{WastContext, WastError}; + +/// Version number of this crate. +pub const VERSION: &str = env!("CARGO_PKG_VERSION");