We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dmitry has noted that the amount of imports required for even the smallest module example is overwhelming.
We can approach this from several directions:
ngx::core::prelude::*
ngx::http::prelude::*
bitflags
NGX_CONF_...
as ngx_uint_t
#[no_mangle] #[used] pub static mut ngx_http_example_module: ngx_module_t = ngx_module_t { ctx: std::ptr::addr_of!(NGX_HTTP_EXAMPLE_MODULE_CTX) as _, // Safety: nginx does not modify module.commands. commands: NGX_HTTP_EXAMPLE_COMMANDS.as_ptr().cast_mut(), type_: NGX_HTTP_MODULE as _ .. NGX_RS_MODULE_V1 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dmitry has noted that the amount of imports required for even the smallest module example is overwhelming.
We can approach this from several directions:
ngx::core::prelude::*
andngx::http::prelude::*
bitflags
as much as possible.E.g. wrapping
NGX_CONF_...
withbitflags
would save a few imports and remove noisyas ngx_uint_t
casts.The text was updated successfully, but these errors were encountered: