x2y

Crates.iox2y
lib.rsx2y
version0.1.2
sourcesrc
created_at2023-09-13 10:24:45.196184
updated_at2023-10-25 10:44:36.869274
descriptionA data-serialization file transcoder written in Rust.
homepagehttps://github.com/edneedham/x2y
repositoryhttps://github.com/edneedham/x2y
max_upload_size
id971373
size51,617
Edward Needham (edneedham)

documentation

README

x2y

Transcode data-serialization files from x to y.

How it works

You have some file(s) in a particular data-serialization language and you want them in a different language.

Converting all files that match the input format in a directory

> x2y -x yaml -y json .

Any files that are in the current working directory that have a yaml format are converted to json format.

Converting a single file

> x2y -y yaml config.json

When a single file is specified, the option for the input format is no longer necessary as it is taken from the input file.

Supported file formats

  • Yaml

  • Json

  • Toml

Installation

From source if you have rust and cargo installed

> cargo install --locked x2y
Commit count: 54

cargo fmt