From 559c70f1e401f2fc6f095d905f960557018a0880 Mon Sep 17 00:00:00 2001 From: Philipp Korber Date: Thu, 28 Feb 2019 16:45:45 +0100 Subject: cargo(docs.rs): add flaggs so that it's build with handlebars feature --- core/Cargo.toml | 3 +++ headers/Cargo.toml | 3 +++ mail/Cargo.toml | 2 ++ template/Cargo.toml | 3 +++ 4 files changed, 11 insertions(+) diff --git a/core/Cargo.toml b/core/Cargo.toml index 4a4f519..55cbd55 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -16,6 +16,9 @@ default = ["default_impl_cpupool"] default_impl_cpupool = ["futures-cpupool"] test-utils = ["default", "lazy_static"] +[package.metadata.docs.rs] +features = [ "serde-impl", "default" ] + [dependencies] mail-internals = "0.2.0" mail-headers = "0.6.0" diff --git a/headers/Cargo.toml b/headers/Cargo.toml index 47d22f7..60d4a44 100644 --- a/headers/Cargo.toml +++ b/headers/Cargo.toml @@ -13,6 +13,9 @@ repository = "https://github.com/1aim/mail-headers" serde-impl = [ "serde", "vec1/serde" ] traceing = [ "mail-internals/traceing" ] +[package.metadata.docs.rs] +features = [ "serde-impl" ] + [dependencies] mail-internals = "0.2.2" failure = "0.1" diff --git a/mail/Cargo.toml b/mail/Cargo.toml index 7420eff..2c17e2a 100644 --- a/mail/Cargo.toml +++ b/mail/Cargo.toml @@ -31,6 +31,8 @@ name = "send_mail" path = "examples/send_mail/main.rs" required-features = ["smtp"] +[package.metadata.docs.rs] +features = [ "handlebars", "smtp", "serde-impl" ] [dependencies] mail-internals = "0.2.2" diff --git a/template/Cargo.toml b/template/Cargo.toml index c2eb0be..65d1e14 100644 --- a/template/Cargo.toml +++ b/template/Cargo.toml @@ -14,6 +14,9 @@ repository = "https://github.com/1aim/mail-template" default = [] handlebars-bindings = ["handlebars"] +[package.metadata.docs.rs] +features = [ "handlebars-bindings" ] + [dependencies] mail-core = { version="0.6.0", features=["serde-impl"] } mail-internals = "0.2.0" -- cgit v1.2.3