Remove the print_debug and build-metadata host cargo features

Aperta
#1,979 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
49/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

Start by locating the hyperlight-host Cargo feature definitions and their uses, including the debug! macro and the two Hyperlight call sites mentioned in the issue. Review the host build script and build metadata logging to trace the built and git2 dependency. Done means both features and the macro are removed, with no remaining references and applications able to provide their own build detail logging.

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

Descrizione

S-needs-triage

Two hyperlight-host cargo features add cost without adding value.

  • print_debug makes the exported debug! macro print to stdout in debug builds, in addition to tracing::debug!. Its cfg is evaluated in the caller's crate, so the print never works for external users. Hyperlight itself uses the macro in two places, where tracing::debug! gives the same output.
  • build-metadata is on by default. It uses built with git2 to log build details on the first sandbox creation. Its git fields are empty for crates.io users. git2 compiles libgit2 from C in every default build, on the critical path to the host build script.

Proposal: remove both features and the debug! macro. Applications that want build details can log them with their own tooling.

Lingua principale
Rust
Stelle
4.8k
Fork
222
Merge medio
1g 16h
PR unite (30g)
60

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.