File tree 2 files changed +16
-1
lines changed
wrappers/src/fdw/wasm_fdw
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Wasm Foreign Data Wrapper
2
+
3
+ This is Wasm foreign data wrapper host, please visit each Wasm foreign data wrapper documentation.
4
+
5
+ ## Changelog
6
+
7
+ | Version | Date | Notes |
8
+ | ------- | ---------- | ---------------------------------------------------- |
9
+ | 0.1.1 | 2024-07-05 | Fix missing wasm package cache dir issue |
10
+ | 0.1.0 | 2024-07-03 | Initial version |
11
+
Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ fn download_component(
86
86
// download component wasm from remote and save it to local cache
87
87
let resp = rt. block_on ( reqwest:: get ( url) ) ?;
88
88
let bytes = rt. block_on ( resp. bytes ( ) ) ?;
89
+ if let Some ( parent) = path. parent ( ) {
90
+ // create all parent directories if they do not exist
91
+ fs:: create_dir_all ( parent) ?;
92
+ }
89
93
fs:: write ( & path, bytes) ?;
90
94
}
91
95
@@ -97,7 +101,7 @@ fn download_component(
97
101
}
98
102
99
103
#[ wrappers_fdw(
100
- version = "0.1.0 " ,
104
+ version = "0.1.1 " ,
101
105
author = "Supabase" ,
102
106
website = "https://github.com/supabase/wrappers/tree/main/wrappers/src/fdw/wasm_fdw" ,
103
107
error_type = "WasmFdwError"
You can’t perform that action at this time.
0 commit comments