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 May 15, 2020

#1853 in Network programming

Download history 11/week @ 2024-07-24 9/week @ 2024-07-31 2/week @ 2024-08-28 5/week @ 2024-09-18 12/week @ 2024-09-25

219 downloads per month
Used in hop-cli

MPL-2.0 license

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