diff --git a/jsonnet-sys/build.rs b/jsonnet-sys/build.rs index 9d42d38..3280f3a 100644 --- a/jsonnet-sys/build.rs +++ b/jsonnet-sys/build.rs @@ -47,7 +47,9 @@ fn main() -> Result<(), Box> { .include(out_dir.join("include")) .include(dir.join("include")) .include(dir.join("third_party/md5")) - .include(dir.join("third_party/json")); + .include(dir.join("third_party/json")) + .include(dir.join("third_party/rapidyaml/rapidyaml/src")) + .include(dir.join("third_party/rapidyaml/rapidyaml/ext/c4core/src")); for f in &jsonnet_core { c.file(dir.join("core").join(f)); @@ -55,6 +57,11 @@ fn main() -> Result<(), Box> { c.file(dir.join("third_party/md5/md5.cpp")); + let rapidyaml_includes = ["ryml_std.hpp", "ryml.hpp"]; + for f in rapidyaml_includes { + c.file(dir.join("third_party/rapidyaml/rapidyaml/src").join(f)); + } + c.compile("libjsonnet.a"); Ok(()) diff --git a/jsonnet-sys/jsonnet b/jsonnet-sys/jsonnet index ed11b01..f45e01d 160000 --- a/jsonnet-sys/jsonnet +++ b/jsonnet-sys/jsonnet @@ -1 +1 @@ -Subproject commit ed11b012a4e1487727c595380bff8866d40f2529 +Subproject commit f45e01d632b29e4c0757ec7ba188ce759298e6d3