Hi, I want to use this crate to replace the envsubst command. I've added subst = "0.1.1" to Cargo.toml and added code to call subst::substitute. However, I can't cargo build.
error: there is no argument named `name`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subst-0.1.1/src/error.rs:62:35
|
62 | write!(f, "No such variable: ${name}")
| ^^^^^^
|
= help: if you intended to capture `name` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
error: could not compile `subst` due to previous error
Hi, I want to use this crate to replace the
envsubst
command. I've addedsubst = "0.1.1"
toCargo.toml
and added code to callsubst::substitute
. However, I can'tcargo build
.I'm new to Rust. What should I do? Thanks!