我在Cargo写一个图书馆.如果这个库依赖于另一个库libc,它暴露了一个特性(在这种情况下use_std),我如何创建一个我公开的功能在我的依赖项中启用或禁用该功能?
查看货物文档,看起来没有指定的官方方式来执行此操作.
She*_*ter 14
从您链接到的文档:
Run Code Online (Sandbox Code Playgroud)# Features can be used to reexport features of other packages. The `session` # feature of package `awesome` will ensure that the `session` feature of the # package `cookie` is also enabled. session = ["cookie/session"]
那够了吗?