open 1.0.1

Open a path or URL using the program configured on the system
docs.rs failed to build open-1.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: open-5.1.2

Build Status

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:

# OSX
$ open <path-or-url>
# Windows
$ start <path-or-url>
# Linux
$ open <path-or-url> || xdg-open <path-or-url> || gnome-open <path-or-url> || kde-open <path-or-url>

Usage

Add this to your Cargo.toml

[dependencies]
open = "*"

Add this to your lib ...

extern crate open;

... and open something using

open::that("https://rust-lang.org");

Follow this link for the massive API docs.

Credits

The implementation is based on the respective functionality of cargo, but was improved to allow some error handling.