#systemd #convert #serde #quadlet

bin+lib slate-rs

translate file formats + goodies

2 releases

0.1.1 Aug 11, 2025
0.1.0 Jul 16, 2025

#127 in #systemd

Download history

78 downloads per month

MIT license

49KB
1K SLoC

slate-rs Crates.ioLicense

Fork of https://github.com/znx3p0/vielsprachig, with extra functionality

Installation

cargo install slate-rs

# Convert yml -> toml
slate $HOME/.config/alacritty.yml -o $HOME/.config/alacritty.toml

Features

  • Convert between different input and output serialized data formats
  • Tera templating
  • Special modes for generating systemd timers and quadlet files (see examples)

Supported formats

The current input options and their inferred extensions are:

Input Output Extensions
Json Json .json
PrettyJson .hjson
Yaml Yaml .yaml, .yml
Cbor Cbor .cb, .cbor
Ron Ron .ron
PrettyRon .hron
Toml Toml .toml
Bson Bson .bson, .bs
Pickle .pickle, .pkl
Bincode .bc, .bincode
Postcard .pc, .postcard
Flexbuffers .fb, .flexbuffers
Systemd (use --to systemd)
Quadlet (use --to quadlet)

See also

Dependencies

~19–28MB
~541K SLoC