Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bavshin-f5 committed Feb 13, 2025
1 parent 24b41b1 commit af6ed22
Show file tree
Hide file tree
Showing 12 changed files with 1,329 additions and 2 deletions.
140 changes: 140 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,26 @@ repository.workspace = true
rust-version.workspace = true

[dependencies]
async-task = { version = "4.7.1", optional = true }
bytes = { version = "1.8.0", optional = true }
errno = "0.3.9"
flume = { version = "0.11.0", optional = true }
foreign-types = "0.5.0"
http-body = { version = "1.0.1", optional = true }
libc = "0.2.169"
nginx-sys = { path = "nginx-sys", default-features=false, version = "0.5.0"}
pin-project-lite = { version = "0.2.15", optional = true }

[features]
default = ["vendored","std"]
default = ["async", "vendored","std"]
async = [
"std",
"dep:async-task",
"dep:bytes",
"dep:flume",
"dep:http-body",
"dep:pin-project-lite",
]
# Enables the components using memory allocation.
# If no `std` flag, `alloc` crate is internally used instead. This flag is mainly for `no_std` build.
alloc = []
Expand Down
9 changes: 8 additions & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ build = "../build.rs"

[dependencies]
nginx-sys = { path = "../nginx-sys/", default-features = false }
ngx = { path = "../", default-features = false, features = ["std"] }
ngx = { path = "../", default-features = false, features = ["async", "std"] }

[dev-dependencies]
anyhow = "1.0.89"
aws-sign-v4 = "0.3.0"
chrono = "0.4.23"
http = "1.1.0"
libc = "0.2.140"
tokio = { version = "1.33.0", features = ["full"] }
hyper = { version = "1.5.0", features = ["http1", "client"] }

[[example]]
name = "curl"
Expand Down Expand Up @@ -49,6 +51,11 @@ name = "async"
path = "async.rs"
crate-type = ["cdylib"]

[[example]]
name = "async_ngx"
path = "async_ngx.rs"
crate-type = ["cdylib"]

[features]
default = ["export-modules", "ngx/vendored"]
# Generate `ngx_modules` table with module exports
Expand Down
Loading

0 comments on commit af6ed22

Please sign in to comment.