{"id":13569504,"url":"https://github.com/traPtitech/rust-traq","last_synced_at":"2025-04-04T05:32:54.049Z","repository":{"id":172392710,"uuid":"649201506","full_name":"traPtitech/rust-traq","owner":"traPtitech","description":"⚠️ Community Driven ⚠️ Rust client library for the traQ API","archived":false,"fork":false,"pushed_at":"2024-07-30T13:39:11.000Z","size":215,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T22:57:43.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/traPtitech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T05:33:35.000Z","updated_at":"2024-07-30T13:38:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"93bb4ba7-d651-4280-960e-eb1e9637eed0","html_url":"https://github.com/traPtitech/rust-traq","commit_stats":null,"previous_names":["h1rono/rust-traq","traptitech/rust-traq"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Frust-traq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Frust-traq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Frust-traq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2Frust-traq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traPtitech","download_url":"https://codeload.github.com/traPtitech/rust-traq/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223100124,"owners_count":17087387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T14:00:40.805Z","updated_at":"2024-11-05T01:32:35.925Z","avatar_url":"https://github.com/traPtitech.png","language":"Rust","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# rust-traq\n\n[![Rust](https://github.com/traPtitech/rust-traq/actions/workflows/rust.yml/badge.svg)](https://github.com/traPtitech/rust-traq/actions/workflows/rust.yml)\n[![Release](https://github.com/traPtitech/rust-traq/actions/workflows/release.yml/badge.svg)](https://github.com/traPtitech/rust-traq/actions/workflows/release.yml)\n[![LICENSE](https://img.shields.io/github/license/traPtitech/rust-traq)](https://github.com/traPtitech/rust-traq/blob/main/LICENSE)\n\n[![GitHub release](https://img.shields.io/github/v/release/traPtitech/rust-traq?logo=github)](https://github.com/traPtitech/rust-traq/releases/latest)\n[![crate](https://img.shields.io/crates/v/traq?logo=rust)](https://crates.io/crates/traq)\n\n⚠️ Community Driven ⚠️ This is a client library for the traQ API, written in Rust.\n\nThis crate is updated using [openapi-generator](https://openapi-generator.tech).\n\n## Example\n\nAdd this crate using `cargo add traq`, then write in `main.rs`:\n\n```rust\nuse std::{env::var, error::Error};\nuse traq::apis::{channel_api, configuration};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    let access_token = var(\"BOT_ACCESS_TOKEN\")?;\n    let conf = configuration::Configuration {\n        bearer_access_token: Some(access_token),\n        ..Default::default()\n    };\n    let channels = channel_api::get_channels(\u0026conf, Some(true)).await?;\n    println!(\"there are {} public channels\", channels.public.len());\n    Ok(())\n}\n```\n\n## TLS Backend\n\nThis crate depends on [reqwest](https://crates.io/crates/reqwest) as an HTTPS client. As with reqwest, you can select TLS backend through this crate's feature flags.\n\n- `native-tls`: the system-installed TLS backend\n- `rustls-tls`: the TLS library written in Rust\n\n`native-tls` is used by default. To use only `rustls-tls`, write dependencies as:\n\n```toml\n[dependencies]\ntraq.version = \"...\"\ntraq.default-features = false\ntraq.features = [\"rustls-tls\"]\n```\n\nFor more information, see [docs in reqwest::tls](https://docs.rs/reqwest/0.12/reqwest/tls/index.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtraPtitech%2Frust-traq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FtraPtitech%2Frust-traq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtraPtitech%2Frust-traq/lists"}