Automatically change the schema version on all publishes

Closes #773
This commit is contained in:
Alex Crichton 2018-08-30 13:26:07 -07:00
parent d358fa0987
commit de6aa6c97e

View File

@ -3,7 +3,9 @@
#[macro_use]
extern crate serde_derive;
pub const SCHEMA_VERSION: &str = "8";
// The schema is so unstable right now we just force it to change whenever this
// package's version changes, which happens on all publishes.
pub const SCHEMA_VERSION: &str = env!("CARGO_PKG_VERSION");
#[derive(Deserialize)]
pub struct ProgramOnlySchema {