We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code of the general form:
extern { fn foo(); } pub fn call_foo<T>() { foo(); }
will not allow other crates to use call_foo, because they don't link directly against the library that foo is defined in.
foo
The solution is probably to emit wrappers or aliases for the C function in the dylib itself. (I am not concerned about rlibs.)
A full testcase is at: https://gist.github.com/o11c/3cedbabc14adcb3e5254 (tested on Linux)
The text was updated successfully, but these errors were encountered:
Closing as a dupe of #15460
Sorry, something went wrong.
No branches or pull requests
Code of the general form:
will not allow other crates to use call_foo, because they don't link directly against the library that
foo
is defined in.The solution is probably to emit wrappers or aliases for the C function in the dylib itself.
(I am not concerned about rlibs.)
A full testcase is at: https://gist.github.com/o11c/3cedbabc14adcb3e5254 (tested on Linux)
The text was updated successfully, but these errors were encountered: