diff --git a/Cargo.toml b/Cargo.toml index 748ed5e..513028c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,10 @@ serde = "1.0.10" serde_derive = "1.0.10" serde_yaml = "0.7.1" wkhtmltopdf = "0.3.0" + +[profile.dev] +rpath = true + +[profile.release] +rpath = true +lto = true diff --git a/src/build/pandoc.rs b/src/build/pandoc.rs index bb46886..d46953b 100644 --- a/src/build/pandoc.rs +++ b/src/build/pandoc.rs @@ -7,7 +7,7 @@ use std::error::Error; fn add_path_hints(pandoc: &mut Pandoc, path: &mut PathBuf) { let mut out = true; while out { - pandoc.add_pandoc_path_hint(&path.join("lib")); + pandoc.add_pandoc_path_hint(path); out = path.pop(); } }