# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.66.1" name = "vsmtp" version = "2.2.1" authors = ["Team viridIT "] build = "build.rs" description = "Next-gen Mail Transfer Agent (MTA) written in Rust." homepage = "https://github.com/viridIT/vSMTP" documentation = "https://docs.rs/crate/vsmtp/" readme = "README.md" keywords = [ "vsmtp", "mta", "smtp", "server", "mail", ] categories = ["email"] license = "GPL-3.0-only" repository = "https://github.com/viridIT/vSMTP" [package.metadata.release] tag = true pre-release-commit-message = "chore: Release {{crate_name}} version {{version}}" [[package.metadata.release.pre-release-replacements]] file = "../../../CHANGELOG.md" search = "Unreleased" replace = "{{version}}" prerelease = true [[package.metadata.release.pre-release-replacements]] file = "../../../CHANGELOG.md" search = "ReleaseDate" replace = "{{date}}" prerelease = true [[package.metadata.release.pre-release-replacements]] file = "../../../CHANGELOG.md" search = "" replace = """ ## [Unreleased] - ReleaseDate""" exactly = 1 prerelease = true [[package.metadata.release.pre-release-replacements]] file = "Cargo.toml" prerelease = true search = ''' server\] version = .*''' replace = """ server] version = \"={{version}}\"""" [[package.metadata.release.pre-release-replacements]] file = "Cargo.toml" prerelease = true search = ''' common\] version = .*''' replace = """ common] version = \"={{version}}\"""" [[package.metadata.release.pre-release-replacements]] file = "Cargo.toml" prerelease = true search = ''' config\] version = .*''' replace = """ config] version = \"={{version}}\"""" [[package.metadata.release.pre-release-replacements]] file = "Cargo.toml" prerelease = true search = ''' rule-engine\] version = .*''' replace = """ rule-engine] version = \"={{version}}\"""" [[package.metadata.release.pre-release-replacements]] file = "Cargo.toml" prerelease = true search = '/usr/lib/vsmtp/[a-z0-9\.-]+' replace = "/usr/lib/vsmtp/{{version}}" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [package.metadata.deb] name = "vsmtp" maintainer = "Pag " copyright = "Copyright (c) 2022, viridIT SAS. All rights reserved." extended-description = "High performance MTA written in RUST." changelog = "../../../tools/install/deb/changelog" depends = "$auto, adduser" section = "mail" priority = "optional" assets = [ [ "target/release/vsmtp", "/usr/sbin/", "755", ], [ "target/release/vqueue", "/usr/sbin/", "755", ], [ "target/release/*.so", "/usr/lib/vsmtp/2.2.1/", "755", ], [ "../../../tools/install/deb/lintian-overrides", "/usr/share/lintian/overrides/vsmtp", "644", ], [ "../../../tools/install/man/*", "/usr/share/man/man1", "644", ], [ "../../../README.md", "/usr/share/doc/vsmtp/README", "644", ], ] maintainer-scripts = "../../../tools/install/deb/" features = ["journald"] [package.metadata.deb.systemd-units] unit-name = "vsmtp" enable = true start = false [package.metadata.generate-rpm] name = "vsmtp" post_install_script = "../../../tools/install/deb/postinst" post_uninstall_script = "../../../tools/install/deb/postrm" [[package.metadata.generate-rpm.assets]] source = "target/release/vsmtp" dest = "/usr/sbin/vsmtp" mode = "755" [[package.metadata.generate-rpm.assets]] source = "target/release/vqueue" dest = "/usr/sbin/vqueue" mode = "755" [[package.metadata.generate-rpm.assets]] source = "target/release/*.so" dest = "/usr/lib/vsmtp/2.2.1/" mode = "755" [[package.metadata.generate-rpm.assets]] source = "../../../tools/install/man/*" dest = "/usr/share/man/man1/" mode = "644" doc = true [[package.metadata.generate-rpm.assets]] source = "../../../README.md" dest = "/usr/share/doc/vsmtp/" mode = "644" doc = true [dependencies.anyhow] version = "1.0.69" features = ["std"] default-features = false [dependencies.cfg-if] version = "1.0.0" [dependencies.clap] version = "4.2.0" features = [ "std", "derive", "cargo", "usage", "help", "color", ] default-features = false [dependencies.console-subscriber] version = "0.1.7" optional = true default-features = false [dependencies.diff] version = "0.1.13" default-features = false [dependencies.document-features] version = "0.2.7" optional = true [dependencies.dotenv] version = "0.15.0" default-features = false [dependencies.either] version = "1.8.1" features = ["use_std"] default-features = false [dependencies.humantime] version = "2.1.0" default-features = false [dependencies.opentelemetry-jaeger] version = "0.17.0" features = ["rt-tokio"] optional = true default-features = false [dependencies.serde_json] version = "1.0.95" features = ["std"] default-features = false [dependencies.tracing] version = "0.1.37" features = [ "std", "attributes", "release_max_level_info", ] default-features = false [dependencies.tracing-appender] version = "0.2.2" default-features = false [dependencies.tracing-journald] version = "0.3.0" optional = true default-features = false [dependencies.tracing-opentelemetry] version = "0.18.0" features = [ "tracing-log", "metrics", ] optional = true default-features = false [dependencies.tracing-rfc-5424] version = "0.1.0" optional = true default-features = false [dependencies.tracing-subscriber] version = "0.3.16" features = [ "smallvec", "fmt", "ansi", "std", ] default-features = false [dependencies.vsmtp-common] version = "=2.2.1" [dependencies.vsmtp-config] version = "=2.2.1" [dependencies.vsmtp-rule-engine] version = "=2.2.1" [dependencies.vsmtp-server] version = "=2.2.1" [build-dependencies.rhai-autodocs] version = "0.1.6" [build-dependencies.vsmtp-config] version = "2.0.1-rc.1" [build-dependencies.vsmtp-rule-engine] version = "2.0.1-rc.1" [features] default = [] document-features = ["dep:document-features"] journald = [ "dep:tracing-journald", "vsmtp-config/journald", ] syslog = [ "dep:tracing-rfc-5424", "vsmtp-config/syslog", ] telemetry = [ "dep:tracing-opentelemetry", "dep:opentelemetry-jaeger", ] tokio_console = ["dep:console-subscriber"]