-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plan for unix support #2
Comments
I plan to add unix support, but it is not high on my priority list as I dont personally use it. |
Ok great, let me know if I can help on a PR. |
If you want to implement it yourself I would be more than happy to merge a PR. |
Well, if you give me a hint of what I should change first, I can work on it. |
The difference in string types should be the only change required. |
I created an initial version that supports os other than windows. |
Wow awesome, thank you for this effort! It seems that you are linking C++ code with rust. So you have to include the C++ standard library. |
I already tried that yesterday, but the tests are still failing (now with less errors). |
To clarify:
The full error log is available here: https://github.com/OpenByteDev/netcorehost/runs/2192279154?check_suite_focus=true |
This is weird, in this context some headers seem to be loaded from a non-existing directory: I can reproduce the issue on Ubuntu 18.04 (WSL) |
In bindings\nethost.rs I added this:
And I removed from build.rs:
This seems to work. |
Nice! |
No, sorry, I'm missing knowledge there. But maybe on the rust gitter you may have a chance to get some clues. |
BTW, I found this other interesting project: It's also based on nethost and provides an utility to generate C source files to be linked against nethost (from exported functions with or without UnmanagedCallersOnly). |
It seems that the |
I have seen your fix in the commit 0afdcdd Looks good to me :) Thanks!!! |
Do you have planned to add support for unix platforms?
According to this example it seems to be doable:
https://github.com/dotnet/samples/blob/main/core/hosting/HostWithHostFxr/src/NativeHost/nativehost.cpp
However I have noticed a distinction regarding strings which seem to be wide on windows (
typedef wchar_t char_t
) but not on unix (typedef char char_t
).Would be happy to contribute to this addition but help might be needed.
The text was updated successfully, but these errors were encountered: