Registry / utility / webbrowser

webbrowser

JSON →
library1.2.1rscratesunverified

Open URLs in web browsers available on a platform

# Cargo.toml [dependencies] webbrowser = "1.2.1"
INSTALL
IMPORT
SIG · WEBBROWSER
W
webbrowser
utilityrustv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

open
✓ use webbrowser::open;

Opens a URL in the default web browser.

use webbrowser::open; fn main() -> Result<(), Box<dyn std::error::Error>> { open("https://www.rust-lang.org")?; Ok(()) }
Debug
Known issues
gotchaMay not work in all environments (e.g., headless servers, restricted sandboxes).
fix
Check if a browser is available or use a fallback.
affects: >=0.0.0
Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
webbrowser — cargo add webbrowser · libregistry