Added VERSION var to all the lib crates

This commit is contained in:
Syrus 2019-01-22 15:26:56 -08:00
parent 38b0fbf3c5
commit 453801b5ff
4 changed files with 12 additions and 0 deletions

View File

@ -71,3 +71,6 @@ fn validate(bytes: &[u8]) -> CompileResult<()> {
}
}
}
/// The current version of this crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@ -1466,3 +1466,6 @@ pub fn generate_emscripten_env(globals: &EmscriptenGlobals) -> ImportObject {
imports
}
/// The current version of this crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@ -68,3 +68,6 @@ pub fn validate(wasm: &[u8]) -> bool {
}
}
}
/// The current version of this crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View File

@ -45,3 +45,6 @@ pub fn instantiate(
let module = compile(wasm)?;
module.instantiate(import_object)
}
/// The current version of this crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");