Cargo Features

[dependencies]
syd = { version = "3.30.0", default-features = false, features = ["log", "oci", "uring", "utils", "prof"] }
default = log, utils

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

log default = ringbuf

Enable the syslog(2) interface.
You need this to read access violations using dmesg(1).

Affects log::log_init, log::log_init_simple, log::log, syslog::current_loglevel

oci = clap, libcgroups, libcontainer, liboci-cli, oci-spec, tabwriter, tracing, tracing-subscriber

Build OCI runtime helper "syd-oci"

Required by the syd-oci binary

uring = io-uring

Enables io-uring based integration tests.
This is not used by the main Syd binary.

utils default = linefeed

Build helper utilities.
No reason to disable this unless you want fast build cycles.

Required by syd-asm, syd-cat, syd-dns, syd-emacs, syd-err, syd-fork, syd-ldd, syd-load, syd-log, syd-ls, syd-mdwe, syd-mem, syd-net, syd-open, syd-path, syd-poc, syd-read, syd-rnd, syd-run, syd-sh, syd-sha, syd-stat, syd-sys, syd-tck and syd-tty binaries

prof = gperftools, tcmalloc

Enable profiling.
Requires gperftools installed.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

harness = false

ringbuf log
io-uring uring?

Enables io-uring =0.6

=0.7 breaks 32-bit compilation: https://builds.sr.ht/~alip/job/1401070

linefeed utils

Enables linefeed

syd-sh deps.

gperftools prof?

Enables gperftools

profiling deps.

tcmalloc prof?
clap oci?

Enables clap

syd-oci deps.

libcgroups oci?
libcontainer oci?
liboci-cli oci?
oci-spec oci?
tabwriter oci?
tracing oci?
tracing-subscriber oci?