From a1ff72a5110b46028030c4e6d96d9bb8e7f232d6 Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Sun, 10 Jan 2021 00:17:03 -0700 Subject: [PATCH] Use MAIN_SEPARATOR in build script to fix build on windows --- build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 8382002..56d66fb 100644 --- a/build.rs +++ b/build.rs @@ -23,8 +23,10 @@ fn main() -> Result<(), Box> { writeln!( out_file, - r##"StaticMigration {{ tag: r#"{}"#, up: include_str!(r#"{1}/up.sql"#), down: include_str!(r#"{1}/down.sql"#) }},"##, - tag, path + r##"StaticMigration {{ tag: r#"{}"#, up: include_str!(r#"{1}{2}up.sql"#), down: include_str!(r#"{1}{2}down.sql"#) }},"##, + tag, + path, + std::path::MAIN_SEPARATOR )?; } -- 2.30.1