#framework #json #cloud #key-value #async-api

nightly anystore

Polymorphic, type-safe, composable async API for arbitrary stores

5 releases

0.2.1 Sep 29, 2023
0.1.3 Jan 14, 2023
0.1.2 Jan 14, 2023
0.1.1 Jan 13, 2023
0.1.0 Jan 13, 2023

#2588 in Database interfaces

MIT/Apache

100KB
2K SLoC

anystore

anystore is a polymorphic, type-safe, composable async framework for specifying API for arbitrary stores (including databases and configuration systems). It supports addressing arbitrary type-safe hierarchies of objects.

It is best used for prototyping and configuration. It is especially good for situations when a storage system is needed, but it's not very important, and you want to be able to change the storage provider quickly, in case the requirements change.

It is good for when you don't want to learn yet another API. (It also might be good if you don't want to invent yet another API, as it gives enough structure, primitives and utils to help you build a decent client.)

It is not indended to be used when you need high performance or reliability.

This crate is nightly-only. It heavily depends on async_fn_in_trait feature, which is not stable yet.

Testing

To test the cloud integrations:

% cargo test --all-features -- --include-ignored

You'll have to populate your .env file.

Dependencies

~5–18MB
~249K SLoC