mirror of
https://github.com/denoland/deno.git
synced 2025-01-31 19:55:15 -05:00
11 lines
301 B
Rust
11 lines
301 B
Rust
// 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()
|
|
}
|