diff options
Diffstat (limited to 'examples/std/src/bin/net_udp.rs')
| -rw-r--r-- | examples/std/src/bin/net_udp.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/std/src/bin/net_udp.rs b/examples/std/src/bin/net_udp.rs index 3fc46156c..98dcc9925 100644 --- a/examples/std/src/bin/net_udp.rs +++ b/examples/std/src/bin/net_udp.rs | |||
| @@ -4,15 +4,12 @@ use clap::Parser; | |||
| 4 | use embassy_executor::{Executor, Spawner}; | 4 | use embassy_executor::{Executor, Spawner}; |
| 5 | use embassy_net::udp::{PacketMetadata, UdpSocket}; | 5 | use embassy_net::udp::{PacketMetadata, UdpSocket}; |
| 6 | use embassy_net::{Config, Ipv4Address, Ipv4Cidr, Stack, StackResources}; | 6 | use embassy_net::{Config, Ipv4Address, Ipv4Cidr, Stack, StackResources}; |
| 7 | use embassy_net_tuntap::TunTapDevice; | ||
| 7 | use heapless::Vec; | 8 | use heapless::Vec; |
| 8 | use log::*; | 9 | use log::*; |
| 9 | use rand_core::{OsRng, RngCore}; | 10 | use rand_core::{OsRng, RngCore}; |
| 10 | use static_cell::{make_static, StaticCell}; | 11 | use static_cell::{make_static, StaticCell}; |
| 11 | 12 | ||
| 12 | #[path = "../tuntap.rs"] | ||
| 13 | mod tuntap; | ||
| 14 | |||
| 15 | use crate::tuntap::TunTapDevice; | ||
| 16 | #[derive(Parser)] | 13 | #[derive(Parser)] |
| 17 | #[clap(version = "1.0")] | 14 | #[clap(version = "1.0")] |
| 18 | struct Opts { | 15 | struct Opts { |
