• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H03-May-2022-164155

src/H03-May-2022-455331

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D19-Jul-202074 65

.gitignoreH A D10-May-202029 43

CHANGELOG.mdH A D19-Jul-20203.9 KiB8769

Cargo.tomlH A D19-Jul-20201.2 KiB3431

Cargo.toml.orig-cargoH A D19-Jul-2020683 2320

LICENSE-APACHEH A D28-Oct-201910.1 KiB194161

LICENSE-MITH A D28-Oct-20191.1 KiB2823

README.mdH A D19-Jul-20201.8 KiB5637

README.md

1# webbrowser
2
3![Build Status](https://github.com/amodm/webbrowser-rs/workflows/Build/badge.svg)
4[![Current Crates.io Version](https://img.shields.io/crates/v/webbrowser.svg)](https://crates.io/crates/webbrowser)
5[![Crates.io Downloads](https://img.shields.io/crates/d/webbrowser.svg)](https://crates.io/crates/webbrowser)
6[![License](https://img.shields.io/crates/l/webbrowser.svg)](LICENSE-MIT)
7
8Rust library to open URLs in the web browsers available on a platform
9
10Inspired by the [webbrowser](https://docs.python.org/2/library/webbrowser.html) python library
11
12## Documentation
13
14- [API Reference](http://code.rootnet.in/webbrowser-rs/webbrowser/)
15- [Release Notes](CHANGELOG.md)
16
17## Examples
18
19```rust
20use webbrowser;
21
22if webbrowser::open("http://github.com").is_ok() {
23    // ...
24}
25```
26
27Currently state of platform support is:
28
29* macos => default, as well as browsers listed under [Browser](enum.Browser.html)
30* windows => default browser only
31* linux/*bsd => default browser only (uses $BROWSER env var, failing back to xdg-open, gvfs-open, gnome-open, whichever works first)
32* android => default browser only
33* haiku => untested and experimental
34* wasm -> untested and experimental
35* ios => not supported right now
36
37Important note:
38
39* This library requires availability of browsers and a graphical environment during runtime
40* `cargo test` will actually open the browser locally
41
42## License
43
44Licensed under either of
45
46* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
47* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
48
49at your option.
50
51### Contribution
52
53Unless you explicitly state otherwise, any contribution intentionally submitted
54for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
55additional terms or conditions.
56