Cargo Features

[dependencies]
syslog-rs = { version = "0.9.2", default-features = false, features = ["use_sync", "use_async", "use_sync_queue", "build_with_net", "build_with_file", "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_file, 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 sync::syslog_sync, syslog-rs::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 a_sync::syslog_async_queue, syslog_trait::AsyncSyslogQueue, sync::syslog_sync_queue, syslog-rs::sync

build_with_net default

Builds with TCP/UDP support

build_with_file default

Build with file support (depends on use_sync_queue)

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.