Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ env:
load_module ${{ github.workspace }}/nginx/objs/ngx_http_async_module.so;
load_module ${{ github.workspace }}/nginx/objs/ngx_http_awssigv4_module.so;
load_module ${{ github.workspace }}/nginx/objs/ngx_http_curl_module.so;
load_module ${{ github.workspace }}/nginx/objs/ngx_http_shared_dict_module.so;
load_module ${{ github.workspace }}/nginx/objs/ngx_http_upstream_custom_module.so;

OPENSSL_VERSION: '3.0.16'
Expand Down
12 changes: 10 additions & 2 deletions Cargo.lock

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

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,20 @@ repository.workspace = true
rust-version.workspace = true

[dependencies]
allocator-api2 = { version = "0.2.21", default-features = false }
lock_api = "0.4.13"
nginx-sys = { path = "nginx-sys", default-features=false, version = "0.5.0"}

[features]
default = ["vendored","std"]
# 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 = []
alloc = ["allocator-api2/alloc"]
# Enables the components using `std` crate.
std = ["alloc"]
std = [
"alloc",
"allocator-api2/std"
]
# Build our own copy of the NGINX by default.
# This could be disabled with `--no-default-features` to minimize the dependency
# tree when building against an existing copy of the NGINX with the
Expand Down
5 changes: 5 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ name = "async"
path = "async.rs"
crate-type = ["cdylib"]

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

[features]
default = ["export-modules", "ngx/vendored"]
# Generate `ngx_modules` table with module exports
Expand Down
8 changes: 8 additions & 0 deletions examples/config
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ if [ $HTTP = YES ]; then
ngx_rust_module
fi

if :; then
ngx_module_name=ngx_http_shared_dict_module
ngx_module_libs=
ngx_rust_target_name=shared_dict

ngx_rust_module
fi

if :; then
ngx_module_name=ngx_http_upstream_custom_module
ngx_module_libs=
Expand Down
Loading
Loading