paper-mc

Crates.iopaper-mc
lib.rspaper-mc
version0.1.0
sourcesrc
created_at2022-10-02 11:09:02.737992
updated_at2022-10-02 11:09:02.737992
descriptionPaperMC client, generated from the OpenAPI spec.
homepagehttps://github.com/libninjacom/paper-mc-rs
repositoryhttps://github.com/libninjacom/paper-mc-rs
max_upload_size
id678248
size54,133
Kurt Wolf (kurtbuilds)

documentation

https://docs.rs/paper-mc

README

GitHub Contributors Stars Build Status Downloads Crates.io

PaperMC client, generated from the OpenAPI spec.

Usage

use paper_mc::PaperMcClient;
use paper_mc::model::*;
#[tokio::main]
async fn main() {
    let client = PaperMcClient::from_env();
    let response = client.projects().send().await.unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • PAPER_MC_BASE_URL

Installation

Add this to your Cargo.toml:

[dependencies]
paper-mc = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Commit count: 1

cargo fmt