Skip to content

chore: reduce boilerplate code for ngx_module_t declarations#117

Open
xeioex wants to merge 1 commit intonginx:mainfrom
xeioex:constants
Open

chore: reduce boilerplate code for ngx_module_t declarations#117
xeioex wants to merge 1 commit intonginx:mainfrom
xeioex:constants

Conversation

@xeioex
Copy link
Copy Markdown
Contributor

@xeioex xeioex commented Jan 9, 2025

This partially addresses #107.

Copy link
Copy Markdown
Member

@bavshin-f5 bavshin-f5 left a comment

Choose a reason for hiding this comment

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

Still not convinced the commands initialization change is right. It assumes constness where we shouldn't, and could be less readable with a larger set of commands.

Comment thread src/http/prelude.rs Outdated
Comment thread src/core/prelude.rs Outdated
Comment thread src/core/prelude.rs Outdated
Comment thread examples/async.rs Outdated
Copy link
Copy Markdown
Member

@bavshin-f5 bavshin-f5 left a comment

Choose a reason for hiding this comment

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

ngx_module_t::default and CONF_OFFSET changes look good. I'm ready to cherry-pick these to master if you split the CONF_OFFSET patch and reorder both before the prelude one,

I have reservations about the prelude patch though. Maybe we need more high-level wrappers before introducing this.

Note: refactor!: prefix to the commit summaries seems more fitting. See https://www.conventionalcommits.org/en/v1.0.0/#summary and https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines

Comment thread nginx-sys/src/lib.rs
Comment thread nginx-sys/src/lib.rs Outdated
@bavshin-f5
Copy link
Copy Markdown
Member

Pushed e834149 and 4ee19c0 to master with minor adjustments.

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.

2 participants