mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore(docs): Added a guide on using wasm modules in Edge Functions (#32811)
* chore(docs): Added a guide on using wasm modules in Edge Functions * update example * WASM -> Wasm * fix page title
This commit is contained in:
1 parent
cdb95a6036
commit
e63a082dda
4 files changed
+93
-2
No files matched your search
@@ -75,4 +75,4 @@ objects_path = "./buckets/images"
|
||||
import_map = "./functions/import_map.json"
|
||||
|
||||
[functions.wasm-modules]
|
||||
static_files = [ "./functions/wasm-modules/add-wasm/pkg/add_wasm_bg.wasm"]
|
||||
static_files = [ "./functions/wasm-modules/add-wasm/pkg/*.wasm"]
|
||||
@@ -2,5 +2,5 @@ use wasm_bindgen::prelude::*;
|
||||
|
||||
#[wasm_bindgen]
|
||||
pub fn add(a: u32, b: u32) -> u32 {
|
||||
a + b + 100
|
||||
a + b
|
||||
}
|
||||
Reference in new issue
Block a user