Merge pull request #775 from alexcrichton/better-version

Automatically change the schema version on all publishes
This commit is contained in:
Alex Crichton 2018-08-30 13:48:42 -07:00 committed by GitHub
commit 76dba8c677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {