是否可以在编译库时检查“ panic”是否设置为“ abort”?

时间:2018-08-15 14:28:09

标签: rust rust-cargo

这可能不是一个好主意,也不是惯用的,但让我们假设出于某种原因,图书馆依赖catch_unwind来实现其业务逻辑。

如果Cargo.toml中的they set panic = "abort"的“终端”板条箱中的某个用户,我能以某种方式警告(通过错误消息编译失败吗?)?

我当时正在考虑检查build.rs中的某个环境变量,但要检查can't find any variables with this information

0 个答案:

没有答案
相关问题