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

85 lines
2.3 KiB
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
2020-01-05 09:19:29 -05:00
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
mod async_cancel;
mod async_cell;
mod bindings;
pub mod error;
mod flags;
mod gotham_state;
2019-06-12 19:55:59 -04:00
mod module_specifier;
mod modules;
mod normalize_path;
2019-09-30 14:59:44 -04:00
mod ops;
pub mod plugin_api;
2019-10-23 12:32:28 -04:00
mod resources;
mod runtime;
mod shared_queue;
2020-05-28 13:36:43 -04:00
mod zero_copy_buf;
// Re-exports
pub use futures;
pub use rusty_v8 as v8;
pub use serde;
pub use serde_json;
pub use url;
2020-01-05 09:19:29 -05:00
pub use crate::async_cancel::CancelFuture;
pub use crate::async_cancel::CancelHandle;
pub use crate::async_cancel::CancelTryFuture;
pub use crate::async_cancel::Cancelable;
pub use crate::async_cancel::Canceled;
pub use crate::async_cancel::TryCancelable;
pub use crate::async_cell::AsyncMut;
pub use crate::async_cell::AsyncMutFuture;
pub use crate::async_cell::AsyncRef;
pub use crate::async_cell::AsyncRefCell;
pub use crate::async_cell::AsyncRefFuture;
pub use crate::async_cell::RcLike;
pub use crate::async_cell::RcRef;
pub use crate::flags::v8_set_flags;
2020-05-28 13:36:43 -04:00
pub use crate::module_specifier::ModuleResolutionError;
pub use crate::module_specifier::ModuleSpecifier;
pub use crate::modules::FsModuleLoader;
2020-05-28 13:36:43 -04:00
pub use crate::modules::ModuleId;
pub use crate::modules::ModuleLoadId;
pub use crate::modules::ModuleLoader;
pub use crate::modules::ModuleSource;
pub use crate::modules::ModuleSourceFuture;
pub use crate::modules::NoopModuleLoader;
2020-05-28 13:36:43 -04:00
pub use crate::modules::RecursiveModuleLoad;
pub use crate::normalize_path::normalize_path;
pub use crate::ops::json_op_async;
pub use crate::ops::json_op_sync;
pub use crate::ops::op_close;
pub use crate::ops::op_resources;
2020-05-28 13:36:43 -04:00
pub use crate::ops::Op;
pub use crate::ops::OpAsyncFuture;
2020-09-05 20:34:02 -04:00
pub use crate::ops::OpFn;
2020-05-28 13:36:43 -04:00
pub use crate::ops::OpId;
pub use crate::ops::OpState;
2020-09-05 20:34:02 -04:00
pub use crate::ops::OpTable;
pub use crate::resources::Resource;
pub use crate::resources::ResourceId;
2020-05-28 13:36:43 -04:00
pub use crate::resources::ResourceTable;
pub use crate::runtime::GetErrorClassFn;
pub use crate::runtime::JsErrorCreateFn;
pub use crate::runtime::JsRuntime;
pub use crate::runtime::RuntimeOptions;
pub use crate::runtime::Snapshot;
pub use crate::zero_copy_buf::BufVec;
2020-05-28 13:36:43 -04:00
pub use crate::zero_copy_buf::ZeroCopyBuf;
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);
}