All Projects → amodm → webbrowser-rs

amodm / webbrowser-rs

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
Rust library to open URLs in the web browsers available on a platform

Programming Languages

rust
11053 projects
swift
15916 projects
HTML
75241 projects

Projects that are alternatives of or similar to webbrowser-rs

rspark
▁▂▆▇▁▄█▁ Sparklines for Rust apps
Stars: ✭ 50 (-66.67%)
Mutual labels:  rust-library, rust-crate
daemonize-me
Rust library to ease the task of creating daemons
Stars: ✭ 34 (-77.33%)
Mutual labels:  rust-library, rust-crate
twang
Library for pure Rust advanced audio synthesis.
Stars: ✭ 83 (-44.67%)
Mutual labels:  rust-library, rust-crate
whoami
Rust crate to get the current user and environment.
Stars: ✭ 68 (-54.67%)
Mutual labels:  rust-library, rust-crate
nativeshell
Experimental embedder for Flutter
Stars: ✭ 553 (+268.67%)
Mutual labels:  rustlang, rust-crate
Curio
A Blazing Fast HTTP Client
Stars: ✭ 35 (-76.67%)
Mutual labels:  rust-library, rust-crate
kul
A unique textual notation that can be used as both a data format and a markup language and that has powerful extensibility of both lexical syntax and semantics, and a Rust library for parsing it.
Stars: ✭ 12 (-92%)
Mutual labels:  rust-library, rust-crate
Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+3131.33%)
Mutual labels:  rust-library, rust-crate
poem
A full-featured and easy-to-use web framework with the Rust programming language.
Stars: ✭ 1,167 (+678%)
Mutual labels:  rust-library, rust-crate
trickster
user-friendly linux memory hacking library
Stars: ✭ 50 (-66.67%)
Mutual labels:  rust-library, rust-crate
gui
A generic UI library/framework.
Stars: ✭ 16 (-89.33%)
Mutual labels:  rust-library, rust-crate
qrrs
CLI QR code generator and reader written in rust
Stars: ✭ 29 (-80.67%)
Mutual labels:  rustlang, rust-crate
finny.rs
Finite State Machines for Rust
Stars: ✭ 48 (-68%)
Mutual labels:  rust-library
Browthon-Reborn
Latest version of Browthon. A clean version in Python with PyQt5
Stars: ✭ 14 (-90.67%)
Mutual labels:  webbrowser
httper
An asynchronous HTTP(S) client built on top of hyper.
Stars: ✭ 16 (-89.33%)
Mutual labels:  rust-library
imgref
A trivial Rust struct for interchange of pixel buffers with width, height & stride
Stars: ✭ 45 (-70%)
Mutual labels:  rust-library
rust-ipfs-api
Rust language IPFS API implementation
Stars: ✭ 20 (-86.67%)
Mutual labels:  rust-library
wasmbin
A self-generating WebAssembly parser & serializer in Rust.
Stars: ✭ 40 (-73.33%)
Mutual labels:  rustlang
rust-lcms2
ICC color profiles in Rust
Stars: ✭ 25 (-83.33%)
Mutual labels:  rust-library
shogi-rs
A Bitboard-based shogi library in Rust. Board representation, move generation/validation and time control utilities.
Stars: ✭ 39 (-74%)
Mutual labels:  rust-crate

webbrowser

Current Crates.io Version Crates.io Downloads License

Linux Build Windows Build MacOS Build iOS Build Android Build WASM Build

Rust library to open URLs in the web browsers available on a platform

Inspired by the webbrowser python library

Documentation

Examples

use webbrowser;

if webbrowser::open("http://github.com").is_ok() {
    // ...
}

Platform Support

Platform Supported Browsers Test status
macos default + others
windows default only
linux/*bsd default only (respects $BROWSER env var, so can be used with other browsers)
android default only
wasm default only
haiku (experimental) default only
ios default only

Consistent Behaviour

webbrowser defines consistent behaviour on all platforms as follows:

  • Non-Blocking for GUI based browsers (e.g. Firefox, Chrome etc.), while Blocking for text based browser (e.g. lynx etc.)
  • Suppressed output by default for GUI based browsers, so that their stdout/stderr don't pollute the main program's output. This can be overridden by webbrowser::open_browser_with_options.

Looking to contribute?

PRs invited for

  • Bugs
  • Supporting non-default browser invocation on any platform

Important note (while testing):

  • This library requires availability of browsers and a graphical environment during runtime
  • cargo test will actually open the browser locally

When contributing, please note that your work will be dual licensed as MIT + Apache-2.0 (see below).

License

SPDX-License-Identifier: Apache-2.0 OR MIT

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].