One way to call and register functions

Abierto
#1,997 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
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
backend

Línea de trabajo

Read the host and guest call entry points, the guest registration APIs, and the WIT code generation path; the issue does not name specific files or tests. Map where call, call_host, call_host_function, register_fn, and register_function are used, then check the changes in issue #1987 before scoping the API updates. Done means the proposed deprecations and removal are addressed, dynamic host calls are available, and WIT codegen uses register_fn.

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

Descripción

A-api

Each operation has several entry points with different costs:

  • Host calls: call, and the deprecated call_guest_function_by_name.
  • Guest calls to the host: call_host, and call_host_function, which takes an owned Vec<ParameterValue>.
  • Guest registration: #[guest_function], register_fn, and register_function with a hand-built definition.

Proposal:

  • Remove call_guest_function_by_name.
  • Add guest call_host_dynamic(name, &[ParameterValueRef], ReturnType) for runtime signatures. Deprecate call_host_function.
  • Deprecate register_function and print_output_with_host_print. Switch WIT codegen to register_fn.

Builds on #1987.

Lenguaje dominante
Rust
Estrellas
4.8k
Forks
223
Merge medio
1 d 18 h
PR fusionados (30 d)
65

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.