| Crates.io | gofer |
| lib.rs | gofer |
| version | 0.1.8 |
| created_at | 2025-04-23 21:24:36.750131+00 |
| updated_at | 2025-07-01 06:15:28.588909+00 |
| description | Gofer.rs makes it easy to fetch data from any URL. |
| homepage | https://github.com/dryrust/gofer.rs |
| repository | https://github.com/dryrust/gofer.rs |
| max_upload_size | |
| id | 1646344 |
| size | 78,481 |
Gofer.rs makes it easy to fetch data from any URL in Rust.
Just call gofer::open(url) to get back a Read!
https:, http:, ftp:, file:, and data: URLs.cargo add gofer
Cargo.toml (with all features enabled)[dependencies]
gofer = "0.1"
Cargo.toml (with only specific features enabled)[dependencies]
gofer = { version = "0.1", default-features = false, features = ["file"] }
use gofer::open;
let result = gofer::open("https://www.google.com/robots.txt");
let result = gofer::open("ftp://ftp.isc.org/welcome.msg");
file: URLslet result = gofer::open("file:///path/to/file.txt");
stdin: URLslet result = gofer::open("stdin:");
data: URLslet result = gofer::open("data:,Hello%2C%20world%21%0A");
| Scheme | Feature | Summary |
|---|
data: | data | Inline data in Base64 or URL-encoded format
file: | file | Local file path
ftp: | ftp | FTP
http: | http | HTTP
https: | https | HTTPS
stdin: | stdin | Standard input stream
| Crate (Feature) | Version | Usage | Summary |
|---|---|---|---|
clap ("clap") |
4.5 | Implements clap::builder::TypedValueParser (TBD) |
|
miette ("miette") |
7.5 | Derives miette::Diagnostic on gofer::Error |
|
git clone https://github.com/dryrust/gofer.rs.git