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