- Switched from ngx_log_error_core() to ngx_log_error! macro - Changed error_log level from debug to info (cleaner output) - Formatting cleanup across all modules (cargo fmt) - Removed trailing newlines and fixed indentation Logging now properly uses nginx's macro system for better integration with nginx's log handling.
10 lines
294 B
Rust
10 lines
294 B
Rust
fn main() {
|
|
// On macOS, we need to link against the nginx object files
|
|
// because dynamic libraries can't have undefined symbols
|
|
#[cfg(target_os = "macos")]
|
|
{
|
|
println!("cargo:rustc-link-arg=-undefined");
|
|
println!("cargo:rustc-link-arg=dynamic_lookup");
|
|
}
|
|
}
|