diff options
Diffstat (limited to 'src/version.rs')
-rw-r--r-- | src/version.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/version.rs b/src/version.rs index ce95601de..19e673ca6 100644 --- a/src/version.rs +++ b/src/version.rs @@ -2,11 +2,10 @@ use libdeno; use std::ffi::CStr; -// Both the verson in Cargo.toml and this string must be kept in sync. -pub const DENO_VERSION: &str = "0.1.11"; +pub const DENO: &str = "0.1.11"; -pub fn get_v8_version() -> &'static str { - let v = unsafe { libdeno::deno_v8_version() }; - let c_str = unsafe { CStr::from_ptr(v) }; +pub fn v8() -> &'static str { + let version = unsafe { libdeno::deno_v8_version() }; + let c_str = unsafe { CStr::from_ptr(version) }; c_str.to_str().unwrap() } |