miden-node-validator 0.14.0-alpha.3

Miden node's validator component
Documentation
1
2
3
4
5
6
7
8
9
10
// This build.rs is required to trigger the `diesel_migrations::embed_migrations!` proc-macro in
// `validator/src/db/migrations.rs` to include the latest version of the migrations into the binary,
// see <https://docs.rs/diesel_migrations/latest/diesel_migrations/macro.embed_migrations.html#automatic-rebuilds>.
fn main() {
    build_rs::output::rerun_if_changed("./src/db/migrations");
    // If we do one re-write, the default rules are disabled,
    // hence we need to trigger explicitly on `Cargo.toml`.
    // <https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed>
    build_rs::output::rerun_if_changed("Cargo.toml");
}