New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for windows #171
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
This is currently blocked, as merely importing We will need to find a way to conditionally import a module. Maybe using the type hinting causes the defect, but I don't think so? As it's just a data type. |
@all-contributors please add @caass for distributions & packaging |
I couldn't determine any contributions to add, did you specify any contributions? |
ARE YOU KIDDING ME all-contributors that link literally says @all-contributors please add @caass for Packaging, distribution, platforms, porting support to new platforms |
I've put up a pull request to add @caass! 🎉 |
@brandonskerritt it looks like you can have platform-specific dependencies, I'm on mobile atm but if I can find any examples of this and how it impacts imports I'll post them here. |
BTW, including RustScan in another project -- I am also working on a rustscan scripting engine right now for running scripts on found ports from RustScan (but after I fix this), if you want to be the first to use it let me know. The very first version will require scripts to be approved by me :D Okay, so we'd have to:
|
Update: I think this is working now. Pushing for CI to confirm whether our tests run on Windows. |
Update: I forgot to do step 1.... I'll do it tomorrow 😓 😴 |
@caass Can you check out the windows support branch and try it out yourself? The tests might be failing because the tests themselves require the very feature not used in Windows. If the branch works I can merge right now and create an issue to fix the tests later :) |
Ok, after trying to compile in a windows VM I was running into a couple errors where there are calls to rlimit stuff:
All of these are within |
Is your feature request related to a problem? Please describe.
Even if it's slow, it'd be nice to have windows support so that this crate could be included in packages targeting cross-platform support.
Describe the solution you'd like
The issue currently preventing windows support is the use of rlimit, which does not support windows. By adding checks for windows systems and hardcoding ulimit, we may temporarily work around this. I believe documentation exists for setting resource limits on windows, however I'm not very familiar with this sort of low-level stuff so I can't say for sure that this is feasible. Even if it is, it may be outside the scope of this project.
Describe alternatives you've considered
My ultimate goal is to include RustScan in another Rust project, so while running via Docker would be useful if I was an end-user, it is ultimately too cumbersome to call docker from rust and then run RustScan via docker via rust. It would be much simpler if I could simply include the crate in my dependencies.
Additional context
See #168, which should hopefully close this issue.
The text was updated successfully, but these errors were encountered: