Crates.io | papermc |
lib.rs | papermc |
version | 0.1.0 |
source | src |
created_at | 2023-07-19 18:45:25.206705 |
updated_at | 2023-07-19 18:45:25.206705 |
description | PaperMc client, generated from the OpenAPI spec. |
homepage | https://github.com/domirusz24/papermc-rs |
repository | https://github.com/domirusz24/papermc-rs |
max_upload_size | |
id | 920651 |
size | 65,858 |
PaperMC client, generated from the OpenAPI spec.
use papermc::PaperMcClient;
use papermc::model::*;
#[tokio::main]
async fn main() {
let client = PaperMcClient::from_env();
let response = client.projects().await.unwrap();
println!("{:#?}", response);
}
This example loads configuration from environment variables, specifically:
Add this to your Cargo.toml:
[dependencies]
papermc = "0.1.0"
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.