We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std
1 parent 2dfe1ab commit 8a045afCopy full SHA for 8a045af
src/unix/bsd/apple/mod.rs
@@ -5873,7 +5873,10 @@ cfg_if! {
5873
}
5874
5875
5876
-#[link(name = "iconv")]
+// These require a dependency on `libiconv`, and including this when built as
5877
+// part of `std` means every Rust program gets it. Ideally we would have a link
5878
+// modifier to only include these if they are used, but we do not.
5879
+#[cfg_attr(not(feature = "rustc-dep-of-std"), link(name = "iconv"))]
5880
extern "C" {
5881
pub fn iconv_open(tocode: *const ::c_char, fromcode: *const ::c_char) -> iconv_t;
5882
pub fn iconv(
0 commit comments