LlamaEdge / rag-api-server

A RAG API server written in Rust following OpenAI specs
https://llamaedge.com/docs/user-guide/server-side-rag/quick-start
Apache License 2.0
31 stars 8 forks source link

Build failing due to `wasi_mio` #21

Closed suryyyansh closed 3 months ago

suryyyansh commented 3 months ago

Bug:

Building with cargo build --release --target wasm32-wasip1 fails when compiling the wasi_mio crate:

error[E0583]: file not found for module `tcp`
  --> /home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/mod.rs:39:5
   |
39 |     pub(crate) mod tcp;
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = help: to create the module `tcp`, create file "/home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/tcp.rs" or "/home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/tcp/mod.rs"
   = note: if there is a `mod tcp` elsewhere in the crate already, import it with `use crate::...` instead

error[E0583]: file not found for module `udp`
  --> /home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/mod.rs:42:5
   |
42 |     pub(crate) mod udp;
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = help: to create the module `udp`, create file "/home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/udp.rs" or "/home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/udp/mod.rs"
   = note: if there is a `mod udp` elsewhere in the crate already, import it with `use crate::...` instead

error[E0428]: the name `tcp` is defined multiple times
  --> /home/nsen/.cargo/git/checkouts/wasi_mio-40a99318049e0aae/943dfdb/src/sys/wasi/mod.rs:39:5
   |
27 |     pub(crate) mod tcp {
   |     ------------------ previous definition of the module `tcp` here
...
39 |     pub(crate) mod tcp;
   |     ^^^^^^^^^^^^^^^^^^^ `tcp` redefined here
...
...
...

This happens on both the dev and main branches.

Workaround:

None yet.

suryyyansh commented 3 months ago

closing. fixed by https://github.com/LlamaEdge/rag-api-server/commit/057ea22228268143012f5d0fd0c07707a65b31de