netlink-bindings 0.2.1-rev1

Type-safe Rust bindings for Netlink generated from YAML specifications
Documentation
// Readme is run-tested as part of netlink-socket crate
#![allow(clippy::doc_lazy_continuation)]
#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]

mod primitives;

pub mod builtin;
pub mod consts;
pub mod traits;
pub mod utils;

// ```fish
// cat proto \
//     | while read i
//         echo
//         echo "#[cfg(any(doc, feature = \"$i\"))]"
//         if string match -qr ".*-.*" -- $i
//             echo "#[path = \"$i/mod.rs\"]"
//         end
//         echo "pub mod $(string replace - _ -- $i);"
//     end
// ```

#[cfg(any(doc, feature = "conntrack"))]
pub mod conntrack;

// #[cfg(any(doc, feature = "devlink"))]
// pub mod devlink;
//
// #[cfg(any(doc, feature = "dpll"))]
// pub mod dpll;
//
// #[cfg(any(doc, feature = "ethtool"))]
// pub mod ethtool;
//
// #[cfg(any(doc, feature = "fou"))]
// pub mod fou;
//
// #[cfg(any(doc, feature = "handshake"))]
// pub mod handshake;
//
// #[cfg(any(doc, feature = "lockd"))]
// pub mod lockd;
//
// #[cfg(any(doc, feature = "mptcp_pm"))]
// pub mod mptcp_pm;
//
// #[cfg(any(doc, feature = "net-shaper"))]
// #[path = "net-shaper/mod.rs"]
// pub mod net_shaper;
//
// #[cfg(any(doc, feature = "netdev"))]
// pub mod netdev;
//
// #[cfg(any(doc, feature = "nfsd"))]
// pub mod nfsd;
//
#[cfg(any(doc, feature = "nftables"))]
pub mod nftables;

// #[cfg(any(doc, feature = "nl80211"))]
// pub mod nl80211;

#[cfg(any(doc, feature = "nlctrl"))]
pub mod nlctrl;

// #[cfg(any(doc, feature = "ovpn"))]
// pub mod ovpn;
//
// #[cfg(any(doc, feature = "ovs_datapath"))]
// pub mod ovs_datapath;
//
// #[cfg(any(doc, feature = "ovs_flow"))]
// pub mod ovs_flow;
//
// #[cfg(any(doc, feature = "ovs_vport"))]
// pub mod ovs_vport;

#[cfg(any(doc, feature = "rt-addr"))]
#[path = "rt-addr/mod.rs"]
pub mod rt_addr;

#[cfg(any(doc, feature = "rt-link"))]
#[path = "rt-link/mod.rs"]
pub mod rt_link;

#[cfg(any(doc, feature = "rt-neigh"))]
#[path = "rt-neigh/mod.rs"]
pub mod rt_neigh;

#[cfg(any(doc, feature = "rt-route"))]
#[path = "rt-route/mod.rs"]
pub mod rt_route;

#[cfg(any(doc, feature = "rt-rule"))]
#[path = "rt-rule/mod.rs"]
pub mod rt_rule;

#[cfg(any(doc, feature = "tc"))]
pub mod tc;

// #[cfg(any(doc, feature = "tcp_metrics"))]
// pub mod tcp_metrics;
//
// #[cfg(any(doc, feature = "team"))]
// pub mod team;

#[cfg(any(doc, feature = "wireguard"))]
pub mod wireguard;