diff options
| author | loris <[email protected]> | 2023-08-05 21:05:10 +0200 |
|---|---|---|
| committer | loris <[email protected]> | 2023-08-05 21:05:10 +0200 |
| commit | 02fcb07aa96b2b7f63eb3ecd49206182be2cec65 (patch) | |
| tree | 458551fa8bf6956d91219155e3832b512d878eb8 /examples/std/src/bin/net_udp.rs | |
| parent | 66faba2df76bf76bcfcca30d159c5a39b64819e8 (diff) | |
| parent | a40daa923ba031b543ce402f8bd83c2ec41329d8 (diff) | |
Merge branch 'main' of github.com:lorislibralato/embassy
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 { |
