tokio-file icon indicating copy to clipboard operation
tokio-file copied to clipboard

Linux version

Open bestouff opened this issue 7 years ago • 6 comments

Nice job ! I'm opening this issue to have some way of tracking an eventual linux port.

bestouff avatar Jul 26 '17 09:07 bestouff

I'm glad to see there's some interest. Might I know how you found out about tokio-file?

asomers avatar Jul 26 '17 13:07 asomers

I'm toying with the idea of a very specialized executable (a proto at work, because using rust in production isn't yet possible) involving http, mqtt and files, and that's the missing piece for when I'm reading to jump to tokio. Found it by searching crates.io from time to time.

bestouff avatar Jul 26 '17 13:07 bestouff

I'm working on an end-to-end asynchronous web framework and serving files with non-blocking I/O is something I'm very interested in.

Likewise, I found this by searching around crates.io to see what's available. I'd love to use something like this. My current solution is going to be bringing in futures-cpupool (though I'm still going to have to do this until the rest of Rust's ecosystem is async like Diesel).

mehcode avatar Aug 19 '17 11:08 mehcode

@mehcode are you volunteering? It would be possible add Linux support, using libaio instead of POSIX aio, and using eventfd instead of kqueue.

asomers avatar Aug 19 '17 15:08 asomers

Is there a reference implementation that I can port over?

seunlanlege avatar Mar 08 '18 14:03 seunlanlege

I'm not sure what you mean by a reference implementation. The way to get Linux support into Tokio-file is to write a mio-libaio crate that will resemble mio-aio, but using Linux's libaio. Libaio is poorly documented, but it does work.

asomers avatar Mar 08 '18 14:03 asomers