cjbassi / ytop

A TUI system monitor written in Rust
MIT License
2.16k stars 84 forks source link

Windows support #74

Open zkat opened 4 years ago

zkat commented 4 years ago

Hi!

I'm a Windows user and I'm in dire need of a good htop alternative that works on Windows terminals. ytop seems amazing and I would love to be able to use it!

I noticed when trying to install through cargo that there's a bunch of compilation errors, so I assume the project isn't quite there yet, but I'm willing to help if that's of any interest!

cjbassi commented 4 years ago

Hey, I would definitely like to add windows support.

The main issue is that https://github.com/rust-psutil/rust-psutil which is the main resource monitoring library that we are using doesn't have any windows support yet. I know there's quite a few other resource monitoring libraries in rust and many of them do have windows support, so what we could do is add one of them as a ytop dependency specifically on windows and then hook the widgets up to it which should get things working. There's a list of all of the rust resource monitoring libraries at the bottom of the rust-psutil readme that we could go through to find one that works: https://github.com/rust-psutil/rust-psutil#related-projects.

Eventually, I would like to add windows support to rust-psutil (likely by copying one of these other libraries) but that would be more work.

Any help is appreciated!

mardukbp commented 4 years ago

If it is of any help, bottom uses the sysinfo crate.