aboutsummaryrefslogtreecommitdiffstats
path: root/site
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-30 10:07:53 -0500
committerbrian cully <bjc@spork.org>2025-12-30 10:07:53 -0500
commit0b78d8154e8644f69d5399c276c4c2a6feb4c5b5 (patch)
treec7839f26948cf974d1843c1e5da89de965271cf2 /site
parentb2fe275aa4486cfcb54e8149878402f64b0c84dd (diff)
downloadpolyring-0b78d8154e8644f69d5399c276c4c2a6feb4c5b5.tar.gz
polyring-0b78d8154e8644f69d5399c276c4c2a6feb4c5b5.zip
rename wasm impl to rust
we may have more than one wasm compiler?
Diffstat (limited to 'site')
-rw-r--r--site/main.mjs6
-rw-r--r--site/rust.mjs2
-rw-r--r--site/wasm.mjs2
3 files changed, 5 insertions, 5 deletions
diff --git a/site/main.mjs b/site/main.mjs
index 1457958..e1760e9 100644
--- a/site/main.mjs
+++ b/site/main.mjs
@@ -1,8 +1,8 @@
let type = 'pure';
-let alts = ['wasm'];
+let alts = ['rust'];
switch (self.location.search) {
-case '?wasm':
- type = 'wasm';
+case '?rust':
+ type = 'rust';
alts = ['pure'];
break;
}
diff --git a/site/rust.mjs b/site/rust.mjs
new file mode 100644
index 0000000..200525b
--- /dev/null
+++ b/site/rust.mjs
@@ -0,0 +1,2 @@
+import init from './rust/polyring.js';
+export default init;
diff --git a/site/wasm.mjs b/site/wasm.mjs
deleted file mode 100644
index e11f642..0000000
--- a/site/wasm.mjs
+++ /dev/null
@@ -1,2 +0,0 @@
-import init from './wasm/polyring.js';
-export default init;