Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add wasm samples #448

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading