summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Korber <p.korber@1aim.com>2019-02-28 16:45:45 +0100
committerPhilipp Korber <p.korber@1aim.com>2019-03-04 11:21:15 +0100
commit559c70f1e401f2fc6f095d905f960557018a0880 (patch)
treeb2558f72ca686cdc1767e1b1c3527cdcf0a4d58e
parentc3674c9814fec1b5841d20b1aea74a6828feabf6 (diff)
cargo(docs.rs): add flaggs so that it's build with handlebars feature
-rw-r--r--core/Cargo.toml3
-rw-r--r--headers/Cargo.toml3
-rw-r--r--mail/Cargo.toml2
-rw-r--r--template/Cargo.toml3
4 files changed, 11 insertions, 0 deletions
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"