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

#520 in Web programming

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–16MB
~233K SLoC