I would like to wrap zola with extendr to make it available in R. However, to do this, we would need access to zola as a library. This has been discussed a few times before, like here. Would this be something the zola team is willing to support? Happy to offer a PR if so.
Since Zola is pretty modular, you can depend on various subcrates of it like this in your Cargo.toml:
[dependencies]
zola_site = { git = "https://github.com/getzola/zola", rev = "v0.20.0", package = "site" }
zola_utils = { git = "https://github.com/getzola/zola", rev = "v0.20.0", package = "utils" }
You check the full example here: Cargo.toml · 4608c7e710c0cdbc17f0dd08bde4582bcfea5d35 · bemyak / zola-new · GitLab