Remove the print_debug and build-metadata host cargo features

Abierto
#1,979 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
49/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
4.8k
Forks
222
Merge medio
1 d 16 h
PR fusionados (30 d)
60

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hyperlight-dev/hyperlight

Todos los issues de hyperlight-dev/hyperlight

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.