summaryrefslogtreecommitdiff
path: root/cli/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/version.rs')
-rw-r--r--cli/version.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/version.rs b/cli/version.rs
new file mode 100644
index 000000000..e6ec9008b
--- /dev/null
+++ b/cli/version.rs
@@ -0,0 +1,6 @@
+// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+pub const DENO: &str = env!("CARGO_PKG_VERSION");
+
+pub fn v8() -> &'static str {
+ deno_core::v8_version()
+}