-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Added bevy_dynload to replace the dynamic_plugin feature #544
Added bevy_dynload to replace the dynamic_plugin feature #544
Conversation
This introduces breaking changes with having to import |
I like these changes, but I think I'd prefer the slightly more specific/explicit |
I appreciate the consideration. It's probably best to minimize our assumptions about prelude, especially when we have a growing plugin ecosystem where they might not depend on the main For users of the
@cart to avoid this issue altogether, should we keep the original (plural) feature name: |
@cart @memoryruins I've renamed the crate to |
@memoryruins I do like the thought process in general, but in this case people shouldn't really be using dynamic plugins anyway. Also at this stage in the project I think I want to value consistency + correctness over backward compatibility. In general for "crate" features I want them to be in the style: crate_name == So the question is, do we think The I think I'm cool with merging "breaking changes" into master. If we need to do |
@cart I agree. We shouldn't impede those goals when a) many things to experiment with and figure out b) there is an explicit warning about this on the readme. I mentioned the error to avoid surprise if included in a patch version, though it's unlikely that anyone is using that feature in this way today.
This is not the case for most of the current features that enable crates. If the feature enables a crate, it uses the name of the crate. This is the inconsistency of using the feature name edit: that is to say, would you like the other current feature names to be changed in another PR? |
Let's go with |
Ahh I see your point about the inconsistency now. I think using bevy_dynamic_plugin as the feature name is probably a good idea, just to keep things simple. |
I think I'll just make the change + rebase so we can get this merged asap. |
dacdf1c
to
ffa1dca
Compare
move dynamic plugin loading to its own crate
@EthanYidong please respond in #2373 for the relicense to MIT/Apache 2.0. Thanks! |
@EthanYidongArchives please have a look at ^, although you'd need to comment using the account @EthanYidong |
The load_plugin function under the AppBuilder impl has been moved to its own crate.