#manifest-file #byte #generic #append #flags #magic #checksum

no-std manifile

Generic purpose append only manifest file implementation

1 unstable release

0.0.0 May 24, 2024

#34 in #manifest-file

MIT/Apache

62KB
1.5K SLoC

Manifile

Generic purpose append only manifest file implementation.

github LoC Build codecov

docs.rs crates.io crates.io

license

English | 简体中文

Installation

[dependencies]
manifile = "0.0.0"

File Structure

+----------------------+--------------------------+-----------------------+
| magic text (4 bytes) | external magic (2 bytes) | magic (2 bytes)       |
+----------------------+--------------------------+-----------------------+-----------------------+-----------------------+
| op (1 bit)           | custom flag (7 bits)     | len (4 bytes)         | data (N bytes)        | checksum (4 bytes)    |
+----------------------+--------------------------+-----------------------+-----------------------+-----------------------+
| op (1 bit)           | custom flag (7 bits)     | len (4 bytes)         | data (N bytes)        | checksum (4 bytes)    |
+----------------------+--------------------------+-----------------------+-----------------------+-----------------------+
| ...                  | ...                      | ...                   | ...                   | ...                   |
+----------------------+--------------------------+-----------------------+-----------------------+-----------------------+

License

manifile is under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2024 Al Liu.

Dependencies

~150–670KB
~12K SLoC