Skip to content

Commit 05a1adb

Browse files
authored
build(feature): apple-bindable-device rename to apple-network-device-binding (#426)
1 parent c347b35 commit 05a1adb

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ webpki-roots = ["dep:webpki-root-certs"]
6767
macos-system-configuration = ["dep:system-configuration"]
6868

6969
# Use the Apple platform's network device binding.
70-
apple-bindable-device = ["dep:libc"]
70+
apple-network-device-binding = ["dep:libc"]
7171

7272
# Optional enable http2 tracing
7373
http2-tracing = ["hyper2/http2-tracing"]
@@ -301,7 +301,7 @@ required-features = ["websocket", "http2-tracing", "futures-util/std"]
301301
[[example]]
302302
name = "client_chain"
303303
path = "examples/client_chain.rs"
304-
required-features = ["apple-bindable-device"]
304+
required-features = ["apple-network-device-binding"]
305305

306306
[[example]]
307307
name = "request_with_redirect"

src/client/http.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ impl ClientBuilder {
878878
target_os = "fuchsia",
879879
target_os = "linux",
880880
all(
881-
feature = "apple-bindable-device",
881+
feature = "apple-network-device-binding",
882882
any(
883883
target_os = "ios",
884884
target_os = "visionos",
@@ -888,7 +888,7 @@ impl ClientBuilder {
888888
)
889889
)
890890
))]
891-
#[cfg_attr(docsrs, feature = "apple-bindable-device")]
891+
#[cfg_attr(docsrs, feature = "apple-network-device-binding")]
892892
pub fn interface<T>(mut self, interface: T) -> ClientBuilder
893893
where
894894
T: Into<Cow<'static, str>>,
@@ -1814,7 +1814,7 @@ impl<'c> ClientMut<'c> {
18141814
target_os = "fuchsia",
18151815
target_os = "linux",
18161816
all(
1817-
feature = "apple-bindable-device",
1817+
feature = "apple-network-device-binding",
18181818
any(
18191819
target_os = "ios",
18201820
target_os = "visionos",

src/client/request.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ impl RequestBuilder {
585585
target_os = "fuchsia",
586586
target_os = "linux",
587587
all(
588-
feature = "apple-bindable-device",
588+
feature = "apple-network-device-binding",
589589
any(
590590
target_os = "ios",
591591
target_os = "visionos",
@@ -595,7 +595,7 @@ impl RequestBuilder {
595595
)
596596
)
597597
))]
598-
#[cfg_attr(docsrs, feature = "apple-bindable-device")]
598+
#[cfg_attr(docsrs, feature = "apple-network-device-binding")]
599599
pub fn interface<I>(mut self, interface: I) -> RequestBuilder
600600
where
601601
I: Into<std::borrow::Cow<'static, str>>,

src/tls/conn/boring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl HttpsConnector<HttpConnector> {
6161
target_os = "fuchsia",
6262
target_os = "linux",
6363
all(
64-
feature = "apple-bindable-device",
64+
feature = "apple-network-device-binding",
6565
any(
6666
target_os = "ios",
6767
target_os = "visionos",

src/util/client/connect/http.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ struct Config {
8181
target_os = "fuchsia",
8282
target_os = "linux",
8383
all(
84-
feature = "apple-bindable-device",
84+
feature = "apple-network-device-binding",
8585
any(
8686
target_os = "ios",
8787
target_os = "visionos",
@@ -251,7 +251,7 @@ impl<R> HttpConnector<R> {
251251
target_os = "fuchsia",
252252
target_os = "linux",
253253
all(
254-
feature = "apple-bindable-device",
254+
feature = "apple-network-device-binding",
255255
any(
256256
target_os = "ios",
257257
target_os = "visionos",
@@ -404,7 +404,7 @@ impl<R> HttpConnector<R> {
404404
target_os = "fuchsia",
405405
target_os = "linux",
406406
all(
407-
feature = "apple-bindable-device",
407+
feature = "apple-network-device-binding",
408408
any(
409409
target_os = "ios",
410410
target_os = "visionos",
@@ -835,7 +835,7 @@ fn connect(
835835
}
836836

837837
#[cfg(all(
838-
feature = "apple-bindable-device",
838+
feature = "apple-network-device-binding",
839839
any(
840840
target_os = "ios",
841841
target_os = "visionos",

src/util/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl Dst {
203203
target_os = "fuchsia",
204204
target_os = "linux",
205205
all(
206-
feature = "apple-bindable-device",
206+
feature = "apple-network-device-binding",
207207
any(
208208
target_os = "ios",
209209
target_os = "visionos",

src/util/client/network.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum NetworkScheme {
2222
target_os = "fuchsia",
2323
target_os = "linux",
2424
all(
25-
feature = "apple-bindable-device",
25+
feature = "apple-network-device-binding",
2626
any(
2727
target_os = "ios",
2828
target_os = "visionos",
@@ -85,7 +85,7 @@ impl NetworkScheme {
8585
target_os = "fuchsia",
8686
target_os = "linux",
8787
all(
88-
feature = "apple-bindable-device",
88+
feature = "apple-network-device-binding",
8989
any(
9090
target_os = "ios",
9191
target_os = "visionos",
@@ -112,7 +112,7 @@ impl fmt::Debug for NetworkScheme {
112112
target_os = "fuchsia",
113113
target_os = "linux",
114114
all(
115-
feature = "apple-bindable-device",
115+
feature = "apple-network-device-binding",
116116
any(
117117
target_os = "ios",
118118
target_os = "visionos",
@@ -156,7 +156,7 @@ impl fmt::Debug for NetworkScheme {
156156
target_os = "fuchsia",
157157
target_os = "linux",
158158
all(
159-
feature = "apple-bindable-device",
159+
feature = "apple-network-device-binding",
160160
any(
161161
target_os = "ios",
162162
target_os = "visionos",
@@ -204,7 +204,7 @@ pub struct NetworkSchemeBuilder {
204204
target_os = "fuchsia",
205205
target_os = "linux",
206206
all(
207-
feature = "apple-bindable-device",
207+
feature = "apple-network-device-binding",
208208
any(
209209
target_os = "ios",
210210
target_os = "visionos",
@@ -246,7 +246,7 @@ impl NetworkSchemeBuilder {
246246
target_os = "fuchsia",
247247
target_os = "linux",
248248
all(
249-
feature = "apple-bindable-device",
249+
feature = "apple-network-device-binding",
250250
any(
251251
target_os = "ios",
252252
target_os = "visionos",
@@ -278,7 +278,7 @@ impl NetworkSchemeBuilder {
278278
target_os = "fuchsia",
279279
target_os = "linux",
280280
all(
281-
feature = "apple-bindable-device",
281+
feature = "apple-network-device-binding",
282282
any(
283283
target_os = "ios",
284284
target_os = "visionos",
@@ -308,7 +308,7 @@ impl NetworkSchemeBuilder {
308308
target_os = "fuchsia",
309309
target_os = "linux",
310310
all(
311-
feature = "apple-bindable-device",
311+
feature = "apple-network-device-binding",
312312
any(
313313
target_os = "ios",
314314
target_os = "visionos",

0 commit comments

Comments
 (0)