I'm writing a library in Cargo. If this library depends on another library like libc
, which exposes a feature (in this case, use_std
), how do I make a feature I expose enable or disable that feature in my dependency?
Looking at the cargo documentation, it looks like there's no official way specified to do this.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…