traefik_wasm_api 1.0.1

wasm interface for traefik
Documentation
  • Coverage
  • 0%
    0 out of 34 items documented0 out of 19 items with examples
  • Size
  • Source code size: 17.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.85 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • nihaopaul/traefik-rust-wasm-plugin
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nihaopaul

Ambition for Launching traefik-wasm-api

The ambition for launching traefik-wasm-api was driven by the lack of available documentation from Traefik Labs and the absence of an easy way for the community to get started. This was my first crate, but very little logic is handled by the library.

Initial reference code from: https://github.com/elisasre/http-wasm-rust/ (deprecated)

Updated to match the implementation ABI: https://http-wasm.io/http-handler-abi/ which Traefik uses for the wasm interface between host and plugin.

included make commands to get up and running with hooks into the traefik and a docker command to run local testing.

key decisions taken:

  1. test if the buffer of 0 bytes is big enough to then implement a dynamic buffer based on size
  2. body_read uses a 1MB buffer by default

TODO

  1. standardise the interface responses. (V2)
  2. implement collections for all headers