feat(ffi): Initial C API for hyper
This commit is contained in:
@@ -19,6 +19,9 @@ include = [
|
||||
#"build.rs",
|
||||
]
|
||||
|
||||
[lib]
|
||||
crate-type = ["lib", "staticlib", "cdylib"]
|
||||
|
||||
[dependencies]
|
||||
bytes = "1"
|
||||
futures-core = { version = "0.3", default-features = false }
|
||||
@@ -38,6 +41,7 @@ want = "0.3"
|
||||
|
||||
# Optional
|
||||
|
||||
libc = { version = "0.2", optional = true }
|
||||
socket2 = { version = "0.3.16", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -94,7 +98,6 @@ server = []
|
||||
stream = []
|
||||
|
||||
# Tokio support
|
||||
|
||||
runtime = [
|
||||
"tcp",
|
||||
"tokio/rt",
|
||||
@@ -106,6 +109,9 @@ tcp = [
|
||||
"tokio/time",
|
||||
]
|
||||
|
||||
# C-API support (currently unstable (no semver))
|
||||
ffi = ["libc"]
|
||||
|
||||
# internal features used in CI
|
||||
nightly = []
|
||||
__internal_happy_eyeballs_tests = []
|
||||
|
||||
Reference in New Issue
Block a user