Use this library to open a path or URL using the program configured on the system. It is equivalent to running one of the following:
```bash
$ open
$ start
$ xdg-open
Add this to your Cargo.toml
toml
[dependencies]
open = "3"
…and open something using…
Rust
open::that("https://rust-lang.org");
…or, open something with an application of your choice
Rust
open::with("https://rust-lang.org", "firefox");
Follow this link for the API docs.
This crate also implements a binary that acts like an opener itself.
shell
cargo run 'file to open'
The implementation is based on the respective functionality of Cargo, but was improved to allow some error handling.