From cf94a95266d150e88a66ee69b48a9ac9e8dd72cd Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 10 Aug 2021 12:25:05 -0400 Subject: [PATCH] Put a symlink to path.bin in this crate, to allow cargo publish to work --- implementations/rust/preserves-path/Cargo.toml | 2 +- implementations/rust/preserves-path/build.rs | 3 ++- implementations/rust/preserves-path/path.bin | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 120000 implementations/rust/preserves-path/path.bin diff --git a/implementations/rust/preserves-path/Cargo.toml b/implementations/rust/preserves-path/Cargo.toml index b465dcc..a82757a 100644 --- a/implementations/rust/preserves-path/Cargo.toml +++ b/implementations/rust/preserves-path/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "preserves-path" -version = "0.1.2" +version = "0.1.3" authors = ["Tony Garnock-Jones "] edition = "2018" description = "Implementation of preserves-path, a query language for Preserves documents." diff --git a/implementations/rust/preserves-path/build.rs b/implementations/rust/preserves-path/build.rs index 3688120..596e862 100644 --- a/implementations/rust/preserves-path/build.rs +++ b/implementations/rust/preserves-path/build.rs @@ -11,7 +11,8 @@ fn main() -> Result<(), Error> { let mut c = CompilerConfig::new(gen_dir, "crate::schemas".to_owned()); - let inputs = expand_inputs(&vec!["../../../path/path.bin".to_owned()])?; + let inputs = expand_inputs(&vec!["path.bin".to_owned()])?; c.load_schemas_and_bundles(&inputs)?; + compile(&c) } diff --git a/implementations/rust/preserves-path/path.bin b/implementations/rust/preserves-path/path.bin new file mode 120000 index 0000000..606a13d --- /dev/null +++ b/implementations/rust/preserves-path/path.bin @@ -0,0 +1 @@ +../../../path/path.bin \ No newline at end of file