WebAssembly / wasi-keyvalue

27 stars 10 forks source link

fix: move incoming value ownership on consumption #39

Closed rvolosatovs closed 4 months ago

rvolosatovs commented 4 months ago

Resource methods implicitly borrow the resource, however, to "consume" the value, ownership of it must be moved. In some way this is similar to https://github.com/WebAssembly/wasi-http/blob/37b91f4f78950f87db61e462ab6dacf85827bc64/wit/types.wit#L426