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
|
|
|
|
2019-10-23 18:32:28 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate downcast_rs;
|
2020-03-02 14:20:16 -08:00
|
|
|
extern crate futures;
|
2020-01-05 09:19:29 -05:00
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
2020-03-02 14:20:16 -08:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2019-02-26 17:36:05 -05:00
|
|
|
|
2019-07-11 00:53:48 +02:00
|
|
|
mod any_error;
|
2020-01-06 16:24:44 +01:00
|
|
|
mod bindings;
|
2020-01-07 12:45:44 +01:00
|
|
|
mod es_isolate;
|
2019-03-11 17:57:36 -04:00
|
|
|
mod flags;
|
|
|
|
mod isolate;
|
2019-02-26 17:36:05 -05:00
|
|
|
mod js_errors;
|
2019-06-13 01:55:59 +02:00
|
|
|
mod module_specifier;
|
2019-03-26 11:56:34 -04:00
|
|
|
mod modules;
|
2019-09-30 20:59:44 +02:00
|
|
|
mod ops;
|
2020-05-11 20:20:14 +02:00
|
|
|
pub mod plugin_api;
|
2019-10-23 18:32:28 +02:00
|
|
|
mod resources;
|
2019-03-14 19:17:52 -04:00
|
|
|
mod shared_queue;
|
2019-02-26 17:36:05 -05:00
|
|
|
|
2020-03-27 16:09:51 -04:00
|
|
|
pub use rusty_v8 as v8;
|
2020-01-05 09:19:29 -05:00
|
|
|
|
2019-07-11 00:53:48 +02:00
|
|
|
pub use crate::any_error::*;
|
2020-01-07 12:45:44 +01:00
|
|
|
pub use crate::es_isolate::*;
|
2019-03-11 17:57:36 -04:00
|
|
|
pub use crate::flags::v8_set_flags;
|
|
|
|
pub use crate::isolate::*;
|
2019-02-28 16:19:04 -05:00
|
|
|
pub use crate::js_errors::*;
|
2019-06-30 19:45:59 +02:00
|
|
|
pub use crate::module_specifier::*;
|
2019-03-26 11:56:34 -04:00
|
|
|
pub use crate::modules::*;
|
2019-09-30 20:59:44 +02:00
|
|
|
pub use crate::ops::*;
|
2019-10-23 18:32:28 +02:00
|
|
|
pub use crate::resources::*;
|
2019-02-26 17:36:05 -05:00
|
|
|
|
2019-03-11 17:57:36 -04:00
|
|
|
pub fn v8_version() -> &'static str {
|
2020-01-05 09:19:29 -05:00
|
|
|
v8::V8::get_version()
|
2019-02-26 17:36:05 -05:00
|
|
|
}
|
|
|
|
|
2019-03-11 17:57:36 -04:00
|
|
|
#[test]
|
|
|
|
fn test_v8_version() {
|
|
|
|
assert!(v8_version().len() > 3);
|
2019-02-26 17:36:05 -05:00
|
|
|
}
|
2020-02-01 03:02:23 -08:00
|
|
|
|
|
|
|
crate_modules!();
|