Crates.io | entity-inmemory |
lib.rs | entity-inmemory |
version | 0.3.2 |
source | src |
created_at | 2021-04-23 04:44:54.430709 |
updated_at | 2021-04-24 06:38:38.169524 |
description | Custom inmemory database for entity crate. |
homepage | https://github.com/chipsenkbeil/entity-rs |
repository | https://github.com/chipsenkbeil/entity-rs |
max_upload_size | |
id | 388435 |
size | 40,103 |
Provides a custom inmemory database on top of entity
that leverages a mixture
of std::collections::HashMap
to maintain the entities.
use entity_inmemory::InmemoryDatabase;
let db = InmemoryDatabase::default();
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.
serde-1
be enabled on entity
crateserde
and typetag
to be included in dependencies