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

bin+lib env-type

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

3 releases (breaking)

0.3.0 Sep 28, 2024
0.2.0 Sep 28, 2024
0.1.0 Sep 27, 2024

#286 in Configuration

Download history 402/week @ 2024-09-27 28/week @ 2024-10-04 13/week @ 2024-10-11

443 downloads per month

MIT license

17KB
190 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