1#[cfg(not(any(
2    feature = "packet-buf-256",
3    feature = "packet-buf-512",
4    feature = "packet-buf-1k",
5    feature = "packet-buf-2k",
6    feature = "packet-buf-4k"
7)))]
8compile_error!(
9    "One of the features `packet-buf-256`, `packet-buf-512`, `packet-buf-1k`, `packet-buf-2k`, or `packet-buf-4k` must be enabled."
10);
11
12#[cfg(feature = "packet-buf-256")]
13pub const PACKET_BUF_LEN: usize = 256;
14#[cfg(feature = "packet-buf-512")]
15pub const PACKET_BUF_LEN: usize = 512;
16#[cfg(feature = "packet-buf-1k")]
17pub const PACKET_BUF_LEN: usize = 1024;
18#[cfg(feature = "packet-buf-2k")]
19pub const PACKET_BUF_LEN: usize = 2048;
20#[cfg(feature = "packet-buf-4k")]
21pub const PACKET_BUF_LEN: usize = 4096;