From 8af3a9ea512fc00e1eca847b8c65e10f42088dd7 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 21 Aug 2022 06:48:59 -0400 Subject: [PATCH] Correct Monero build script --- coins/monero/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coins/monero/build.rs b/coins/monero/build.rs index e8afbaec..71d5e7ef 100644 --- a/coins/monero/build.rs +++ b/coins/monero/build.rs @@ -1,7 +1,7 @@ use std::{ io::Write, path::Path, - fs::{File, remove_file}, + fs::{File, DirBuilder, remove_file}, }; use dalek_ff_group::EdwardsPoint; @@ -33,6 +33,7 @@ fn generators(prefix: &'static str, path: &str) { let mut H_str = "".to_string(); serialize(&mut H_str, &generators.H); + DirBuilder::new().recursive(true).create(".generators").unwrap(); let path = Path::new(".generators").join(path); let _ = remove_file(&path); File::create(&path)