mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore(build): deno_kv - remove dep on deno_node (#25158)
This will help with build perf a bit.
This commit is contained in:
parent
716ae4d8cb
commit
641b52bac7
3 changed files with 2 additions and 4 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -1684,7 +1684,6 @@ dependencies = [
|
|||
"chrono",
|
||||
"deno_core",
|
||||
"deno_fetch",
|
||||
"deno_node",
|
||||
"deno_permissions",
|
||||
"deno_tls",
|
||||
"denokv_proto",
|
||||
|
|
|
@ -21,7 +21,6 @@ bytes.workspace = true
|
|||
chrono = { workspace = true, features = ["now"] }
|
||||
deno_core.workspace = true
|
||||
deno_fetch.workspace = true
|
||||
deno_node.workspace = true
|
||||
deno_permissions.workspace = true
|
||||
deno_tls.workspace = true
|
||||
denokv_proto.workspace = true
|
||||
|
|
|
@ -15,9 +15,9 @@ use std::sync::OnceLock;
|
|||
use async_trait::async_trait;
|
||||
use deno_core::error::type_error;
|
||||
use deno_core::error::AnyError;
|
||||
use deno_core::normalize_path;
|
||||
use deno_core::unsync::spawn_blocking;
|
||||
use deno_core::OpState;
|
||||
use deno_node::PathClean;
|
||||
pub use denokv_sqlite::SqliteBackendError;
|
||||
use denokv_sqlite::SqliteConfig;
|
||||
use denokv_sqlite::SqliteNotifier;
|
||||
|
@ -176,7 +176,7 @@ impl<P: SqliteDbHandlerPermissions> DatabaseHandler for SqliteDbHandler<P> {
|
|||
|
||||
/// Same as Path::canonicalize, but also handles non-existing paths.
|
||||
fn canonicalize_path(path: &Path) -> Result<PathBuf, AnyError> {
|
||||
let path = path.to_path_buf().clean();
|
||||
let path = normalize_path(path);
|
||||
let mut path = path;
|
||||
let mut names_stack = Vec::new();
|
||||
loop {
|
||||
|
|
Loading…
Reference in a new issue