Skip to content

Struggling with dynamic library plugins #8390

Answered by SkiFire13
64-Tesseract asked this question in Q&A
Discussion options

You must be logged in to vote

I see... I'm compiling both with Cargo. The mod has crate_type = ["dylib"] and a path to the source file under the [lib] section, but besides that everything's standard. I also tried including the bevy_dynamic_plugin feature in the mod's Cargo.toml, but with no luck.

And are the game and the mod in the same cargo project/workspace? If not, do they share the same version and features for bevy (but it would be better if that was true for all the other dependencies too)

I'm speculating here, but if I were to compile Bevy as a library somehow, and then compile both the game and mod with that same library, would the TypieIds be the same...?

Probably, but I'm not sure how you would do that,…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@SkiFire13
Comment options

@64-Tesseract
Comment options

@SkiFire13
Comment options

Answer selected by 64-Tesseract
@64-Tesseract
Comment options

Comment options

You must be logged in to vote
1 reply
@SkiFire13
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants