mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -05:00
974e2f44b2
This commit creates "deno_os" extension crate and moves numerous ops from "runtime/" crate to the new crate.
20 lines
482 B
Rust
20 lines
482 B
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
pub mod bootstrap;
|
|
pub mod fs_events;
|
|
pub mod http;
|
|
pub mod permissions;
|
|
pub mod process;
|
|
pub mod runtime;
|
|
pub mod tty;
|
|
pub mod web_worker;
|
|
pub mod worker_host;
|
|
|
|
use deno_core::OpState;
|
|
|
|
/// Helper for checking unstable features. Used for sync ops.
|
|
pub fn check_unstable(state: &OpState, feature: &str, api_name: &str) {
|
|
state.feature_checker.check_or_exit(feature, api_name);
|
|
}
|
|
|
|
pub struct TestingFeaturesEnabled(pub bool);
|