mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 02:29:06 -05:00
e6121762f8
- Don't crash when .mime file not exist in cache (#1291) - Process source maps in Rust instead of JS (#1280) - Use alternate TextEncoder/TextDecoder implementation (#1281) - Upgrade flatbuffers to 80d148 - Fix memory leaks (#1265, #1275)
12 lines
353 B
Rust
12 lines
353 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.2.2";
|
|
|
|
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()
|
|
}
|