deno_runtime/ops/mod.rs
1// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
3pub mod bootstrap;
4pub mod fs_events;
5pub mod http;
6pub mod os;
7pub mod permissions;
8pub mod process;
9pub mod runtime;
10pub mod signal;
11pub mod tty;
12pub mod web_worker;
13pub mod worker_host;
14
15use deno_core::OpState;
16
17/// Helper for checking unstable features. Used for sync ops.
18pub fn check_unstable(state: &OpState, feature: &str, api_name: &str) {
19 state.feature_checker.check_or_exit(feature, api_name);
20}
21
22pub struct TestingFeaturesEnabled(pub bool);