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

Chore/wasm removal cleanup #37

Merged
merged 3 commits into from
Jan 7, 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
10 changes: 0 additions & 10 deletions .cargo/config

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
**/*.rs.bk
Cargo.lock
bin/
wasm-pack.log
**/node_modules
**/.DS_Store
.idea
build
tlsn/
zip
wasm/prover/target/
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
1. Check if your [Node.js](https://nodejs.org/) version is >= **18**.
2. Clone this repository.
3. Run `npm install` to install the dependencies.
4. Run `npm run build:wasm`
5. Run `npm run dev`
6. Load your extension on Chrome following:
4. Run `npm run dev`
5. Load your extension on Chrome following:
1. Access `chrome://extensions/`
2. Check `Developer mode`
3. Click on `Load unpacked extension`
4. Select the `build` folder.
7. Happy hacking.
6. Happy hacking.

## Building Websockify Docker Image
```
Expand Down Expand Up @@ -44,6 +43,4 @@ Now, the content of `build` folder will be the extension ready to be submitted t
## Resources:

- [Webpack documentation](https://webpack.js.org/concepts/)
- [Chrome Extension documentation](https://developer.chrome.com/extensions/getstarted)
- [wasm-bindgen-rayon](https://github.com/GoogleChromeLabs/wasm-bindgen-rayon)
- [wasm-unsafe-eval CSP](https://bugs.chromium.org/p/chromium/issues/detail?id=1173354#c60)
- [Chrome Extension documentation](https://developer.chrome.com/extensions/getstarted)
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
},
"scripts": {
"clone:tlsn": "bash ./utils/download-tlsn.sh",
"build:wasm": "wasm-pack build --target web wasm/prover",
"update:wasm": "cargo update --manifest-path wasm/prover/Cargo.toml",
"build": "NODE_ENV=production node utils/build.js",
"build:webpack": "NODE_ENV=production webpack --config webpack.config.js",
"websockify": "docker run -it --rm -p 55688:80 -v $(pwd):/app novnc/websockify 80 --target-config /app/websockify_config",
Expand Down Expand Up @@ -82,7 +80,6 @@
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.2",
"ttlcache": "@types/@isaacs/ttlcache",
"type-fest": "^3.5.2",
"typescript": "^4.9.4",
"webextension-polyfill": "^0.10.0",
Expand All @@ -91,4 +88,4 @@
"webpack-dev-server": "^4.11.1",
"zip-webpack-plugin": "^4.0.1"
}
}
}
5 changes: 0 additions & 5 deletions rust-toolchain

This file was deleted.

22 changes: 0 additions & 22 deletions utils/download-tlsn.sh

This file was deleted.

6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const isDevelopment = process.env.NODE_ENV !== "production";
var options = {
mode: process.env.NODE_ENV || "development",
ignoreWarnings: [
/Circular dependency between chunks with runtime/,
/ResizeObserver loop completed with undelivered notifications/
/Circular dependency between chunks with runtime/,
/ResizeObserver loop completed with undelivered notifications/
],

entry: {
Expand Down Expand Up @@ -209,7 +209,7 @@ var options = {
force: true,
},
{
from: "node_modules/tlsn-js/build/26f00cc36bec9d635c39.wasm",
from: "node_modules/tlsn-js/build/*.wasm",
to: path.join(__dirname, "build"),
force: true,
},
Expand Down
Loading