A minimal, blazing-fast and fully-typed JSPaste API library for Rust
Features
- Simple. Perform requests to JSPaste out of the box with simple functions.
- Robust. RSPaste is built in Rust, the world's most loved programming language.
- Safe. RSPaste is completely typesafe, meaning that all data received from the API is typed correctly.
Install
Put the desired version of the crate into the dependencies section of your Cargo.toml:
[]
= { = "0.1.5" }
Example
First of all, the JSPaste API may return errors if something goes wrong, so using pattern matching is a good idea:
match some_doc
We recommend doing this with every request to ensure that all cases are covered.
use rspaste;