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

ringa_lee

Antworte allen(1)
洪涛
#![cfg(not(feature = "foo_feature"))]

参见

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

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

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage