diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-02-01 16:25:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 16:25:56 +0100 |
commit | aba91490d629eea9daeb016758ebeb16deb6f9bd (patch) | |
tree | c0ce389bada8b5e095298d5e26c3273cc9a0e8cc /cli | |
parent | ca11536f3fe1a0a801afe8b4bfd82a20a6a233a0 (diff) |
fix(publish): use lighter crate for opening browser (#22224)
Alternative to https://github.com/denoland/deno/pull/22223 which
switches `webbrowser` crate to `open` (https://crates.io/crates/open)
which is lighterweight.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/tools/registry/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 8f3b5098e..5c79b85e3 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -107,6 +107,7 @@ lsp-types.workspace = true monch.workspace = true notify.workspace = true once_cell.workspace = true +open = "5.0.1" os_pipe.workspace = true percent-encoding.workspace = true pin-project.workspace = true @@ -133,7 +134,6 @@ typed-arena = "=2.0.1" unicode-width = "0.1" uuid = { workspace = true, features = ["serde"] } walkdir = "=2.3.2" -webbrowser = "0.8.12" zeromq = { version = "=0.3.4", default-features = false, features = ["tcp-transport", "tokio-runtime"] } zstd.workspace = true diff --git a/cli/tools/registry/mod.rs b/cli/tools/registry/mod.rs index b2e7b2aad..5b3b70c4b 100644 --- a/cli/tools/registry/mod.rs +++ b/cli/tools/registry/mod.rs @@ -221,7 +221,7 @@ async fn get_auth_headers( ring_bell(); println!("{}", colors::gray("Waiting...")); - let _ = webbrowser::open(&auth_url); + let _ = open::that_detached(&auth_url); let interval = std::time::Duration::from_secs(auth.poll_interval); @@ -415,7 +415,7 @@ async fn ensure_scopes_and_packages_exist( colors::cyan_with_underline(&create_package_url) ); println!("{}", colors::gray("Waiting...")); - let _ = webbrowser::open(&create_package_url); + let _ = open::that_detached(&create_package_url); let package_api_url = api::get_package_api_url( ®istry_api_url, |