2016-10-13 73 views

回答

6

the documentation you linked to

# 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"] 

是足夠的?

+0

啊,是的,是的,謝謝你:-) – burtonageo

+0

嗯,如果我有像['ascii'](https://github.com/tomprogrammer/rust-ascii)這樣的依賴項會暴露'no_std 'flag - 如果我的'use_std'標誌被啓用,我想要_disable_? – burtonageo

+0

@burtonageo一個有趣的問題,你可能會問一個單獨的頂級問題!它甚至可能是一項功能要求。特別是'no_std',我覺得我聽說正確的做法是有一個*默認功能*,可以使用'std'中的東西,所以也許ascii只是倒退... – Shepmaster

相關問題