I have a crate, app_internal that I would like to collect features from other crates in its project, but I would also like the crates that loan their features to app_internal to be able to import from app_internal to retrieve the features loaned to app_internal itself.
E.G: I have a crate, shader_core with plugins I'd like app_internal to import, but I would like shader_core to import other crates(not yet added) in app_internal.
I've tried making it an optional dependency within app_internal, and just set shader_core to not use the shaders feature to not cause a self import, but rust still complains about circular dependencies?
app_internal ```toml
[package]
name = "app_internal"
version = "0.1.0"
edition = "2024"
[dependencies]
shader_core = {path = "../shader_core", optional = true}
[features]
shaders = ["dep:shader_core"]
and
`shader_core`: ```rust
[package]
name = "shader_core"
version = "0.1.0"
edition = "2024"
[dependencies]
app_internal = {path = "../app_internal", default-features = false}
Is there a way to get what Im trying to do to work?