995c0c35c1
The simple_filter macro must accept the two different levels of contexts. In the same way, it should also accept the log level, and therefore replace the now removed simple_filter_log_level macro.
25 lines
680 B
TOML
25 lines
680 B
TOML
[package]
|
|
name = "opensmtpd"
|
|
version = "0.2.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 = "MIT OR Apache-2.0"
|
|
include = ["src/**/*", "Cargo.toml", "LICENSE-*.txt"]
|
|
|
|
[dependencies]
|
|
log = {version = "0.4", features = ["std"]}
|
|
nom = "5.0"
|
|
opensmtpd_derive = { path = "../opensmtpd-derive", version = "0.2" }
|
|
|
|
[[example]]
|
|
name = "echo"
|
|
path = "examples/echo.rs"
|
|
|
|
[[example]]
|
|
name = "counter"
|
|
path = "examples/session_event_counter.rs"
|