- Added new modules `entity` and `store` to `vanth` crate for ECS foundations - Implemented generic `Id` type with serialization/deserialization support - Introduced `serde` and `serde_json` dependencies in workspace and vanth crate - Defined `Vanth` struct and `ContentHash` component in `lib.rs` - Added placeholder `Store` component in new module - Updated workspace configuration with `resolver = "3"` and dependency versions
9 lines
188 B
Rust
9 lines
188 B
Rust
use bevy_ecs::component::Component;
|
|
use serde::{Deserialize, Serialize};
|
|
use vanth::Vanth;
|
|
|
|
// TODO: derive `Vanth`
|
|
#[derive(Debug, Deserialize, Component, Serialize)]
|
|
struct Foo {
|
|
|
|
}
|