zoraxy-rs

Crates.iozoraxy-rs
lib.rszoraxy-rs
version0.1.0
created_at2025-11-19 06:23:10.918654+00
updated_at2025-11-19 06:23:10.918654+00
descriptionA Rust crate for building plugins for the Zoraxy Reverse Proxy
homepagehttps://zoraxy.aroz.org/
repositoryhttps://github.com/aroz-online/zoraxy-rs
max_upload_size
id1939503
size162,671
Anthony Rubick (AnthonyMichaelTDM)

documentation

README

Zoraxy-rs

Zoraxy-rs is a Rust crate for building plugins for Zoraxy

The examples have been verified to work with Zoraxy v3.2.9

Oddities

If using docker, and you see something like [plugin-manager] [system:error] Failed to load plugin: ...: exit status 127 in the logs

Open a shell in the container, and run ldd on the plugin binary, e.g.

docker exec -it <container_id> /bin/sh -c 'ldd /opt/zoraxy/plugin/api_call_example/api_call_example'

you might see that some libraries are missing, this is because the plugin was built against glibc but the docker container uses musl.

Fixing this could be as easy as changing some feature flags to ensure openssl isn't being used, but could be more involved requiring you to build the plugin with the x86_64-unknown-linux-musl target, which is easiest to do using cargo-zigbuild.

rustup target add x86_64-unknown-linux-musl
cargo install cargo-zigbuild
cargo zigbuild --release --example api_call_example --target x86_64-unknown-linux-musl

You might need to do some additional setup to get the musl target working, see the Rust documentation for more details.

Commit count: 0

cargo fmt