Skip to content

Commit 27c21ba

Browse files
committed
Only build cdylib when the FFI cfg is active
1 parent 4fcfe1f commit 27c21ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-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

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
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(hyper_unstable_ffi, allow(unknown_lints, deprecated_cfg_attr_crate_type_name))]
810

911
//! # hyper
1012
//!

0 commit comments

Comments
 (0)