Cross compilation of server fails with async_trait
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- build-system
Direzione di ricerca
Reproduce the server cross-compilation failure with cargo-zigbuild, then inspect the async trait declarations in crates/middleware/src/logseq.rs, crates/middleware/src/ripgrep.rs, and crates/middleware/src/lib.rs. The work is done when the cross-compilation completes without the E0706 errors shown in the report.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Compiling using https://hub.docker.com/r/messense/cargo-zigbuild fails with
error[E0706]: functions in traits cannot be declared `async`
--> crates/middleware/src/logseq.rs:36:5
|
36 | async fn build_knowledge_graph(&self, resource: impl Read) -> Result<Thesaurus>;
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| `async` because of this
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0706]: functions in traits cannot be declared `async`
--> crates/middleware/src/logseq.rs:45:5
|
45 | async fn index(
| ^----
| |
| _____`async` because of this
| |
46 | | &mut self,
47 | | needle: String,
48 | | haystack: String,
49 | | ) -> Result<AHashMap<String, Article>> {
| |__________________________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0706]: functions in traits cannot be declared `async`
--> crates/middleware/src/ripgrep.rs:37:5
|
37 | async fn index(
| ^----
| |
| _____`async` because of this
| |
38 | | &mut self,
39 | | needle: String,
40 | | haystack: String,
41 | | ) -> Result<AHashMap<String, Article>> {
| |__________________________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
error[E0706]: functions in traits cannot be declared `async`
--> crates/middleware/src/lib.rs:145:5
|
145 | async fn index(
| ^----
| |
| _____`async` because of this
| |
146 | | &mut self,
147 | | needle: String,
148 | | haystack: String,
149 | | ) -> Result<AHashMap<String, Article>>;
| |___________________________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
For more information about this error, try `rustc --explain E0706`.
error: could not compile `terraphim_middleware` (lib) due to 4 previous errors
- Lingua principale
- Rust
- Stelle
- 62
- Fork
- 5
- Merge medio
- 2h 27m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di terraphim/terraphim-ai
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
terraphim/terraphim-ai#885 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
terraphim/terraphim-ai#871 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
terraphim/terraphim-ai#810 · 2 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
terraphim/terraphim-ai#729 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
terraphim/terraphim-ai#728 ·
Tutte le issue di terraphim/terraphim-ai
Issue simili
-
risk:low runtime status:in-progress type:test
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
EricSpencer00/Resilient#4835 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
bisq-network/bisq-musig#204 ·
-
agent:ready documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
cesarferreira/stax#890 ·