rkyv_typename

Crates.iorkyv_typename
lib.rsrkyv_typename
version0.7.44
sourcesrc
created_at2020-11-11 16:13:44.036343
updated_at2024-02-04 02:40:13.618783
descriptionCustomizable naming for types
homepage
repositoryhttps://github.com/rkyv/rkyv
max_upload_size
id311281
size19,234
David Koloski (djkoloski)

documentation

README

rkyv_typename adds type names for rkyv_dyn.

Resources

Learning Materials

  • The rkyv book covers the motivation, architecture, and major features of rkyv
  • The rkyv discord is a great place to get help with specific issues and meet other people using rkyv

Documentation

Benchmarks

  • The rust serialization benchmark is a shootout style benchmark comparing many rust serialization solutions. It includes special benchmarks for zero-copy serialization solutions like rkyv.

Sister Crates

  • bytecheck, which rkyv uses for validation
  • ptr_meta, which rkyv uses for pointer manipulation
  • rend, which rkyv uses for endian-agnostic features

Example

use rkyv_typename::TypeName;

#[derive(TypeName)]
#[typename = "CoolType"]
struct Example<T>(T);

fn main() {
    let mut type_name = String::new();
    Example::<i32>::build_type_name(|piece| type_name += piece);
    assert_eq!(type_name, "CoolType<i32>");
}
Commit count: 713

cargo fmt