-
Based on this SO answer, it is not possible to set profile-specific dependencies. I'm wondering if I'm missing some other obvious way to disable the Alternatively, is there an obvious way to distribute libbevy with your game? I see |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can enable bevy features using your own feature so I have a feature just called "dev" that has dynamic linking enabled: [features]
dev = ["bevy/dynamic_linking"] You have to remember to enable the feature during compilation though. My workflow is to always run Not a perfect solution but doesn't rely on changing Cargo.toml. |
Beta Was this translation helpful? Give feedback.
Yep, unfortunately cargo just doesn't support that. The only alternatives I can offer is using a wrapper command like just or personally I have setup an alias in my config.toml called dev to make the command a bit shorter:
cargo dev
but of course this does mean using non standard commands that are specific to your project.