From f90caa821c5a4acf28f7dec4071994ecf6f26e57 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 12 Apr 2023 15:13:32 +0200 Subject: refactor(ext/fs): abstract FS via FileSystem trait (#18599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Cargo.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index d6874d452..7eca48a2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1002,14 +1002,15 @@ dependencies = [ name = "deno_fs" version = "0.7.0" dependencies = [ + "async-trait", "deno_core", - "deno_crypto", "deno_io", "filetime", "fs3", "libc", "log", "nix", + "rand", "serde", "tokio", "winapi", -- cgit v1.2.3