4b1f99db7e
The main goal of events/reports is to update a context object, which will be used in filters to generate a response. It is now possible to use any object implementing both Clone and Default as a context object. It is also possible to define no context at all.
28 lines
678 B
TOML
28 lines
678 B
TOML
[package]
|
|
name = "opensmtpd"
|
|
version = "0.1.0"
|
|
authors = ["Rodolphe Bréard <rodolphe@what.tf>"]
|
|
edition = "2018"
|
|
description = "Interface for OpenSMTPD filters"
|
|
keywords = ["opensmtpd", "filter", "mail"]
|
|
documentation = "https://docs.rs/opensmtpd/"
|
|
repository = "https://github.com/breard-r/rust-opensmtpd"
|
|
readme = "README.md"
|
|
license = "CECILL-B"
|
|
include = ["src/**/*", "Cargo.toml", "Licence_*.txt"]
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
nom = "4.1"
|
|
opensmtpd_derive = { path = "../opensmtpd-derive", version="0.1" }
|
|
|
|
[[example]]
|
|
name = "dummy"
|
|
path = "examples/dummy.rs"
|
|
|
|
[[example]]
|
|
name = "counter"
|
|
path = "examples/session_event_counter.rs"
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.6"
|