rustus icon indicating copy to clipboard operation
rustus copied to clipboard

Is it possible to make this project web framework agnostic please?

Open videni opened this issue 7 months ago • 2 comments

Hi, thanks to this awesome project, I'd like to use this project directly inside my Rust webserver, not as a standalone process, but I am using Axum, not actix-web. I also notice there is another framework specific implementation kallebysantos/meteoritus. I think this is a bit of a waste of community resources. Can we refactor this project to be web - framework - agnostic?

videni avatar May 18 '25 09:05 videni

I'm sorry to say that, but that would be really hard to do. Because it was not planned to be used as a library. And since it has it's own state and pools, it might be very challenging to create a convenient API for embedding it onto existing applications.

Also, in order to communicate with standalone version, you can easily use any kind of messages brokers such as NATS.

s3rius avatar May 18 '25 09:05 s3rius

@s3rius Thanks for quick response, as I know, the go implementation can be used as a library, this can't be accomplished overnight. However, I think it is worth refactoring the code, isolating the core and then building the upper-layer functions step by step.

videni avatar May 19 '25 01:05 videni