可以利用 cfg! 来在运行时使用一些编译时的静态信息进行条件判断: ... fn main() { if cfg! ... conditional-compilation · cargo-features · rust.
確定! 回上一頁