aboutsummaryrefslogtreecommitdiff
path: root/examples/std/src/bin/net_udp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/std/src/bin/net_udp.rs')
-rw-r--r--examples/std/src/bin/net_udp.rs5
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;
4use embassy_executor::{Executor, Spawner}; 4use embassy_executor::{Executor, Spawner};
5use embassy_net::udp::{PacketMetadata, UdpSocket}; 5use embassy_net::udp::{PacketMetadata, UdpSocket};
6use embassy_net::{Config, Ipv4Address, Ipv4Cidr, Stack, StackResources}; 6use embassy_net::{Config, Ipv4Address, Ipv4Cidr, Stack, StackResources};
7use embassy_net_tuntap::TunTapDevice;
7use heapless::Vec; 8use heapless::Vec;
8use log::*; 9use log::*;
9use rand_core::{OsRng, RngCore}; 10use rand_core::{OsRng, RngCore};
10use static_cell::{make_static, StaticCell}; 11use static_cell::{make_static, StaticCell};
11 12
12#[path = "../tuntap.rs"]
13mod tuntap;
14
15use crate::tuntap::TunTapDevice;
16#[derive(Parser)] 13#[derive(Parser)]
17#[clap(version = "1.0")] 14#[clap(version = "1.0")]
18struct Opts { 15struct Opts {