Cargo Features

[dependencies]
syslog-rs = { version = "0.7.1", default-features = false, features = ["use_sync", "use_async", "use_sync_queue", "build_with_net", "udp_truncate_1024_bytes", "udp_truncate_1440_bytes", "tcp_truncate_1024_bytes", "tcp_truncate_2048_bytes", "tcp_truncate_4096_bytes", "tcp_truncate_max_bytes", "dgram_sysctl_failure_panic"] }
default = build_with_net, tcp_truncate_2048_bytes, udp_truncate_1440_bytes, use_async, use_sync, use_sync_queue

These default features are set whenever syslog-rs is added without default-features = false somewhere in the dependency tree.

use_sync default

Add support of sync syslog.

Affects syslog-rs::sync, sync::syslog_sync

use_async default

Add support of async syslog based on Tokio

Affects a_sync::syslog_async, syslog-rs::a_sync

use_sync_queue default

Add support of synchroniously asynchronious syslog based on queues

Affects sync::syslog_sync_queue

build_with_net default

Builds with TCP/UDP support

Affects syslog_trait::AsyncSyslogNet, syslog_trait::SyslogNet

udp_truncate_1024_bytes

RFC5424 ONLY

UDP
A features which modifiers the behaviour of UDP message length.

Forces truncation of the (whole) syslog message to 1024

Affects common::RFC5424_UDP_MAX_PKT_LEN

udp_truncate_1440_bytes default

Forces truncation of the (whole) syslog message to 1440

Affects common::RFC5424_UDP_MAX_PKT_LEN

tcp_truncate_1024_bytes

TCP
Forces truncation of the (whole) syslog message to 1024

Affects common::RFC5424_TCP_MAX_PKT_LEN

tcp_truncate_2048_bytes default

Forces truncation of the (whole) syslog message to 2048

Affects common::RFC5424_TCP_MAX_PKT_LEN

tcp_truncate_4096_bytes

Forces truncation of the (whole) syslog message to 4096

Affects common::RFC5424_TCP_MAX_PKT_LEN

tcp_truncate_max_bytes

Forces truncation of the (whole) syslog message to 8192 (max)

Affects common::RFC5424_TCP_MAX_PKT_LEN

dgram_sysctl_failure_panic

UNIX DATAGRAM

*BSD only!
By default, if crate fails to obtain a sysctl net.local.dgram.maxdgram, it returns a default value 2048. If this feature is enabled, then it will panic.