bytecodealliance / bytecodealliance/cap-std

Change `Pool` to hold a callback instead of a set of grants?

Aperta
#339 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
821
Fork
57
Merge medio
1h 16m
PR unite (30g)
4

Descrizione

In https://github.com/bytecodealliance/wasmtime/pull/7662, there is discussion that a callback would be more useful than a simple set of allowed addresses. If that's true for Wasmtime, then it's true for cap-std in general, so we should consider migrating cap-std in that direction too.

The current code that maintains a list of allowed addresses could be factored out into a utility that users could use to implement the callback if they need that functionality.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.