#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

#368 in Configuration

Download history 402/week @ 2024-09-27 28/week @ 2024-10-04 13/week @ 2024-10-11 173/week @ 2024-11-01 81/week @ 2024-11-08 9/week @ 2024-11-15 3/week @ 2024-11-22

266 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