mirror of
https://github.com/denoland/deno.git
synced 2025-03-05 10:26:44 -05:00

- Update to TypeScript 3.1.6 (#1177) - Fixes Headers type not available. (#1175) - Reader/Writer to use Uint8Array not ArrayBufferView (#1171) - Fixes importing modules starting with 'http'. (#1167) - build: Use target/ instead of out/ (#1153) - Support repl multiline input (#1165)
12 lines
354 B
Rust
12 lines
354 B
Rust
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
|
use libdeno;
|
|
use std::ffi::CStr;
|
|
|
|
// TODO Extract this version string from Cargo.toml.
|
|
pub const DENO: &str = "0.1.12";
|
|
|
|
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()
|
|
}
|