Different crates, same feature flag names

⚓ Rust    📅 2026-03-24    👤 surdeus    👁️ 1      

surdeus

My project consists of several crates, all of them supports more than one async runtime.
So, until now, I used to name my feature flags like this:

tokio-rt, smol-rt, async-rt

The problem is, all projects are in a monorepo, and I have one create with all tests. For some reason, I can't use same feature flags names like the ones above on monorepo crates without have a lot of conflicts.

How did you guys has been managing this kind of issue? I'm considering rename feature flags from tokio-rt to my-crate-tokio-rt, but not sure if I'm going though right direction.

Is anyone here faced this kind of issue before? How have you fixed this?

6 posts - 3 participants

Read full topic

🏷️ Rust_feed