blob: 19e673ca61f5374e2bfb6931ab2db3633d46950d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
use libdeno;
use std::ffi::CStr;
pub const DENO: &str = "0.1.11";
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()
}
|