From 080cc42bb1da09059dbc35049a7ded0649961e0c Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 29 Aug 2022 20:52:56 +0200 Subject: feat: implement async functionality --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index b3aa027..e9ccb15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ all-features = true default = ["prevent-circular"] factory = ["syrette_macros/factory"] prevent-circular = ["syrette_macros/prevent-circular"] +async = ["async-trait"] [[example]] name = "factory" @@ -24,6 +25,10 @@ required-features = ["factory"] name = "with-3rd-party" required-features = ["factory"] +[[example]] +name = "async" +required-features = ["async"] + [dependencies] syrette_macros = { path = "./macros", version = "0.3.0" } linkme = "0.3.0" @@ -33,11 +38,13 @@ thiserror = "1.0.32" strum = "0.24.1" strum_macros = "0.24.3" paste = "1.0.8" +async-trait = { version = "0.1.57", optional = true } [dev_dependencies] mockall = "0.11.1" anyhow = "1.0.62" third-party-lib = { path = "./examples/with-3rd-party/third-party-lib" } +tokio = { version = "1.20.1", features = ["full"] } [workspace] members = [ -- cgit v1.2.3-18-g5258