feat(ffi): Initial C API for hyper

This commit is contained in:
Sean McArthur
2021-01-07 17:22:12 -08:00
parent 8861f9a786
commit 3ae1581a53
22 changed files with 2910 additions and 14 deletions

View File

@@ -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 = []