This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
enve/itconfig/Cargo.toml

89 lines
2 KiB
TOML
Raw Normal View History

2019-12-23 14:56:19 +03:00
[package]
name = "itconfig"
2021-06-22 10:22:29 +03:00
version = "1.1.1"
2019-12-23 14:56:19 +03:00
authors = ["Dmitriy Pleshevskiy <dmitriy@ideascup.me>"]
description = "Easy build a configs from environment variables and use it in globally."
categories = ["config", "web-programming"]
2020-01-16 22:05:35 +03:00
keywords = ["config", "env", "configuration", "environment", "macro"]
2019-12-23 14:56:19 +03:00
edition = "2018"
license = "MIT"
repository = "https://github.com/icetemple/itconfig-rs"
homepage = "https://github.com/icetemple/itconfig-rs"
documentation = "https://docs.rs/itconfig"
2021-02-24 00:27:40 +03:00
readme = "../README.md"
2019-12-23 14:56:19 +03:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2020-01-16 22:05:35 +03:00
[features]
2020-03-12 23:20:34 +03:00
default = ["primitives"]
2020-02-08 15:09:58 +03:00
2020-03-12 23:20:34 +03:00
macro = ["itconfig-macro"]
2020-01-16 22:05:35 +03:00
primitives = ["numbers", "bool"]
2020-01-19 22:21:34 +03:00
numbers = ["int", "uint", "float"]
int = ["i8", "i16", "i32", "i64", "i128", "isize"]
uint = ["u8", "u16", "u32", "u64", "u128", "usize"]
float = ["f32", "f64"]
2020-01-19 20:42:26 +03:00
i8 = []
i16 = []
i32 = []
i64 = []
i128 = []
isize = []
u8 = []
u16 = []
u32 = []
u64 = []
u128 = []
usize = []
f32 = []
f64 = []
bool = []
2021-04-16 01:12:35 +03:00
# deprecated since 1.1
json_array = ["serde_json"]
2022-07-21 20:10:31 +03:00
[dependencies]
serde_json = { version = "1", optional = true }
itconfig-macro = { version = "1.1", path = "../itconfig-macro", optional = true }
[dev-dependencies]
lazy_static = "1.4.0"
# required for examples
rocket = "0.5.0-rc.2"
hyper = { version = "0.14.4", features = ["full"] }
serde_json = "1.0.62"
tokio = { version = "1.2.0", features = ["macros", "rt-multi-thread"] }
bytes = "1.0.1"
futures-util = { version = "0.3.13", default-features = false }
pretty_env_logger = "0.4.0"
dotenv = "0.15.0"
diesel = { version = "1.4.8", features = ["postgres"] }
[badges]
2021-02-12 01:32:27 +03:00
maintenance = { status = "passively-maintained" }
2020-03-17 14:59:33 +03:00
# https://docs.rs/about
[package.metadata.docs.rs]
all-features = true
2022-07-21 20:10:31 +03:00
[[example]]
name = "diesel"
path = "../examples/diesel/main.rs"
required-features = ["macro"]
[[example]]
name = "hyper"
path = "../examples/hyper.rs"
required-features = ["macro"]
[[example]]
name = "rocket"
path = "../examples/rocket.rs"
required-features = ["macro"]