diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4d11eb..80b7550 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,9 @@ jobs: # Test default features. - default + # Test minimal featureset + - std proto-ipv4 + # Test features chosen to be as orthogonal as possible. - std ethernet phy-raw_socket proto-ipv6 socket-udp - std ethernet phy-tap_interface proto-ipv6 socket-udp diff --git a/Cargo.toml b/Cargo.toml index d41843e..4ea3a94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,10 +39,11 @@ ethernet = [] "proto-igmp" = ["proto-ipv4"] "proto-dhcpv4" = ["proto-ipv4", "socket-raw"] "proto-ipv6" = [] -"socket-raw" = [] -"socket-udp" = [] -"socket-tcp" = [] -"socket-icmp" = [] +"socket" = [] +"socket-raw" = ["socket"] +"socket-udp" = ["socket"] +"socket-tcp" = ["socket"] +"socket-icmp" = ["socket"] "async" = [] default = [ "std", "log", # needed for `cargo test --no-default-features --features default` :/ diff --git a/src/lib.rs b/src/lib.rs index 7198b57..cc0e6c2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -106,6 +106,7 @@ pub mod storage; pub mod phy; pub mod wire; pub mod iface; +#[cfg(feature = "socket")] pub mod socket; pub mod time; #[cfg(feature = "proto-dhcpv4")]