sandstone-derive 0.1.1

Derive package for minecraft protocol traits
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 4.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 276 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • dec4234/sandstone
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dec4234

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.