2021-01-10 21:59:07 -05:00
|
|
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
2020-12-13 13:45:53 -05:00
|
|
|
|
2021-11-27 18:45:38 -05:00
|
|
|
use std::sync::atomic::AtomicI32;
|
|
|
|
|
2021-05-22 12:08:24 -04:00
|
|
|
pub use deno_broadcast_channel;
|
2021-03-12 15:23:59 -05:00
|
|
|
pub use deno_console;
|
2021-11-28 13:07:32 -05:00
|
|
|
pub use deno_core;
|
2020-12-13 13:45:53 -05:00
|
|
|
pub use deno_crypto;
|
|
|
|
pub use deno_fetch;
|
2021-08-06 17:28:10 -04:00
|
|
|
pub use deno_ffi;
|
2021-07-12 06:44:49 -04:00
|
|
|
pub use deno_http;
|
2021-06-28 19:43:03 -04:00
|
|
|
pub use deno_net;
|
2021-05-02 08:28:36 -04:00
|
|
|
pub use deno_timers;
|
2021-08-07 08:49:38 -04: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 10:17:18 -05:00
|
|
|
pub use deno_url;
|
2020-12-13 13:45:53 -05:00
|
|
|
pub use deno_web;
|
2021-03-01 05:31:13 -05: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 10:17:18 -05:00
|
|
|
pub use deno_webidl;
|
2021-01-06 10:57:28 -05:00
|
|
|
pub use deno_websocket;
|
2021-05-10 06:02:47 -04:00
|
|
|
pub use deno_webstorage;
|
2020-12-13 13:45:53 -05:00
|
|
|
|
|
|
|
pub mod colors;
|
|
|
|
pub mod errors;
|
|
|
|
pub mod fs_util;
|
2021-05-26 15:07:12 -04:00
|
|
|
pub mod inspector_server;
|
2020-12-13 13:45:53 -05:00
|
|
|
pub mod js;
|
|
|
|
pub mod ops;
|
|
|
|
pub mod permissions;
|
|
|
|
pub mod tokio_util;
|
|
|
|
pub mod web_worker;
|
|
|
|
pub mod worker;
|
2021-10-05 16:41:14 -04:00
|
|
|
|
|
|
|
mod worker_bootstrap;
|
|
|
|
pub use worker_bootstrap::BootstrapOptions;
|
2021-11-27 18:45:38 -05: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);
|