https://github.com/coreos/envsubst-rs
Simple Rust library for variables substitution
https://github.com/coreos/envsubst-rs
Last synced: 9 months ago
JSON representation
Simple Rust library for variables substitution
- Host: GitHub
- URL: https://github.com/coreos/envsubst-rs
- Owner: coreos
- License: other
- Created: 2019-05-13T21:51:50.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-01T19:26:51.000Z (over 1 year ago)
- Last Synced: 2025-03-30T20:11:53.285Z (about 1 year ago)
- Language: Rust
- Homepage: https://docs.rs/envsubst
- Size: 54.7 KB
- Stars: 24
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE-2.0
Awesome Lists containing this project
README
# envsubst
[](https://crates.io/crates/envsubst)
[](https://docs.rs/envsubst)
A simple Rust library for variables substitution.
This library provide helper functions for string manipulation,
taking values from a context **env**ironment map and **subst**ituting
all matching placeholders.
Its name and logic is similar to the [`envsubst`] GNU utility, but
this only supports braces-delimited variables (i.e. `${foo}`) and
takes replacement values from an explicit map of variables.
[`envsubst`]: https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html
## License
Licensed under either of
* MIT license -
* Apache License, Version 2.0 -
at your option.