[package] name = "viperus" version = "0.1.10" authors = ["mauro cordioli "] edition = "2018" license = "MIT OR Apache-2.0" repository = "https://github.com/maurocordioli/viperus" description="Viperus is an (in)complete configuration solution for rust applications heavly inspired by the GO package Viper.It supports defaults reading from JSON, TOML, YAML, envfile,java properties, environment variables reading from Clap command line flags setting explicit values" exclude = ["tarpaulin-report.html"] keywords= ["config","yaml","toml","json","dotenv"] readme="README.md" [badges] # Travis CI: `repository` in format "/" is required. # `branch` is optional; default is `master` travis-ci = { repository = "maurocordioli/viperus", branch = "master" } # Coveralls: `repository` is required. `branch` is optional; default is `master` # `service` is optional; valid values are `github` (default) and `bitbucket`. coveralls = { repository = "maurocordioli/viperus", branch = "master", service = "github" } # Maintenance: `status` is required. Available options are: # - `actively-developed`: New features are being added and bugs are being fixed. # - `passively-maintained`: There are no plans for new features, but the maintainer intends to # respond to issues that get filed. # - `as-is`: The crate is feature complete, the maintainer does not intend to continue working on # it or providing support, but it works for the purposes it was designed for. # - `experimental`: The author wants to share it with the community but is not intending to meet # anyone's particular use case. # - `looking-for-maintainer`: The current maintainer would like to transfer the crate to someone # else. # - `deprecated`: The maintainer does not recommend using this crate (the description of the crate # can describe why, there could be a better solution available or there could be problems with # the crate that the author does not want to fix). # - `none`: Displays no badge on crates.io, since the maintainer has not chosen to specify # their intentions, potential crate users will need to investigate on their own. maintenance = { status = "experimental" } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] log="0.4" serde={ version="1.0.0", optional=true} serde_yaml={ version="0.8.11", optional=true} serde_json={ version="1.0.44", optional=true} clap={ version="2.33.0", optional=true} dotenv={ version="0.15.0", optional=true} toml= { version="0.5.5", optional=true} java-properties = { version="1.2.0", optional=true} lazy_static= { version="1.4.0", optional=true} notify = { version="4.0.0", optional=true} [dev-dependencies] env_logger = "0.7.1" tempfile = "3.1.0" criterion = "0.3.0" [[bench]] name = "benchmark_cache" harness = false [features] # no features by default default = [ "global","cache","watch","notify","fmt-yaml","fmt-json","fmt-env","fmt-toml","fmt-javaproperties","fmt-clap"] # static global config global = ["lazy_static"] # cache queries cache =[] # watch watch=["global","notify"] fmt-yaml=["serde","serde_yaml"] fmt-json=["serde","serde_json"] fmt-env=["dotenv"] fmt-javaproperties=["java-properties"] fmt-clap=["clap"] fmt-toml=[ "toml"]