#mime #uri #opening #open #error #applications

mime_open

A small library for opening a uri in an appropriate application

2 unstable releases

0.2.0 Jun 4, 2022
0.1.0 Mar 8, 2022

#1583 in Filesystem

Download history 5/week @ 2024-12-04 7/week @ 2024-12-11 64/week @ 2025-02-12 8/week @ 2025-02-26

72 downloads per month
Used in gemview

MIT license

5KB
65 lines

Small library for opening a uri with an appropriate program.

Usage

use mime_open::open

if let Err(e) = open("https://duckduckgo.com") {
    eprintln!("Error opening url: {}", e);
}

lib.rs:

Small library for opening a uri with an appropriate program.

Usage

use mime_open::open

if let Err(e) = open("https://duckduckgo.com") {
    eprintln!("Error opening url: {}", e);
}

No runtime deps