HFQR / xitca-web

An HTTP library and web framework for safe Rust
https://docs.rs/xitca-web/latest/xitca_web/
Apache License 2.0
765 stars 45 forks source link

Is it possible to create an ASGI server for python FastAPI[ASGI] ? #1156

Open boludoz opened 1 month ago

boludoz commented 1 month ago

Would it be possible to call this server through an SO/DLL interface?

fakeshadow commented 1 month ago

You can compile the project as dynamic linked library but there is no effort into testing what the library is capable of when doing so. You can reference docs on this matter

fakeshadow commented 1 month ago

As an alternative you can look into pyo3. You can wrap xitca-web with it into a new crate and compile it to a dynamic library where python can import and use it easily.