linux - Rust: 测试时使用条件编译,如何在默认时开启某个测试而在传入 feature 后关闭?
ringa_lee
ringa_lee 2017-04-17 16:16:42
0
1
853
ringa_lee
ringa_lee

ringa_lee

reply all(1)
洪涛
#![cfg(not(feature = "foo_feature"))]

参见

https://doc.rust-lang.org/ref...

https://github.com/search?utf...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!