Cargo Features

[dependencies]
rebpf = { version = "0.1.5", default-features = false, features = ["bpf", "userspace"] }
default = bpf, userspace

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

bpf default

Affects rebpf::bpf, rebpf::helpers

userspace default

Affects rebpf::interface, rebpf::map_layout, rebpf::userspace, libbpf::BpfProgType, libbpf::BpfObject, libbpf::BpfObjectIterator, libbpf::BpfFd, libbpf::BpfInfo, libbpf::BpfProgFd, libbpf::BpfFdImpl, libbpf::BpfProgram, libbpf::BpfProgInfo, libbpf::BpfMap, libbpf::UnsafeBpfMapFd, libbpf::BpfMapFd, libbpf::BpfMapInfo, libbpf::bpf_obj_get_info_by_fd, libbpf::bpf_prog_load, libbpf::bpf_map_lookup_elem