cbd

Crates.iocbd
lib.rscbd
version0.1.1
created_at2025-01-25 00:33:04.140271+00
updated_at2025-01-25 01:36:42.731406+00
descriptionCommand-line CBOR decoder and encoder
homepagehttps://github.com/fotoetienne/cbd
repositoryhttps://github.com/fotoetienne/cbd
max_upload_size
id1530134
size28,679
Stephen Spalding (fotoetienne)

documentation

README

Concise Binary Decoder

Library for decoding and encoding Concise Binary (cbor) Data

Usage

Help:

$ cbd --help
Usage: cbd [OPTIONS]

Options:
  -e, --encode  
  -b, --base64  
  -h, --help    Print help

Decode CBOR from stdin and output JSON:

$ cat file.cbor | cbd
{"key": "value"}

Encode JSON from stdin and output CBOR:

$ cat file.json | cbd -e
?ckeyevalue%

Installation

$ cargo install cbd
Commit count: 11

cargo fmt