How to access current cargo profile (build, test, bench, doc, …) from the build script (build.rs)

后端 未结 1 621
一生所求
一生所求 2020-12-11 18:22

I want to write a custom build.rs script that generates some diagrams to accompany the documentation for a crate I\'m working on. I want this script to run only

相关标签:
1条回答
  • 2020-12-11 18:42

    This is not possible as of Rust 1.47. Cargo issue #4001 tracks the possibility of supporting this in some fashion.

    0 讨论(0)
提交回复
热议问题