# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "realme" version = "0.2.1" authors = ["Jasper Zhang "] build = false exclude = [ ".github", "Makefile.toml", "CHANGELOG.md", ] autobins = false autoexamples = false autotests = false autobenches = false description = "A flexible and extensible configuration management library for Rust, designed to simplify the process of loading and managing configuration settings from various sources." homepage = "https://github.com/vainjoker/realme" readme = "README.md" license = "GPL-3.0" repository = "https://github.com/vainjoker/realme" [profile.dist] lto = "thin" inherits = "release" [profile.release] strip = true [lib] name = "realme" path = "src/lib.rs" [[example]] name = "access" path = "examples/access/main.rs" [[example]] name = "cmd_source" path = "examples/cmd_source/main.rs" [[example]] name = "custom_format" path = "examples/custom_format/main.rs" [[example]] name = "global" path = "examples/global/main.rs" [[example]] name = "hierarchical_profile" path = "examples/hierarchical_profile/main.rs" [[example]] name = "placeholder" path = "examples/placeholder/main.rs" [[example]] name = "priority" path = "examples/priority/main.rs" [[example]] name = "reload" path = "examples/reload/main.rs" [[example]] name = "simple" path = "examples/simple/main.rs" [[example]] name = "tracing" path = "examples/tracing/main.rs" [[example]] name = "watch" path = "examples/watch/main.rs" [[test]] name = "cmd_test" path = "tests/cmd_test.rs" [[test]] name = "ini_test" path = "tests/ini_test.rs" [[test]] name = "json5_test" path = "tests/json5_test.rs" [[test]] name = "json_test" path = "tests/json_test.rs" [[test]] name = "ron_test" path = "tests/ron_test.rs" [[test]] name = "toml_test" path = "tests/toml_test.rs" [[test]] name = "watch_test" path = "tests/watch_test.rs" [[test]] name = "yaml_test" path = "tests/yaml_test.rs" [[bench]] name = "simple_bench" path = "benches/simple_bench.rs" harness = false [dependencies.clap] version = "4.5.17" features = ["derive"] optional = true [dependencies.crossbeam] version = "0.8.4" optional = true [dependencies.itertools] version = "0.13.0" [dependencies.nom] version = "7.1.3" optional = true [dependencies.notify] version = "6.1.0" optional = true [dependencies.ron] version = "0.8.1" optional = true [dependencies.rust-ini] version = "0.21.0" optional = true [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1.0" optional = true [dependencies.serde_json5] version = "0.1.0" optional = true [dependencies.serde_yaml2] version = "0.1.2" optional = true [dependencies.tera] version = "1.19.0" optional = true default-features = false [dependencies.thiserror] version = "1.0" [dependencies.toml] version = "0.8.19" optional = true [dependencies.tracing] version = "0.1.40" optional = true [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.chrono] version = "0.4.24" features = ["serde"] [dev-dependencies.criterion] version = "0.5" features = ["html_reports"] [dev-dependencies.dotenvy] version = "0.15.7" [dev-dependencies.pretty_assertions] version = "1.4" [dev-dependencies.serde_json] version = "1.0" [dev-dependencies.tempfile] version = "3.13.0" [dev-dependencies.toml] version = "0.8.19" [dev-dependencies.tracing-subscriber] version = "0.3.15" [features] cmd = [ "dep:clap", "dep:nom", ] default = ["env"] env = [] full = [ "cmd", "env", "toml", "json", "yaml", "json5", "ron", "ini", "tracing", "watch", "placeholder", ] ini = ["dep:rust-ini"] json = ["dep:serde_json"] json5 = ["dep:serde_json5"] placeholder = ["dep:tera"] ron = ["dep:ron"] toml = ["dep:toml"] tracing = ["dep:tracing"] watch = [ "dep:notify", "dep:crossbeam", ] yaml = ["dep:serde_yaml2"] [lints.clippy] as_underscore = "warn" cast_possible_truncation = "allow" cast_possible_wrap = "allow" cast_precision_loss = "allow" cast_sign_loss = "allow" deref_by_slicing = "warn" else_if_without_else = "warn" empty_line_after_doc_comments = "warn" equatable_if_let = "warn" fn_to_numeric_cast_any = "warn" format_push_string = "warn" map_err_ignore = "warn" missing_const_for_fn = "warn" missing_errors_doc = "allow" missing_panics_doc = "allow" mixed_read_write_in_expression = "warn" module_inception = "allow" module_name_repetitions = "allow" must_use_candidate = "allow" needless_raw_strings = "warn" redundant_type_annotations = "warn" rest_pat_in_fully_bound_structs = "warn" string_lit_chars_any = "warn" string_to_string = "warn" unwrap_used = "warn" use_self = "warn" wildcard_imports = "allow" [lints.clippy.pedantic] level = "warn" priority = -1 [lints.rust] unsafe_code = "forbid"