Skip to content

Commit

Permalink
fix(ffi): only build cdylib when the FFI cfg is active
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Feb 23, 2022
1 parent 4fcfe1f commit ae3ffde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ include = [
#"build.rs",
]

[lib]
crate-type = ["lib", "staticlib", "cdylib"]

[dependencies]
bytes = "1"
futures-core = { version = "0.3", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(all(test, feature = "nightly"), feature(test))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(hyper_unstable_ffi, crate_type = "cdylib")]
#![cfg_attr(hyper_unstable_ffi, allow(unknown_lints, deprecated_cfg_attr_crate_type_name))]

//! # hyper
//!
Expand Down

0 comments on commit ae3ffde

Please sign in to comment.