sandstone-derive

Crates.iosandstone-derive
lib.rssandstone-derive
version0.1.1
sourcesrc
created_at2024-06-02 15:33:30.172048
updated_at2024-06-24 01:59:52.143483
descriptionDerive package for minecraft protocol traits
homepagehttps://github.com/dec4234/sandstone
repositoryhttps://github.com/dec4234/sandstone
max_upload_size
id1259284
size4,762
dec (dec4234)

documentation

README

sandstone-derive

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.

Example

#[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.

Commit count: 76

cargo fmt