Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Commit generated bindings to repo

Aperta
#48 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
build-system

Direzione di ricerca

Inizia da build.rs e esamina come libquil.h viene attualmente utilizzato per generare i bindings. Poi esamina il repository libquil-sys alla ricerca del pattern include_file!() esistente e determina come un feature flag debba selezionare tra bindings generati e sottoposti a commit. Il lavoro è completato quando pyquil può essere installato senza libquil, mentre i bindings possono comunque essere rigenerati quando necessario.

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

Descrizione

We would like to make the Python UX as easy as possible. One issue we will have is with pyQuil: we want uses to be able to use pyQuil with or without libquil available. If libquil is installed on their system and they want to use it -- awesome. But if libquil is not available on their system, they should still be able to pip install pyquil without issue.

The problem arises in this situation:

  • user runs pip install pyquil
  • pyquil depends on qcs-sdk-python
  • qcs-sdk-python will need to be compiled with libquil support (as there is no way to configure this with the Python package system)
  • qcs-sdk-python will look for libquil.h in order to generate its bindings

If the user has not installed libquil, the final step will fail.

One way I see around this is to remove the need to generate the bindings at compile time, by having them stored in the libquil-sys repo. We have done this in other projects: in build.rs support a feature flag which turns on the binding generator if they need to be regenerated. Otherwise, the bindings are loading from the repo (with include_file!()).

Lingua principale
Rust
Stelle
1
Fork
0
Merge medio
42m
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 rigetti/libquil-sys

Tutte le issue di rigetti/libquil-sys

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.