-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Establish a workflow for Libraries #951
Comments
I was able to get a set up like this working on the latest gdext.
helper_library = { path = "../my_helper" }
That last point is important- if you have a Is it possible that this set up is unsafe? |
Update: at some point my above set-up started to break when compiling using
The Ultimately, I was able to side-step the problem with a feature: #[cfg(feature = "entry")]
#[gdextension]
unsafe impl ExtensionLibrary for MyLibrary {} The only downside for this is that you need to enable the feature via command-line when building the library for use directly in godot (but nothing needs to be done when using it as a dependency, since the feature is off by default) Maybe worth mentioning that the ability to distinguish between cdylib and lib at compilation could also solve this. But the issue seems unlikely to be solved any time soon because rustc generates both libs with a single compilation rust-lang/rust#20267 |
I have a handful of GDExt projects. I would like use these projects as dependencies. Right now, I have to remove the
impl ExtensionLibrary
from a given project before including it as a dependency. I'd like a way to allow one project to depend on multiple GodotRust GDExt projects without modifying the originals.The text was updated successfully, but these errors were encountered: