[![](http://meritbadge.herokuapp.com/open)](https://crates.io/crates/open) [![Build Status](https://travis-ci.org/Byron/open-rs.svg?branch=master)](https://travis-ci.org/Byron/open-rs) 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 # OSX $ open # Windows $ start # Linux $ open || xdg-open || gnome-open || kde-open ``` # Usage Add this to your Cargo.toml ```toml [dependencies] open = "1" ``` …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 [massive API docs](http://byron.github.io/open-rs). # Credits The implementation is based on the respective functionality of [cargo](https://github.com/rust-lang/cargo), but was improved to allow some error handling.