#twine #randomness #blockchain #store

twine_http_store

Twine protocol rust library http store

4 releases

new 0.1.3 Apr 18, 2025
0.1.2 Mar 26, 2025
0.1.1 Mar 21, 2025
0.1.0 Mar 13, 2025

#24 in Magic Beans

Download history 144/week @ 2025-03-11 151/week @ 2025-03-18 150/week @ 2025-03-25 15/week @ 2025-04-01 9/week @ 2025-04-08

336 downloads per month
Used in 3 crates (2 directly)

MIT license

285KB
7K SLoC

twine_http_store

Crates.io Version docs.rs (with version)

This crate provides a standard way to save twine data to a remote data source through the twine HTTP api.

A note on authorization

When using an HTTP api, different services may have different restrictions for saving data (like the need for API keys). The underlying reqwest::Client can be customized to accommodate these situations.

Versions

There are currently two versions of the HTTP api. If you know which one you are dealing with, use the [v1] or [v2] modules accordingly. If you can't predict which you will work with you can use determine_version.

Streaming

Calls that involve streams will be batched into descrete requests for robustness.

Examples

See the examples for example uses.

Dependencies

~23–38MB
~708K SLoC