3 releases

0.3.2 Apr 24, 2021
0.3.1 Apr 24, 2021
0.3.0 Apr 23, 2021

#1492 in Encoding

Download history 1/week @ 2024-02-14 8/week @ 2024-02-21 4/week @ 2024-02-28 1/week @ 2024-03-13 27/week @ 2024-03-27 30/week @ 2024-04-03

57 downloads per month
Used in vimwiki-server

MIT/Apache

335KB
5.5K SLoC

entity-inmemory

Provides a custom inmemory database on top of entity that leverages a mixture of std::collections::HashMap to maintain the entities.

Example

use entity_inmemory::InmemoryDatabase;

let db = InmemoryDatabase::default();

Feature Flags

Entity provides a few feature flags:

  • serde-1 - Provides serde serialization module and associated functionality for the database. Ents are supported through the use of typetag. This will require that all ents implement Serialize and Deserialize.
    • Requires serde-1 be enabled on entity crate
    • Requires serde and typetag to be included in dependencies

Dependencies

~2MB
~45K SLoC