#env-var #environment #configuration #enums #variables #applications #determine

bin+lib env-type

env-type is a library to define environment variables as types

5 releases (3 breaking)

0.4.1 Nov 7, 2024
0.4.0 Nov 6, 2024
0.3.0 Sep 28, 2024
0.2.0 Sep 28, 2024
0.1.0 Sep 27, 2024

#354 in Configuration

Download history 35/week @ 2024-09-21 379/week @ 2024-09-28 19/week @ 2024-10-05 10/week @ 2024-10-12 217/week @ 2024-11-02 37/week @ 2024-11-09

254 downloads per month

MIT license

24KB
346 lines

env-type

description

env-type crate is a library that provides an enum to represent the environment type. It is used to determine the environment type of the application. The environment type is used to determine the configuration of the application.

changelog

https://github.com/ynishi/env-type/releases


lib.rs:

EnvType crate

env-type crate is a library that provides an enum to represent the environment type. It is used to determine the environment type of the application. The environment type is used to determine the configuration of the application.

The crate also provides a trait to get the environment key from the environment variable. The environment key is used to get the environment type from the environment variable.

Features

env-type crate has the following features:

  • shuttle: This feature is used to get the environment type from the secret store.
  • all: This feature is used to enable all features.

Dependencies

~0.3–8.5MB
~73K SLoC