We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f3fea commit e582fc9Copy full SHA for e582fc9
build.rs
@@ -134,6 +134,14 @@ fn hashed_filename(path: &Path) -> String {
134
}
135
136
fn make_url_path(url: &str) -> PathBuf {
137
- let filename = url.replace(|c: char| !c.is_ascii_alphanumeric() && c != '.', "_");
138
- Path::new(&std::env::var("OUT_DIR").unwrap()).join(filename)
+ let manifest_dir = env!("CARGO_MANIFEST_DIR");
+ let sqlpage_artefacts = Path::new(&manifest_dir)
139
+ .join("target")
140
+ .join("sqlpage_artefacts");
141
+ std::fs::create_dir_all(&sqlpage_artefacts).unwrap();
142
+ let filename = url.replace(
143
+ |c: char| !c.is_ascii_alphanumeric() && !['.', '-'].contains(&c),
144
+ "_",
145
+ );
146
+ sqlpage_artefacts.join(filename)
147
0 commit comments