mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
38 lines
724 B
Rust
38 lines
724 B
Rust
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
||
|
|
||
|
use deno_node::ExtNodeSys;
|
||
|
use sys_traits::FsCanonicalize;
|
||
|
use sys_traits::FsCreateDirAll;
|
||
|
use sys_traits::FsMetadata;
|
||
|
use sys_traits::FsOpen;
|
||
|
use sys_traits::FsRead;
|
||
|
use sys_traits::FsReadDir;
|
||
|
use sys_traits::FsRemoveFile;
|
||
|
use sys_traits::FsRename;
|
||
|
use sys_traits::SystemRandom;
|
||
|
use sys_traits::ThreadSleep;
|
||
|
|
||
|
pub trait DenoLibSys:
|
||
|
FsCanonicalize
|
||
|
+ FsCreateDirAll
|
||
|
+ FsReadDir
|
||
|
+ FsMetadata
|
||
|
+ FsOpen
|
||
|
+ FsRemoveFile
|
||
|
+ FsRename
|
||
|
+ FsRead
|
||
|
+ ThreadSleep
|
||
|
+ SystemRandom
|
||
|
+ ExtNodeSys
|
||
|
+ Clone
|
||
|
+ Send
|
||
|
+ Sync
|
||
|
+ std::fmt::Debug
|
||
|
+ 'static
|
||
|
{
|
||
|
}
|
||
|
|
||
|
// ok, implementation
|
||
|
#[allow(clippy::disallowed_types)]
|
||
|
impl DenoLibSys for sys_traits::impls::RealSys {}
|