Reorganize support re-exports to support preservesless usage of preserves_schema

This commit is contained in:
Tony Garnock-Jones 2021-08-28 17:01:36 +02:00
parent 027966fb3b
commit 3cdf1f662e
2 changed files with 4 additions and 2 deletions

View File

@ -172,10 +172,11 @@ pub fn compile(config: &CompilerConfig) -> io::Result<()> {
lines.push("#![allow(unused_imports)]".to_owned());
lines.push("".to_owned());
lines.push("use std::convert::TryFrom;".to_owned());
lines.push("use preserves::value::Domain;".to_owned());
lines.push("use preserves::value::NestedValue;".to_owned());
lines.push(format!("use {}::support as _support;", &config.support_crate));
lines.push("use _support::Deserialize;".to_owned());
lines.push("use _support::preserves;".to_owned());
lines.push("use preserves::value::Domain;".to_owned());
lines.push("use preserves::value::NestedValue;".to_owned());
lines.push("".to_owned());
for mode in &modes {

View File

@ -1,5 +1,6 @@
pub use lazy_static::lazy_static;
pub use preserves;
pub use preserves::value::Reader;
pub use preserves::value::boundary as B;