robius-open
This crate provides easy Rust interfaces to open URIs across multiple platforms, including:
- macOS (via
NSWorkspace) - Android (via
android/content/Intent) - Linux (via
xdg-open) - Windows (via
start) - iOS (via
UIApplication)
URIs take many different forms: URLs (http://), tel:, mailto:, file://, and more (see the official list of schemes).
Examples
use Uri;
new
.open
.expect;
use Uri;
new
.open_with_completion
.expect;