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
build.rs
This is not possible as of Rust 1.47. Cargo issue #4001 tracks the possibility of supporting this in some fashion.