Expose host-function requirements recorded in snapshots

Aperta
#1,870 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by tracing the public Snapshot API and the validation path through SandboxBuilder::from_snapshot().build(), then inspect how host-function names and type signatures are persisted. Done means callers can inspect an immutable view containing each recorded function name and its exact parameter and return types before restoring a sandbox.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

Hyperlight snapshots persist the host-function names and type signatures needed
to restore guest state, and SandboxBuilder::from_snapshot().build() validates
the restoring registry against them.

The persisted requirements are not exposed through the public Snapshot API.
Consumers therefore cannot inspect a loaded snapshot before building a sandbox
to discover requirements such as ResolveModule and LoadModule. They must
already know the contract or attempt restoration and parse the resulting
mismatch error.

Wrapper runtimes also cannot present a complete requirements API because the
underlying Hyperlight requirements are private.

Proposed change

Expose an immutable view of the host-function requirements recorded by a
Snapshot, including each function name and exact parameter and return types.

Lingua principale
Rust
Stelle
4.8k
Fork
223
Merge medio
1g 18h
PR unite (30g)
65

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hyperlight-dev/hyperlight

Tutte le issue di hyperlight-dev/hyperlight

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.