Crates.io | tradaf |
lib.rs | tradaf |
version | 0.1.1 |
source | src |
created_at | 2022-09-18 19:33:42.731335 |
updated_at | 2022-12-04 16:22:14.383347 |
description | Tranduit Data Format: Translate serialized data from one format to another. |
homepage | |
repository | https://zykino.net/gitea/zykino/Tradaf |
max_upload_size | |
id | 668768 |
size | 41,533 |
This tool "traduit" (french for translate) data formats. It was made in the hope to bring serde to the cli (serdi ^^). But that not exaclty what serde is about and I have no affiliation with them so I did not want to namesquat.
First install the rust toolchain and then execute the following command:
cargo install tradaf
Prettify (or minify) some data format for ease of reading (resp: compact and have less data to save/transfert)
tradaf json json --pretty < simple.json
Litterally transcode between data formats
tradaf ron yaml < examples/standard.ron
Transcode into JSON so we can use jq
, do some transformations and then transcode again into another format for viewing
tradaf RON json < examples/gameConfig.ron | jq .key_bindings | tradaf Json yaml
Serializer
and Deserializer
exposed does not work with serde-transcode.zvariant
looks to include async runtime by default