entity-rs: Library & macros for entity data structures

Build Status Crates.io Docs.rs ![entity: rustc 1.46+] ![entity_macros: rustc 1.46+]

A simplistic framework based on TAO, Facebook's distributed database for Social Graph.

Requires Rust 1.46+. Without entity_macros, may compile and run for older versions of Rust.

Getting Started

Installation

Import Entity into your project by adding the following line to your Cargo.toml. entity_macros contains the macros needed to derive and/or transform your data to be compatible with supported databases and queries.

toml [dependencies] entity = "0.1"

For most use cases, you can import all features using the full flag, or for a more tailored experience can import individual features:

toml [dependencies] entity = { version = "0.1", features = ["global", "macros", "inmemory_db"] }

Example of defining data

```rust use entity::*;

[simple_ent]

struct User { name: String, age: u8,

#[ent(edge)]
friends: Vec<User>,

} ```

Feature Flags

Entity provides a few feature flags: