- Created new crate `bevy_vanth` with basic plugin structure for Bevy integration. - Refactored `Id` generation in `vanth` to use `OsRng` and removed redundant `to_u128_pair`/`from_u128_pair` methods. - Moved networking functionality into new `net` module with `Node`, `Packet`, and `Message` types. - Updated `vanth_derive` to use `proc-macro-crate` for reliable crate path resolution. - Added `rand` dependency to replace custom ID generation logic. - Updated `Cargo.toml`/`Cargo.lock` with new dependencies: `bevy_app`, `nix`, `cfg_aliases`, `proc-macro-crate`. - Modified `README.md` with improved project description. - Added commented clippy check in `flake.nix`.
12 lines
254 B
Rust
12 lines
254 B
Rust
// use serde::{Deserialize, Serialize};
|
|
// use vanth::{hash, Vanth};
|
|
|
|
// #[derive(Clone, Debug, Deserialize, Serialize, Vanth)]
|
|
// struct Foo {
|
|
// value: i32,
|
|
// }
|
|
|
|
fn main() {
|
|
// let x = "hello";
|
|
// println!("Hash: {:?}", hash(&x).hex());
|
|
}
|