| 1 |
// Whenever the lib.rs changes, the SCHEMA_FILE_HASH environment variable will change and the |
| 2 |
// schema_version test below will fail. |
| 3 |
// Proceed as follows: |
| 4 |
// |
| 5 |
// If the schema in this library has changed then: |
| 6 |
// 1. Change this APPROVED_SCHEMA_FILE_HASH to the new hash. |
| 7 |
// |
| 8 |
// If the schema in this library has changed then: |
| 9 |
// 1. Bump the version in `crates/shared/Cargo.toml` |
| 10 |
// 2. Change the `SCHEMA_VERSION` in this library to this new Cargo.toml version |
| 11 |
const APPROVED_SCHEMA_FILE_HASH: &str = "11955579329744078753"; |
| 12 |
|
| 13 |
#[test] |
| 14 |
fn schema_version() { |
| 15 |
assert_eq!(env!("SCHEMA_FILE_HASH"), APPROVED_SCHEMA_FILE_HASH) |
| 16 |
} |