davidthing
davidthing
@nyurik, do you know if this issue is related to this comment in the `vmod_object` example code? https://github.com/varnish-rs/varnish-rs/blob/ddc6b34689d457fa7d356e5110ccc3c0d185f20e/examples/vmod_object/src/lib.rs#L36-L42 In my use case, I am parsing the request body, which was...
@gquintard, I'm struggling a bit to understand how to use this. Is there an example or test where a vmod returns a string that is not a `String`? Here's my...
😆👍 I can't _commit_ to implementing it, but I can take a look at it this weekend and see how far I get. That said, I'm not sure that I...
Sounds good, I'll shoot for returning `WsStr WsStr>` // should the old method be considered `unsafe` also? /// Finish writing to the [`WsBuffer`], returning the allocated [`VCL_STRING`]. pub fn finish(mut...
> You are thinking at a way too high level here 😅 maybe. I'll zoom in. I struggle to reconcile these two things: 1. A `VCL_STRING`/`WsStr` should have "no null-character...
Sadly I haven't had much time this weekend, but I made some progress. I want to ask some clarifying questions about these two comments: > WsStr`? 3. How are we...
Unless I'm making it harder than it needs to be (which is possible), the Rust borrow checker will be tough to appease for `WsStr WsStrBuffer VclResult
@gquintard @nyurik, How bout dis? It's not quite what we talked about, but I _think_ it checks the boxes from the original issue description and should be a bit faster...
> I'm unsure what the problem is with the lifetime is, as [WsTempBuffer](https://docs.rs/varnish/latest/varnish/vcl/type.WsTempBuffer.html) is able to do it. `WsTempBuffer` bullies the lifetimes into submission with `mem::transmute`. I can return to...
@gquintard & @nyurik, how do you feel about introducing a breaking change to remove `mut` from the some of the `Workspace`/`WsBuffer` methods? Since they involve unsafe code (e.g., the FFI...