Crates.io | entity-sled |
lib.rs | entity-sled |
version | 0.3.2 |
source | src |
created_at | 2021-04-23 04:45:18.539457 |
updated_at | 2021-04-24 06:38:58.779942 |
description | Sled database support for entity crate. |
homepage | https://github.com/chipsenkbeil/entity-rs |
repository | https://github.com/chipsenkbeil/entity-rs |
max_upload_size | |
id | 388436 |
size | 51,745 |
Provides a wrapper database around sled
to support and maintain entity
objects.
use entity_sled::SledDatabase;
// Make our temporary sled::db
let config = sled::Config::new().temporary(true);
let db = config.open().expect("Database created successfully");
// Define our wrapper (SledDatabase) around a tradition sled::db
let db = SledDatabase::new(db);
Requires that entity
have the serde-1
flag enabled as all objects must be
serializable & deserializable as well as support typetag
.