#env #configuration #environment #generation #env-var #config-file

bin+lib reify

Write configuration files from templates using env variables

8 releases (4 breaking)

new 0.5.8 Feb 9, 2025
0.5.5 Dec 4, 2021
0.4.0 Nov 27, 2021
0.3.0 Nov 27, 2021
0.1.0 Nov 24, 2021

#225 in Configuration

Download history 8/week @ 2024-12-08 102/week @ 2025-02-09

102 downloads per month

MIT license

19KB
358 lines

Reify

Test Status Crate API

Quick start

Install using cargo:

cargo install reify

Write a template:

{
  "host": "{{hostname}}",
  "features": {
    "showBetaBadge": "{{showBetaBadge}}",
    "onlyBetaUsers": "{{onlyBetaUsers}}"
  }
}

Write a configuration file:

[[mounts]]
source = "templates/environment.json"
destination = "out/environment.json"
processor = "handlebars"

Invoke the command to generate filled files:

dev_hostname=dev.com reify -c reify.toml -e dev

Supported Templates

  • copy simply copy source file to destination path
  • handlebars rust implementation of handlebars templating language
  • tera tera templating engine

Dependencies

~13–23MB
~325K SLoC