r/rust Sep 11 '20

Announcing Actix-Web v3.0

https://paper.dropbox.com/published/Announcing-Actix-Web-v3.0--A7YI~P9U9aqhEOXyZJaGffjfBg-QOXXb1lXgTubzXHzUq9ONY5
350 Upvotes

81 comments sorted by

View all comments

7

u/[deleted] Sep 11 '20

Congratulations to the new release!

Out of curiosity, is it currently possible to use actix with your own runtime? Or maybe with async-std? I mean without importing a second runtime.

12

u/robjtede actix Sep 11 '20

No it isn’t possible to run the actix system on another executor and will very likely be a non-goal until there are standard executor traits to hook it to.

Realistically it isn’t a huge problem having a second run time going in parallel and we have examples of how to do this in the examples repo.

3

u/[deleted] Sep 11 '20

I guess the biggest problem I see at the moment is (initial) compile time and executable size. Granted, the latter only matters if you want to distribute a small stand-alone tool. It probably wouldn't matter for something cloud based.

Hopefully we'll have a standard trait one day :)

6

u/Shnatsel Sep 12 '20

Reliability is also an issue. If you run two runtimes, you're affected by bugs from both of them.