constuneval 0.1.0

Simple serializer to embed structs/tables as const Rust code using Debug trait
Documentation
  • Coverage
  • 66.67%
    8 out of 12 items documented3 out of 7 items with examples
  • Size
  • Source code size: 27.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.34 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ashutoshvarma/constuneval
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ashutoshvarma

constuneval

Try to serializes your data/tables to const rust code using Debug trait.

Why?

This crate was inspired by the this Github issue.

Usage

This crate can be used form your build script. It will try to serialize data/tables you provide to any file you specify. After that you can use include! to embed the generated code into your crate.

For full documentation see - https://docs.rs/constuneval

Credit

uneval and @burdges

License

MIT