#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)

new 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

#361 in Configuration

Download history 398/week @ 2024-09-26 32/week @ 2024-10-03 12/week @ 2024-10-10 1/week @ 2024-10-17 69/week @ 2024-10-31

88 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