license_file: Option<String>,
repository: Option<String>,
metadata: Option<toml::Value>,
- epoch: Option<String>,
+ rust: Option<String>,
}
#[derive(Debug, Deserialize, Serialize)]
None | Some(VecStringOrBool::Bool(true)) => None,
};
- let epoch = if let Some(ref epoch) = project.epoch {
+ let epoch = if let Some(ref epoch) = project.rust {
features.require(Feature::epoch()).chain_err(|| {
"epoches are unstable"
})?;
if let Ok(epoch) = epoch.parse() {
epoch
} else {
- bail!("the `epoch` key must be one of: `2015`, `2018`")
+ bail!("the `rust` key must be one of: `2015`, `2018`")
}
} else {
Epoch::Epoch2015
name = "foo"
version = "0.0.1"
authors = []
- epoch = "2018"
+ rust = "2018"
"#)
.file("src/lib.rs", r#" "#)
.build();
name = "foo"
version = "0.0.1"
authors = []
- epoch = "chicken"
+ rust = "chicken"
"#)
.file("src/lib.rs", r#" "#)
.build();
error: failed to parse manifest at `[..]`
Caused by:
- the `epoch` key must be one of: `2015`, `2018`
+ the `rust` key must be one of: `2015`, `2018`
")));
}
name = "foo"
version = "0.0.1"
authors = []
- epoch = "2015"
+ rust = "2015"
"#)
.file("src/lib.rs", r#" "#)
.build();