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
feat: Support build target for multiple platforms #70
Comments
It would be better to generate unified glue code after building libraries for multiple platforms. |
You can cross-compile to other platforms, This is similar to using similar workflows for publishing NAPI modules with If you don't want to use the CI, consider using cross or similar tools to achieve Rust cross-compilation.
I'm not sure what you mean by "unified glue code". It is already unified / same for all platforms. |
thanks, I have a problem |
|
"bindings.ts" may be able to judge that the platform loads the corresponding library like the above code |
It does that already using |
well, thanks |
At present, the compiled library can only be used for a single platform. If you want to support cross platform, you need to build multiple sets of code. This adds a lot of tedious work.
The text was updated successfully, but these errors were encountered: