Skip to content

Commit f0cc202

Browse files
authored
Have cap-std re-export ipnet, which is part of its public API. (#302)
1 parent ba9136d commit f0cc202

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

cap-async-std/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ arf-strings = { version = "0.7.0", optional = true }
1919
async-std = { version = "1.10.0", features = ["attributes", "unstable"] }
2020
cap-primitives = { path = "../cap-primitives", version = "^0.25.0" }
2121
io-lifetimes = { version = "1.0.0", default-features = false, features = ["async-std"] }
22-
ipnet = "2.3.0"
2322
io-extras = { version = "0.17.0", features = ["use_async_std"] }
2423
camino = { version = "1.0.5", optional = true }
2524

cap-async-std/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ pub use cap_primitives::{ambient_authority, AmbientAuthority};
5050
// Re-export `async_std` to make it easy for users to depend on the same
5151
// version we do, because we use its types in our public API.
5252
pub use async_std;
53-
// And this is also part of our public API
53+
// And these are also part of our public API
5454
pub use io_lifetimes;
55+
pub use cap_primitives::ipnet;

cap-async-std/src/net/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::net::{TcpListener, TcpStream, ToSocketAddrs, UdpSocket};
22
use async_std::{io, net};
33
use cap_primitives::net::NO_SOCKET_ADDRS;
4-
use cap_primitives::AmbientAuthority;
4+
use cap_primitives::{ipnet, AmbientAuthority};
55

66
/// A pool of network addresses.
77
///

cap-primitives/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ pub mod time;
2828
#[doc(hidden)]
2929
pub use ambient_authority::ambient_authority_known_at_compile_time;
3030
pub use ambient_authority::{ambient_authority, AmbientAuthority};
31+
// This is part of our public API.
32+
pub use ipnet;

cap-std/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ rustdoc-args = ["--cfg=doc_cfg"]
1919
[dependencies]
2020
arf-strings = { version = "0.7.0", optional = true }
2121
cap-primitives = { path = "../cap-primitives", version = "^1.0.5" }
22-
ipnet = "2.3.0"
2322
io-extras = "0.17.0"
2423
io-lifetimes = { version = "1.0.0", default-features = false }
2524
camino = { version = "1.0.5", optional = true }

cap-std/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ pub mod time;
4848
#[doc(hidden)]
4949
pub use cap_primitives::ambient_authority_known_at_compile_time;
5050
pub use cap_primitives::{ambient_authority, AmbientAuthority};
51-
// And this is also part of our public API
51+
// And these are also part of our public API
52+
pub use cap_primitives::ipnet;
5253
pub use io_lifetimes;

cap-std/src/net/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::net::{SocketAddr, TcpListener, TcpStream, ToSocketAddrs, UdpSocket};
22
use cap_primitives::net::NO_SOCKET_ADDRS;
3-
use cap_primitives::AmbientAuthority;
3+
use cap_primitives::{ipnet, AmbientAuthority};
44
use std::time::Duration;
55
use std::{io, net};
66

0 commit comments

Comments
 (0)