From 0f568230934191dd88fd4b6703797d1736105c04 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 27 Aug 2017 21:32:58 +0100 Subject: [PATCH] Dont use lib subdir --- Cargo.toml | 7 +++++++ src/build/pandoc.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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(); } }