13 releases
0.1.12 | Dec 18, 2023 |
---|---|
0.1.11 | Nov 20, 2023 |
0.1.10 | Oct 15, 2023 |
0.1.2 | Sep 23, 2023 |
0.0.0 |
|
#1853 in Network programming
219 downloads per month
Used in hop-cli
105KB
2.5K
SLoC
hop
This crate provides a Rust interface to the Hop API.
Installation
Add the following to your Cargo.toml
file:
[dependencies]
hop = "0.1.0"
Usage
use hop::{Hop, HopOptions};
let hop = Hop::new_with_options(HopOptions {
token: Some("your-token".to_string()),
..Default::default()
});
let me = hop.users.me().await?;
println!("Hello, {}!", me.user.name);
Dependencies
~4–17MB
~237K SLoC