#definition #object #packed #write #packing #memory #packtool

macro packtool-macro

In memory packing made easy: procedural macro definitions

3 releases (breaking)

0.3.0 Jul 19, 2021
0.2.0 Jul 15, 2021
0.1.0 Jun 8, 2021

#30 in #packed

Download history 76/week @ 2024-04-01 10/week @ 2024-04-08 7/week @ 2024-04-15 14/week @ 2024-04-22 3/week @ 2024-04-29 5/week @ 2024-05-06 8/week @ 2024-05-13 9/week @ 2024-05-20 5/week @ 2024-05-27 7/week @ 2024-06-03 17/week @ 2024-06-10 8/week @ 2024-06-17 19/week @ 2024-06-24 48/week @ 2024-07-01 72/week @ 2024-07-08 15/week @ 2024-07-15

155 downloads per month
Used in 4 crates (via packtool)

MIT/Apache

49KB
1.5K SLoC

packtool

Continuous Health Check

Rust's tooling to write packed objects. Objects that can be packed into specific serialization format of fixed size.

Support rust from 1.51.0 onward.

Example

bitcoin block header

a simple example of the bitcoin block header format parsing is available in the examples directory.

$ cargo run --example bitcoin

tar

a very simplified implementation of the TAR archive file format is implemented in the examples directory.

$ tar -cf example.tar README.md Cargo.toml
$ cargo run --example tar
compressed file: README.md (967 bytes)
compressed file: Cargo.toml (885 bytes)

License

This project is licensed under the [MIT] OR Apache-2.0 dual license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in keynesis by you, shall be licensed as MIT OR Apache-2.0 dual license, without any additional terms or conditions.

Dependencies

~1.5MB
~35K SLoC