aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/lib.rs
diff options
context:
space:
mode:
authorBarnaby Walters <[email protected]>2023-12-22 23:20:43 +0100
committerBarnaby Walters <[email protected]>2023-12-22 23:20:43 +0100
commitd63590cb61e0fb9164996677be790c4213ef4a9e (patch)
treef98887f771284018f0c5c5db496e14b646e86205 /embassy-net/src/lib.rs
parent87c03037e320ce30c0cd34fe97e0365e1b11aa9a (diff)
[embassy-net] Auto-documented feature flags
Diffstat (limited to 'embassy-net/src/lib.rs')
-rw-r--r--embassy-net/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs
index d970d0332..2cef2232c 100644
--- a/embassy-net/src/lib.rs
+++ b/embassy-net/src/lib.rs
@@ -5,6 +5,9 @@
5#![warn(missing_docs)] 5#![warn(missing_docs)]
6#![doc = include_str!("../README.md")] 6#![doc = include_str!("../README.md")]
7 7
8//! ## Feature flags
9#![doc = document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#)]
10
8#[cfg(not(any(feature = "proto-ipv4", feature = "proto-ipv6")))] 11#[cfg(not(any(feature = "proto-ipv4", feature = "proto-ipv6")))]
9compile_error!("You must enable at least one of the following features: proto-ipv4, proto-ipv6"); 12compile_error!("You must enable at least one of the following features: proto-ipv4, proto-ipv6");
10 13