Elektrine lite

← Feed

@jplatte@social.tchncs.de

Post #1107713

2026-04-10 20:07 UTC

@slatian can you share a minimally reproducible example of the Layer struct version that doesn't compile?

Replies (1)

  • @slatian@pleroma.envs.net 2026-04-10 21:51

    @jplatte@social.tchncs.de I was about to collect all relevant code snippets and then asked myself: What does axum actually do under the hood and it turns out replicating that was the solution. I now have a tower service that directly calls into Cookie::decode() (which is a method it has because if the Header trait in the headers crate) … which was not easy to discover. It works now in case you are interested, the code is public: https://codeberg.org/slatian/lib-humus/src/branch/main/src/language_extraction_layer.rs So thanks for making me look in the right place :drgn_happy:

    Open ##2991501