1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Merge pull request #1213 from Zokrates/fix-build-script

Fix zokrates_js build script, filter .zok files
This commit is contained in:
Thibaut Schaeffer 2022-08-24 12:50:07 +02:00 committed by GitHub
commit 307bbac0e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,9 @@ fn export_stdlib() {
for entry in WalkDir::new(root)
.into_iter()
.map(Result::unwrap)
.filter(|e| !e.file_type().is_dir())
.filter(|e| {
!e.file_type().is_dir() && e.path().extension().map(|e| e == "zok").unwrap_or(false)
})
{
let path: &Path = entry.path();
let source = fs::read_to_string(path).unwrap();