Skip to content

Commit

Permalink
trying something else
Browse files Browse the repository at this point in the history
  • Loading branch information
klebs6 committed Jun 21, 2024
1 parent 752b2a8 commit c522c41
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
23 changes: 12 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,23 @@ categories = ["api-bindings", "asynchronous"]
keywords = ["libevent", "bindings", "async", "io"]

[workspace]
members = ['examples/hello']
members = ["examples/hello"]

[features]
default = [ "pkgconfig", "openssl", "threading", "buildtime_bindgen" ]
static = [ "libevent-sys/static" ]
pkgconfig = [ "libevent-sys/pkgconfig" ]
bundled = [ "static", "libevent-sys/bundled" ]
buildtime_bindgen = [ "libevent-sys/buildtime_bindgen" ]
openssl = [ "libevent-sys/openssl" ]
openssl_bundled = [ "libevent-sys/openssl_bundled", "threading" ]
threading = [ "libevent-sys/threading" ]
logging = [ "libevent-sys/logging" ]
default = ["pkgconfig", "openssl", "threading", "buildtime_bindgen"]
static = ["libevent-sys/static"]
pkgconfig = ["libevent-sys/pkgconfig"]
bundled = ["static", "libevent-sys/bundled"]
buildtime_bindgen = ["libevent-sys/buildtime_bindgen"]
openssl = ["libevent-sys/openssl"]
openssl_bundled = ["libevent-sys/openssl_bundled", "threading"]
threading = ["libevent-sys/threading"]
logging = ["libevent-sys/logging"]

# features for development
verbose_build = [ "libevent-sys/verbose_build" ]
verbose_build = ["libevent-sys/verbose_build"]

[dependencies]
bitflags = "1.2"
libevent-sys = { version = "0.2", path = "libevent-sys", default-features = false }

13 changes: 7 additions & 6 deletions libevent-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ links = "event"
build = "build.rs"

[features]
default = [ "pkgconfig", "openssl", "threading", "buildtime_bindgen" ]
default = ["pkgconfig", "openssl", "threading", "buildtime_bindgen"]
static = []
pkgconfig = [ "pkg-config" ]
bundled = [ "static", "cmake" ]
buildtime_bindgen = [ "bindgen" ]
openssl = [ "openssl-sys" ]
openssl_bundled = [ "openssl-sys/vendored", "threading" ]
pkgconfig = ["pkg-config"]
bundled = ["static", "cmake"]
buildtime_bindgen = ["bindgen"]
openssl = ["openssl-sys"]
openssl_bundled = ["openssl-sys/vendored", "threading"]
threading = []
logging = []

Expand All @@ -37,3 +37,4 @@ optional = true
bindgen = { version = "0.64", optional = true, default-features = false, features = ["runtime"] }
cmake = { version = "0.1", optional = true }
pkg-config = { version = "0.3", optional = true }

0 comments on commit c522c41

Please sign in to comment.