Registry / utility / open
library5.3.5rscratesunverified

Open a path or URL using the program configured on the system.

# Cargo.toml [dependencies] open = "5.3.5"
INSTALL
IMPORT
SIG · OPEN
O
open
utilityrustv5.3.5
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.

that
use open::that;

Opens a URL in the default browser.

use open::that; fn main() { that("https://www.rust-lang.org").expect("failed to open URL"); }
Debug
Known issues
gotchaOn Linux, may fail if no desktop environment or xdg-open is not installed.
fix
Ensure xdg-utils is installed or use a fallback.
affects: >=0.0.0
Upgrade
Version history
5.3.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
open — cargo add open · libregistry