#pod #data #binary-data #data-encoding #encode #decode #nue

nue-codegen

Stable POD and binary data encoding I/O macros

4 releases (2 breaking)

Uses old Rust 2015

0.3.0 Aug 9, 2015
0.2.0 Jul 30, 2015
0.1.1 Jul 22, 2015
0.1.0 Jul 22, 2015

#34 in #pod


Used in nue-macros

MIT license

24KB
516 lines

nue

travis-badge release-badge docs-badge license-badge

A collection of tools for working with binary data and POD structs in Rust.

  • pod is an approach at building a safe interface for transmuting POD structs to and from byte slices.
  • packed exposes unaligned packed data structurs in a safe and stable manner.
  • nue-macros provides helpers for pod, as well as a serialization-like library for dealing with binary streams of data.
  • nue-codegen allows the use of nue-macros without syntax extensions on stable Rust.
  • nue-io contains various supporting structs and traits for readers and writers.

lib.rs:

nue derive syntax extension.

Provides the #[derive(PodPacked, Pod, NueEncode, NueDecode)] extensions documented in nue-macros.

Stable

See the syntex documentation for instructions on how to set up your project to use these macros in stable Rust.

Nightly / Unstable

See the example in nue-macros for usage as a normal syntax extension.

Dependencies

~0.2–8MB
~59K SLoC