nginxinc / ngx-rust

Rust binding for NGINX
Apache License 2.0
713 stars 59 forks source link

Use prebuilt nginx tree if $NGX_OBJS is specified #67

Closed bavshin-f5 closed 2 months ago

bavshin-f5 commented 4 months ago

A step towards addressing #42. NGX_OBJS=/path/to/nginx/objs cargo build will skip downloading sources and use headers from existing configured copy of the Nginx source tree.

I'll update README and provide config/config.make examples later.

xeioex commented 4 months ago

Tested it on Ubuntu 22.04 arm64.

bavshin-f5 commented 2 months ago

Almost done, auto/configure ... --add-module/--add-dynamic-module /path/to/ngx-rust/examples now produces either a working static build or a set of dynamic modules. The only remaining bit is a documentation.

ivanitskiy commented 2 months ago

Awesome work @bavshin-f5 ! Great to see this coming up finally! Thanks