Propagate Rust target features through crate2nix builds

Abierto
#10,322 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
build-system

Línea de trabajo

Start with the per-crate build configuration in nix/crates.nix and trace how the generated crate graph passes targetFeatures into buildRustCrate. Compare that with the build.rs environment and manifest behavior described in the issue. Check the change by building .#moq-bench on x86-64 Linux and confirming the log selects Rind's x86_64 backend.

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

Descripción

On x86-64 Linux, nix build .#moq-bench selects Rind's portable backend. The build log at revision 62c0ec81faf9228b837769c6d2eb1a098a416fd4 contains cargo::rustc-cfg=rind_backend="portable". The same version of Rind under Cargo selects x86_64. Portable Rind reports no hardware AES, so the Rustls provider offers ChaCha20-Poly1305 first.

The generated crate graph defaults targetFeatures to an empty list, and buildRustCrate leaves CARGO_CFG_TARGET_FEATURE unset. Rind reads that variable in build.rs, while its manifest uses the same target features to select its portable-only dependencies. Feed the target's baseline features into both paths and check that a Nix-built x86-64 package selects the accelerated backend. Rust 1.98.1 reports fxsr,sse,sse2 for x86_64-unknown-linux-gnu. Per-crate build

(Written by GPT-6.2 Sol with high effort)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
832

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.