>  Q&A  >  본문

linux - Rust: 测试时使用条件编译,如何在默认时开启某个测试而在传入 feature 后关闭?

ringa_leeringa_lee2712일 전806

모든 응답(1)나는 대답할 것이다

  • PHP中文网

    PHP中文网2017-04-17 16:18:42

    #![cfg(not(feature = "foo_feature"))]

    参见

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

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

    회신하다
    0
  • 취소회신하다