Skip to content

Commit be52e6b

Browse files
committed
fix(ffi): only build cdylib when the FFI cfg is active
1 parent 4fcfe1f commit be52e6b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ include = [
1919
#"build.rs",
2020
]
2121

22-
[lib]
23-
crate-type = ["lib", "staticlib", "cdylib"]
24-
2522
[dependencies]
2623
bytes = "1"
2724
futures-core = { version = "0.3", default-features = false }

src/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
#![cfg_attr(test, deny(warnings))]
66
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
77
#![cfg_attr(docsrs, feature(doc_cfg))]
8+
#![cfg_attr(hyper_unstable_ffi, crate_type = "cdylib")]
9+
#![cfg_attr(
10+
hyper_unstable_ffi,
11+
allow(unknown_lints, deprecated_cfg_attr_crate_type_name)
12+
)]
813

914
//! # hyper
1015
//!

0 commit comments

Comments
 (0)