| Crates.io | ezlime-rs |
| lib.rs | ezlime-rs |
| version | 0.2.0 |
| created_at | 2025-11-23 21:55:59.661697+00 |
| updated_at | 2025-11-23 22:26:59.486927+00 |
| description | A Rust client library for the ezli.me URL shortener API |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1947027 |
| size | 60,260 |
A Rust client library for the ezli.me URL shortener API.
Add this to your Cargo.toml:
[dependencies]
ezlime-rs = "0.1"
To use the ezli.me API, you'll need an API key. If you're interested in using ezli.me for your own project, please join our Discord server to request an API key.
use ezlime_rs::EzlimeApi;
#[tokio::main]
async fn main() -> Result<(), ezlime_rs::EzlimeApiError> {
let api = EzlimeApi::new("your-api-key-here".to_string());
let original_url = "https://example.com/very/long/url/that/needs/shortening";
let shortened = api.create_short_url(original_url).await?;
println!("Shortened URL: {}", shortened);
Ok(())
}
This project is licensed under either of:
at your option.
Contributions are welcome! Please feel free to submit a Pull Request.