Make arbitrary byte streams human readable!
Go to file
Joey Hines 1cf7f06230
Added additional printers
+ Data types can be printed in different formats
+ The formats respect endianness
+ Fixed tests
+ clippy+fmt
2022-04-09 13:33:55 -06:00
formats Added additional printers 2022-04-09 13:33:55 -06:00
src Added additional printers 2022-04-09 13:33:55 -06:00
.gitignore Initial Commit 2021-09-11 12:21:34 -06:00
Cargo.lock Added default formatters + error handling 2022-04-09 12:34:15 -06:00
Cargo.toml Added default formatters + error handling 2022-04-09 12:34:15 -06:00
LICENSE Added README.md LICENSE.md 2021-10-09 14:09:21 -06:00
README.md Added README.md LICENSE.md 2021-10-09 14:09:21 -06:00

README.md

Formaty

A simple configurable binary data parser. Data structures are described using TOML files.

Example

Checkout the formats described in formats

./formaty formats/ccsds.toml ccsds "[0xe0, 0xa1, 0xc0, 0x00, 0x05, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05]"

Output:

Version Number: 0
Packet Type: 0
Secondary Header Flag: 0
APID: 1295
Sequency Flags: 0
Packet Sequence Count: 48
Data Length: 5
Data: [1, 2, 3, 4, 5]

Help

Formaty 0.1.0
Arbitrary Binary Data Formatting

USAGE:
    formaty <config> <format> [data]...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <config>     Path to the format config
    <format>     Format to parse data as
    <data>...    Raw data

License

License