mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
8e958d3ad6
- Add atob() btoa() #776 - Add deno.arch deno.platform #773 - Add deno.symlink() and deno.symlinkSync() #742 - Add deno.mkdir() and deno.mkdirSync() #746 - Add deno.makeTempDir() #740 - Improvements to FileInfo interface #765, #761 - Add fetch.blob() - Upgrade V8 to 7.0.276.15 - Upgrade Rust crates
14 lines
456 B
Rust
14 lines
456 B
Rust
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
|
use libdeno;
|
|
use std::ffi::CStr;
|
|
|
|
// This is the source of truth for the Deno version. Ignore the value in Cargo.toml.
|
|
const DENO_VERSION: &str = "0.1.5";
|
|
|
|
pub fn print_version() {
|
|
let v = unsafe { libdeno::deno_v8_version() };
|
|
let c_str = unsafe { CStr::from_ptr(v) };
|
|
let version = c_str.to_str().unwrap();
|
|
println!("deno: {}", DENO_VERSION);
|
|
println!("v8: {}", version);
|
|
}
|