Skip to content

Commit 4ac0757

Browse files
authored
N20: rkyv (#552)
1 parent 26b2ce7 commit 4ac0757

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

content/posts/newsletter-020/index.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,39 @@ includes more options for HDR tonemapping.
410410
[rafx-distill]: https://github.com/amethyst/distill
411411
[rafx-ldtk]: https://ldtk.io
412412

413+
### [rkyv]
414+
415+
[rkyv] is a zero-copy deserialization framework for Rust. It's similar to FlatBuffers
416+
and Cap'n Proto and can be used for data storage and messaging.
417+
418+
A [benchmark][rust-serialization-benchmark] was put together to compare rkyv
419+
against other leading serialization solutions and gather feedback and use
420+
cases for development. A [summary and analysis][rkyv-is-faster-than] of the
421+
results is also available.
422+
423+
Version 0.5 is hot off the presses and rolls up features from the 0.4
424+
development cycle:
425+
426+
- Derive macros can now implement `PartialEq` and `PartialOrd` between
427+
archived and unarchived types
428+
- Custom type bounds for serialization and deserialization can be added
429+
with derive attributes
430+
- Helper types like [AlignedVec][rkyv-AlignedVec] and
431+
[Infallible][rkyv-Infallible] were introduced to improve ergonomics
432+
- `const_generics` are now enabled by default
433+
- Helper functions have been added to make getting root objects easier
434+
- Several bugfixes and performance improvements
435+
436+
A [feedback issue][rkyv-feedback] is still open for providing feedback on
437+
further development.
438+
439+
[rkyv]: https://github.com/djkoloski/rkyv
440+
[rust-serialization-benchmark]: https://github.com/djkoloski/rust_serialization_benchmark
441+
[rkyv-is-faster-than]: https://davidkoloski.me/blog/rkyv-is-faster-than
442+
[rkyv-AlignedVec]: https://docs.rs/rkyv/0.5.0/rkyv/struct.AlignedVec.html
443+
[rkyv-Infallible]: https://docs.rs/rkyv/0.5.0/rkyv/struct.Infallible.html
444+
[rkyv-feedback]: https://github.com/djkoloski/rkyv/issues/67
445+
413446
### [WhatTheFrame]
414447

415448
![whattheframe gui](whattheframe.png)

0 commit comments

Comments
 (0)