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:
# macOS
# Windows
# Linux
|| || || ||
Library Usage
Add this to your Cargo.toml
[]
= "5"
…and open something using…
;
that
…or, open something with an application of your choice
;
with
Follow this link for the API docs.
Binary Usage
This crate also implements a binary that acts like an opener itself.
cargo run 'file to open'
Credits
The implementation is based on the respective functionality of Cargo, but was improved to allow some error handling.