Additionally, only depend on pnet_datalink to reduce compile times. Closes #2347
This commit is contained in:
		| @@ -68,7 +68,7 @@ tower-util = "0.3" | |||||||
| url = "1.0" | url = "1.0" | ||||||
|  |  | ||||||
| [target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies] | [target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies] | ||||||
| pnet = "0.25.0" | pnet_datalink = "0.27.2" | ||||||
|  |  | ||||||
| [features] | [features] | ||||||
| # Nothing by default | # Nothing by default | ||||||
|   | |||||||
| @@ -723,7 +723,7 @@ mod tests { | |||||||
|         let mut ip_v4 = None; |         let mut ip_v4 = None; | ||||||
|         let mut ip_v6 = None; |         let mut ip_v6 = None; | ||||||
|  |  | ||||||
|         let ips = pnet::datalink::interfaces() |         let ips = pnet_datalink::interfaces() | ||||||
|             .into_iter() |             .into_iter() | ||||||
|             .flat_map(|i| i.ips.into_iter().map(|n| n.ip())); |             .flat_map(|i| i.ips.into_iter().map(|n| n.ip())); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user