serde-envfile
Built ontop the dotenvy
and envy
crates, serde-envfile
supports both the serialization and the deserialization of environment variables from or to files (from_file
, to_file
), strings (from_str
, to_string
), or the environment of the application (from_env
, to_env
).
Install ☁️
Extend your Cargo.toml
configuration file to include serde-envfile
as a dependency or install the package with the Cargo package manager.
Use 🔨
use ;
use ;
Introducing the Value
type, serde-envfile
, provides a more flexible approach to working with environment variables.
use ;