Remove the print_debug and build-metadata host cargo features

Ouverte
#1,979 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
49/100
Type d'issue
Refactorisation
Clarté
Plutôt claire
Activité
Active
Stack technique
rust
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Rust
Étoiles
4.8k
Forks
222
Merge moyen
1 j 16 h
PR mergées (30 j)
60

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de hyperlight-dev/hyperlight

Toutes les issues de hyperlight-dev/hyperlight

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.