Skip to content

Commit

Permalink
feat: add wasm samples (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Apr 3, 2024
1 parent f1d4ad5 commit f465caa
Show file tree
Hide file tree
Showing 52 changed files with 24,028 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
moment.gs
moment.gs
wasm/**
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.DS_Store
node_modules
.gradle
.gradle
**/dist
**/node_modules
**/target
14 changes: 14 additions & 0 deletions wasm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Unleashing the power of Rust, Python, and WebAssembly in Apps Script

This folder is the companion to the talk "Unleashing the power of Rust, Python, and WebAssembly in Apps Script" at Google Cloud Next '24.

## Development

The development of this proof of concept requires a deep understanding of the Apps Script runtime, JavaScript bundlers, the Rust programming language, and the WebAssembly ecosystem. Please note that this is a quickly evolving space, and the tools and techniques used in this project may become outdated quickly.

### Prerequisites

- Node.js - https://nodejs.org/en/download
- Rust - https://www.rust-lang.org/tools/install
- Binaryen (for wasm-opt) - https://github.com/WebAssembly/binaryen

4 changes: 4 additions & 0 deletions wasm/hello-world/.clasp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"scriptId": "1xt1CvoUyFAzfoCdkwCHXBXzu3oaNz2a6iNsPW2GA6rOAsyBv66r4TarA",
"rootDir": "./dist"
}
2 changes: 2 additions & 0 deletions wasm/hello-world/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package-lock.json merge=binary -diff
Cargo.lock merge=binary -diff
5 changes: 5 additions & 0 deletions wasm/hello-world/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/target
/node_modules
/dist
/src/pkg
.wireit
Loading

0 comments on commit f465caa

Please sign in to comment.