Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prebuilt nginx tree if $NGX_OBJS is specified #67

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

bavshin-f5
Copy link
Collaborator

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
Copy link

xeioex commented Mar 6, 2024

Tested it on Ubuntu 22.04 arm64.

@bavshin-f5 bavshin-f5 marked this pull request as draft April 16, 2024 08:15
@bavshin-f5 bavshin-f5 force-pushed the add-dynamic-module branch 2 times, most recently from c0ba98c to 4e6520f Compare April 17, 2024 18:23
@bavshin-f5
Copy link
Collaborator Author

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.

@bavshin-f5 bavshin-f5 marked this pull request as ready for review April 17, 2024 23:29
@ivanitskiy
Copy link
Collaborator

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

This should help integrating the modules into the NGINX build process
with `--add-dynamic-module`.
Copy link
Contributor

@dekobon dekobon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bavshin-f5 Thank you for the contribution. I only have small language and comment related suggestions. Please incorporate the feedback or disregard it based on your judgement. Otherwise, this looks good and I think we can merge it if it passes CI.

Cargo.toml Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
examples/Cargo.toml Outdated Show resolved Hide resolved
examples/async.rs Show resolved Hide resolved
@bavshin-f5 bavshin-f5 merged commit 8875fb8 into nginxinc:master Apr 25, 2024
5 of 6 checks passed
@bavshin-f5 bavshin-f5 deleted the add-dynamic-module branch April 25, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants