Cargo Features

libscmp has no features set by default.

[dependencies]
libscmp = { version = "0.2.0", features = ["libseccomp-2-4", "libseccomp-2-5"] }
libseccomp-2-4 libseccomp-2-5?

Enable libseccomp v2.4.0+ features (and assume we will always run against libseccomp>=2.4.0)

Affects libscmp::api_get, libscmp::api_set, sys::seccomp_api_get, sys::seccomp_api_set

libseccomp-2-5 = libseccomp-2-4

Enable libseccomp v2.5.0+ features (and assume we will always run against libseccomp>=2.5.0)

Affects sys::seccomp_data, sys::seccomp_notif, sys::seccomp_notif_resp, sys::seccomp_notify_alloc, sys::seccomp_notify_free, sys::seccomp_notify_receive, sys::seccomp_notify_respond, sys::seccomp_notify_id_valid, sys::seccomp_notify_fd, sys::SECCOMP_USER_NOTIF_FLAG_CONTINUE