2021-01-11 02:59:07 +00:00
|
|
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
2020-12-13 18:45:53 +00:00
|
|
|
|
2021-11-27 23:45:38 +00:00
|
|
|
use std::sync::atomic::AtomicI32;
|
|
|
|
|
2021-05-22 16:08:24 +00:00
|
|
|
pub use deno_broadcast_channel;
|
2021-03-12 20:23:59 +00:00
|
|
|
pub use deno_console;
|
2020-12-13 18:45:53 +00:00
|
|
|
pub use deno_crypto;
|
|
|
|
pub use deno_fetch;
|
2021-08-06 21:28:10 +00:00
|
|
|
pub use deno_ffi;
|
2021-07-12 10:44:49 +00:00
|
|
|
pub use deno_http;
|
2021-06-28 23:43:03 +00:00
|
|
|
pub use deno_net;
|
2021-05-02 12:28:36 +00:00
|
|
|
pub use deno_timers;
|
2021-08-07 12:49:38 +00:00
|
|
|
pub use deno_tls;
|
chore: split web op crate (#9635)
This commit starts splitting out the deno_web op crate into multiple
smaller crates. This commit splits out WebIDL and URL API, but in the
future I want to split out each spec into its own crate. That means we
will have (in rough order of loading): `webidl`, `dom`, `streams`,
`console`, `encoding`, `url`, `file`, `fetch`, `websocket`, and
`webgpu` crates.
2021-03-12 15:17:18 +00:00
|
|
|
pub use deno_url;
|
2020-12-13 18:45:53 +00:00
|
|
|
pub use deno_web;
|
2021-03-01 10:31:13 +00:00
|
|
|
pub use deno_webgpu;
|
chore: split web op crate (#9635)
This commit starts splitting out the deno_web op crate into multiple
smaller crates. This commit splits out WebIDL and URL API, but in the
future I want to split out each spec into its own crate. That means we
will have (in rough order of loading): `webidl`, `dom`, `streams`,
`console`, `encoding`, `url`, `file`, `fetch`, `websocket`, and
`webgpu` crates.
2021-03-12 15:17:18 +00:00
|
|
|
pub use deno_webidl;
|
2021-01-06 15:57:28 +00:00
|
|
|
pub use deno_websocket;
|
2021-05-10 10:02:47 +00:00
|
|
|
pub use deno_webstorage;
|
2020-12-13 18:45:53 +00:00
|
|
|
|
|
|
|
pub mod colors;
|
|
|
|
pub mod errors;
|
|
|
|
pub mod fs_util;
|
2021-05-26 19:07:12 +00:00
|
|
|
pub mod inspector_server;
|
2020-12-13 18:45:53 +00:00
|
|
|
pub mod js;
|
|
|
|
pub mod ops;
|
|
|
|
pub mod permissions;
|
|
|
|
pub mod tokio_util;
|
|
|
|
pub mod web_worker;
|
|
|
|
pub mod worker;
|
2021-10-05 20:41:14 +00:00
|
|
|
|
|
|
|
mod worker_bootstrap;
|
|
|
|
pub use worker_bootstrap::BootstrapOptions;
|
2021-11-27 23:45:38 +00:00
|
|
|
|
|
|
|
// The global may not be very elegant but:
|
|
|
|
//
|
|
|
|
// 1. op_exit() calls std::process::exit() so there is not much point storing
|
|
|
|
// the exit code in runtime state
|
|
|
|
//
|
|
|
|
// 2. storing it in runtime state makes retrieving it again in cli/main.rs
|
|
|
|
// unduly complicated
|
|
|
|
pub static EXIT_CODE: AtomicI32 = AtomicI32::new(0);
|