Crates.io | sandstone-derive |
lib.rs | sandstone-derive |
version | 0.1.1 |
source | src |
created_at | 2024-06-02 15:33:30.172048 |
updated_at | 2024-06-24 01:59:52.143483 |
description | Derive package for minecraft protocol traits |
homepage | https://github.com/dec4234/sandstone |
repository | https://github.com/dec4234/sandstone |
max_upload_size | |
id | 1259284 |
size | 4,762 |
This is a support package for my other project, sandstone. It provides a procedural macro for deriving the necessary traits for the sandstone library.
This package enables derives for the McSerialize
and McDeserialize
traits from the sandstone library.
#[derive(McSerialize, McDeserialize)]
pub struct TestStruct {
pub field1: i32,
pub field2: String,
}
This will create mc_serialize and mc_deserialize implementations for the struct TestStruct
. This allows it to be sent over
the minecraft protocol.
This package is meant to be used in conjunction with the sandstone library, and is not intended to be used on its own.