# 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" rust-version = "1.62.1" name = "syrette" version = "0.5.1" authors = ["HampusM "] exclude = [ "/.chglog", "/.circleci", "rustfmt.toml", ] description = "The convenient dependency injection framework" readme = "README.md" keywords = [ "di", "dependency-injection", "ioc", "inversion-of-control", ] license = "MIT OR Apache-2.0" repository = "https://github.com/HampusMat/Syrette" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "doc_cfg", "--html-in-header", "docs-style.html", ] [[example]] name = "factory" required-features = ["factory"] [[example]] name = "with-3rd-party" required-features = ["factory"] [[example]] name = "async" required-features = [ "async", "factory", ] [[example]] name = "async-factory" required-features = [ "async", "factory", ] [dependencies.ahash] version = "0.7.6" [dependencies.async-lock] version = "2.6.0" optional = true [dependencies.async-trait] version = "0.1.57" optional = true [dependencies.linkme] version = "0.3.0" [dependencies.once_cell] version = "1.4" [dependencies.paste] version = "1.0.8" [dependencies.strum] version = "0.24.1" [dependencies.strum_macros] version = "0.24.3" [dependencies.syrette_macros] version = "0.5.1" [dependencies.thiserror] version = "1.0.32" [dev-dependencies.anyhow] version = "1.0.62" [dev-dependencies.mockall] version = "0.11.4" [dev-dependencies.tokio] version = "1.20.1" features = [ "macros", "rt-multi-thread", "time", ] [features] async = [ "dep:async-trait", "dep:async-lock", "syrette_macros/async", ] default = ["prevent-circular"] factory = ["syrette_macros/factory"] prevent-circular = ["syrette_macros/prevent-circular"]