Skip to content

Commit

Permalink
Added VERSION var to all the lib crates
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jan 22, 2019
1 parent 38b0fbf commit 453801b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/clif-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ fn validate(bytes: &[u8]) -> CompileResult<()> {
}
}
}

/// The current version of this crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
3 changes: 3 additions & 0 deletions lib/emscripten/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
3 changes: 3 additions & 0 deletions lib/runtime-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ pub fn validate(wasm: &[u8]) -> bool {
}
}
}

/// The current version of this crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
3 changes: 3 additions & 0 deletions lib/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit 453801b

Please sign in to comment.