48 releases (24 breaking)

Uses new Rust 2021

0.31.1 Mar 29, 2022
0.30.4 Jan 15, 2022
0.30.1 Dec 28, 2021
0.29.0 Nov 21, 2021
0.17.0 Nov 22, 2020

#178 in Database implementations

Download history 31/week @ 2022-01-24 9/week @ 2022-01-31 7/week @ 2022-02-07 57/week @ 2022-02-14 55/week @ 2022-02-21 3/week @ 2022-02-28 5/week @ 2022-03-07 197/week @ 2022-03-14 146/week @ 2022-03-21 24/week @ 2022-03-28 25/week @ 2022-04-04 4/week @ 2022-04-11 6/week @ 2022-04-18 105/week @ 2022-04-25 363/week @ 2022-05-02 57/week @ 2022-05-09

531 downloads per month
Used in 2 crates

MIT license

310KB
6.5K SLoC

atomic-lib

crates.io Released API docs Discord chat MIT licensed github

Status: Beta. Breaking changes are expected until 1.0.

Rust library for using Atomic Data. Powers atomic-cli and atomic-server.

Check out the docs on docs.rs. For code examples, see examples/basic.rs and the many tests in the code.

Features

  • Two stores for Atomic Data:
    • In-memory store for getting / setting data (Store). Useful for clients.
    • On disk database (Db, uses Sled), which powers atomic-server.
  • JSON-AD Parser & Serializer
  • Serialization of atomic data to JSON-AD, plain JSON, RDF, Turtle, N-Triples and JSON-LD.
  • Path traversal
  • Convert Atomic Data to Rust native types
  • Resolve / parse mappings (bookmarks)
  • Validate Atomic Schema
  • Atomic Commits (transactions / delta's / changes / updates / versioning / history)
  • Plugin system (although not very mature)
  • Collections (pagination, sorting, filtering)
  • Querying (using triple pattern fragments)
  • Invites
  • Hierarchy
  • Saving Atomic Config files.

Optional features

Some features of this library are optional, to minimize bundle size and compile times.

db

The db features adds persistence, which means that you can store stuff on an HDD / SSD. It uses [Sled], a performant, embedded key-value store.

rdf

If you need RDF serialization options (Turtle / N-Triples), use this feature.

config

Filesystem management of Atomic Config files. Used in atomic-cli and atomic-server.

Dependencies

~9–12MB
~331K SLoC