Switch from version strings to schema versions

Should help reduce some churn a bit!
This commit is contained in:
Alex Crichton
2018-03-05 20:05:44 -08:00
parent 1db5b3fb50
commit 98030e0e4a
3 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,8 @@ extern crate fnv;
use std::char;
use std::hash::{Hash, Hasher};
pub const SCHEMA_VERSION: &str = "0";
#[derive(Deserialize)]
pub struct Program {
pub exports: Vec<Export>,
@ -12,6 +14,7 @@ pub struct Program {
pub imports: Vec<Import>,
pub custom_type_names: Vec<CustomTypeName>,
pub version: String,
pub schema_version: String,
}
#[derive(Deserialize)]