3 releases (breaking)

0.3.0-rc.1 May 16, 2022
0.2.0 Dec 17, 2020
0.1.0 Sep 15, 2020

#22 in WebSocket

Download history 6/week @ 2022-03-10 9/week @ 2022-03-17 2/week @ 2022-03-24 3/week @ 2022-03-31 3/week @ 2022-04-07 3/week @ 2022-04-14 3/week @ 2022-04-21 17/week @ 2022-04-28 14/week @ 2022-05-05 55/week @ 2022-05-12 18/week @ 2022-05-19 21/week @ 2022-05-26 31/week @ 2022-06-02 2/week @ 2022-06-09 8/week @ 2022-06-16 5/week @ 2022-06-23

53 downloads per month

MIT/Apache

1MB
22K SLoC

misskey-rs

crates.io docs.rs Actions Status PRs Welcome

misskey-rs is an asynchronous Misskey client library for Rust.

use misskey::prelude::*;
use misskey::HttpClient;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
  let client = HttpClient::builder("https://your.instance.example/api/")
      .token("API_TOKEN")
      .build()?;

  client.create_note("Hello, Misskey").await?;

  Ok(())
}

Take a look at the example directory for more examples.

Usage

Add the following to your Cargo.toml:

[dependencies]
misskey = { version = "0.3.0-rc.1", features = ["12-75-0"] }

To run the example above, you will need to add the following dependencies:

tokio = { version = "1.0", features = ["full"] }
anyhow = "1.0"

See the API documentation for further details.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~5–15MB
~307K SLoC