5 releases

0.1.4 Mar 21, 2024
0.1.3 Dec 27, 2023
0.1.2 Jul 21, 2023
0.1.1 Jun 15, 2023
0.1.0 Jun 5, 2023

#477 in Web programming

Download history 57/week @ 2023-12-17 38/week @ 2023-12-24 6/week @ 2024-01-28 3/week @ 2024-02-04 10/week @ 2024-02-18 23/week @ 2024-02-25 5/week @ 2024-03-03 2/week @ 2024-03-10 111/week @ 2024-03-17 8/week @ 2024-03-24 77/week @ 2024-03-31

199 downloads per month

Custom license

635KB
13K SLoC

rust-traq

Rust Release LICENSE

GitHub release crate

⚠️ Community Driven ⚠️ This is a client library for the traQ API, written in Rust.

This crate is updated using openapi-generator.

Example

Add this crate using cargo add traq, then write in main.rs:

use traq::apis::{channel_api, configuration};

#[tokio::main]
async fn main() {
    let conf = configuration::Configuration {
        bearer_access_token: env::var("BOT_ACCESS_TOKEN").ok(),
        ..Default::default()
    };
    let res = channel_api::get_channels(&conf, Some(true)).await;
    println!("{:?}", res);
}

Dependencies

~4–17MB
~235K SLoC