diff options
| author | Luca Casonato <hello@lcas.dev> | 2023-04-12 15:13:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-12 15:13:32 +0200 |
| commit | f90caa821c5a4acf28f7dec4071994ecf6f26e57 (patch) | |
| tree | fa4af65399a16a9f2d17fa2b249f21be2c00b976 /ext/fs/Cargo.toml | |
| parent | 0e3f62d4446ae7b9a64dacf7befcaecede118222 (diff) | |
refactor(ext/fs): abstract FS via FileSystem trait (#18599)
This commit abstracts out the specifics of the underlying system calls
FS operations behind a new `FileSystem` and `File` trait in the
`ext/fs` extension.
This allows other embedders to re-use ext/fs, but substituting in a
different FS backend.
This is likely not the final form of these traits. Eventually they will
be entirely `deno_core::Resource` agnostic, and will live in a seperate
crate.
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/fs/Cargo.toml')
| -rw-r--r-- | ext/fs/Cargo.toml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/fs/Cargo.toml b/ext/fs/Cargo.toml index 69b32c163..016d73ae6 100644 --- a/ext/fs/Cargo.toml +++ b/ext/fs/Cargo.toml @@ -14,13 +14,14 @@ description = "Ops for interacting with the file system" path = "lib.rs" [dependencies] +async-trait.workspace = true deno_core.workspace = true -deno_crypto.workspace = true deno_io.workspace = true filetime = "0.2.16" fs3 = "0.5.0" libc.workspace = true log.workspace = true +rand.workspace = true serde.workspace = true tokio.workspace = true |
