Gofer.rs
Gofer.rs makes it easy to fetch and read files from URLs in Rust.
Just call gofer::open(url)? to get back a Read!
✨ Features
- Currently supports
https:,http:,file:, anddata:URLs. - Supports opting out of any feature using comprehensive feature flags.
- Adheres to the Rust API Guidelines in its naming conventions.
- 100% free and unencumbered public domain software.
🛠️ Prerequisites
- Rust 1.81+
⬇️ Installation
Installation via Cargo
Installation in Cargo.toml (with all features enabled)
[]
= "0.1"
Installation in Cargo.toml (with only specific features enabled)
[]
= { = "0.1", = false, = ["https"] }
👉 Examples
Importing the library
use open;
Reading HTTP(S) URLs
open?
Reading file: URLs
open?
Reading data: URLs
open?
📚 Reference
👨💻 Development