diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-10-31 05:38:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 12:38:39 +0000 |
commit | edee8ab95d28abfce5606ab35e02b7c7ace2cf8d (patch) | |
tree | 945ab7e76fb71321775e110cc6f8fc7ab34de764 /ext/node | |
parent | ba6bd444b60606f96dd7b2edb1b14aeae22b5016 (diff) |
chore: use deno_whoami (#21027)
Towards #20996
`deno_whoami` is lightweight on unix and has zero framework dependency
on macOS. https://github.com/denoland/deno_whoami
---------
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/Cargo.toml | 2 | ||||
-rw-r--r-- | ext/node/ops/os.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/Cargo.toml b/ext/node/Cargo.toml index f88d3a402..60f63e2b7 100644 --- a/ext/node/Cargo.toml +++ b/ext/node/Cargo.toml @@ -25,6 +25,7 @@ deno_fetch.workspace = true deno_fs.workspace = true deno_media_type.workspace = true deno_net.workspace = true +deno_whoami = "0.1.0" digest = { version = "0.10.5", features = ["core-api", "std"] } dsa = "0.6.1" ecb.workspace = true @@ -66,7 +67,6 @@ signature.workspace = true tokio.workspace = true typenum = "1.15.0" url.workspace = true -whoami = "1.4.0" winapi.workspace = true # https://github.com/dalek-cryptography/x25519-dalek/pull/89 x25519-dalek = "2.0.0-pre.1" diff --git a/ext/node/ops/os.rs b/ext/node/ops/os.rs index de44e857b..9fb0b44e1 100644 --- a/ext/node/ops/os.rs +++ b/ext/node/ops/os.rs @@ -49,7 +49,7 @@ where permissions.check_sys("userInfo", "node:os.userInfo()")?; } - Ok(whoami::username()) + Ok(deno_whoami::username()) } #[cfg(unix)] |