Cargo Features
[dependencies]
email-clients = { version = "0.2.0", default-features = false, features = ["terminal", "memory", "smtp", "mailersend", "document-features"] }
- default = terminal
-
The
terminal
feature is set by default wheneveremail-clients
is added without
somewhere in the dependency tree.default-features = false - terminal default
-
! Enable various features for email clients.
Print the email to terminal. Helpful for development purpose. Enabled by default.Affects
clients::terminal
,clients::EmailClient
,clients::get_email_client
… - memory
-
Send the email to memory. You can view tests to see how to use it in tests.
Affects
clients::memory
,clients::EmailClient
,clients::get_email_client
… - smtp
-
Enable smtp client based on lettre.
Enables lettre and secrecy ^0.8.0
Affects
clients::smtp
,clients::EmailClient
,clients::get_email_client
… - mailersend
-
Send email using mailersend
Enables reqwest and secrecy ^0.8.0
Affects
clients::mailersend
,clients::EmailClient
,clients::get_email_client
…
Features from optional dependencies
- document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml
Affects
clients::EmailClient
,clients::get_email_client
…