1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-15 16:43:44 -05:00
denoland-deno/core/lib.rs

48 lines
892 B
Rust
Raw Normal View History

2020-01-02 15:13:47 -05:00
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
2020-01-06 11:38:56 -05:00
#![deny(warnings)]
#[macro_use]
extern crate log;
extern crate futures;
extern crate libc;
2019-10-23 12:32:28 -04:00
#[macro_use]
extern crate downcast_rs;
2020-01-05 09:19:29 -05:00
extern crate rusty_v8;
#[macro_use]
extern crate lazy_static;
mod any_error;
mod bindings;
mod es_isolate;
mod flags;
mod isolate;
mod js_errors;
2019-06-12 19:55:59 -04:00
mod module_specifier;
mod modules;
2019-09-30 14:59:44 -04:00
mod ops;
mod plugins;
2019-10-23 12:32:28 -04:00
mod resources;
mod shared_queue;
2020-01-05 09:19:29 -05:00
use rusty_v8 as v8;
pub use crate::any_error::*;
pub use crate::es_isolate::*;
pub use crate::flags::v8_set_flags;
pub use crate::isolate::*;
pub use crate::js_errors::*;
pub use crate::module_specifier::*;
pub use crate::modules::*;
2019-09-30 14:59:44 -04:00
pub use crate::ops::*;
pub use crate::plugins::*;
2019-10-23 12:32:28 -04:00
pub use crate::resources::*;
pub fn v8_version() -> &'static str {
2020-01-05 09:19:29 -05:00
v8::V8::get_version()
}
#[test]
fn test_v8_version() {
assert!(v8_version().len() > 3);
}