From 890dbdaa3991cd1b962436830488648c2ae96682 Mon Sep 17 00:00:00 2001 From: stoically Date: Tue, 12 May 2020 15:42:50 +0200 Subject: [PATCH] examples: Rename to wasm_command_bot and add note about encryption --- .travis.yml | 2 +- .../{wasm_send_message => wasm_command_bot}/.gitignore | 0 .../{wasm_send_message => wasm_command_bot}/Cargo.toml | 0 .../examples/{wasm_send_message => wasm_command_bot}/README.md | 3 +-- .../examples/{wasm_send_message => wasm_command_bot}/index.js | 0 .../{wasm_send_message => wasm_command_bot}/package.json | 0 .../{wasm_send_message => wasm_command_bot}/src/lib.rs | 0 .../{wasm_send_message => wasm_command_bot}/webpack.config.js | 0 8 files changed, 2 insertions(+), 3 deletions(-) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/.gitignore (100%) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/Cargo.toml (100%) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/README.md (64%) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/index.js (100%) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/package.json (100%) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/src/lib.rs (100%) rename matrix_sdk/examples/{wasm_send_message => wasm_command_bot}/webpack.config.js (100%) diff --git a/.travis.yml b/.travis.yml index ebb54d65..7a911250 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ jobs: script: - | source emsdk-master/emsdk_env.sh - cd matrix_sdk/examples/wasm_send_message + cd matrix_sdk/examples/wasm_command_bot cargo build --target wasm32-unknown-unknown cd - diff --git a/matrix_sdk/examples/wasm_send_message/.gitignore b/matrix_sdk/examples/wasm_command_bot/.gitignore similarity index 100% rename from matrix_sdk/examples/wasm_send_message/.gitignore rename to matrix_sdk/examples/wasm_command_bot/.gitignore diff --git a/matrix_sdk/examples/wasm_send_message/Cargo.toml b/matrix_sdk/examples/wasm_command_bot/Cargo.toml similarity index 100% rename from matrix_sdk/examples/wasm_send_message/Cargo.toml rename to matrix_sdk/examples/wasm_command_bot/Cargo.toml diff --git a/matrix_sdk/examples/wasm_send_message/README.md b/matrix_sdk/examples/wasm_command_bot/README.md similarity index 64% rename from matrix_sdk/examples/wasm_send_message/README.md rename to matrix_sdk/examples/wasm_command_bot/README.md index 84d7d87a..49d1c688 100644 --- a/matrix_sdk/examples/wasm_send_message/README.md +++ b/matrix_sdk/examples/wasm_command_bot/README.md @@ -1,7 +1,5 @@ ## Example usage of matrix-rust-sdk from WASM -This requires [emscripten](https://github.com/emscripten-core/emscripten) to be installed and in PATH to compile successfully. - You can build the example locally with: npm install @@ -9,5 +7,6 @@ You can build the example locally with: and then visiting http://localhost:8080 in a browser should run the example! +Note: Encryption isn't supported yet This example is loosely based off of [this example](https://github.com/seanmonstar/reqwest/tree/master/examples/wasm_github_fetch), an example usage of `fetch` from `wasm-bindgen`. \ No newline at end of file diff --git a/matrix_sdk/examples/wasm_send_message/index.js b/matrix_sdk/examples/wasm_command_bot/index.js similarity index 100% rename from matrix_sdk/examples/wasm_send_message/index.js rename to matrix_sdk/examples/wasm_command_bot/index.js diff --git a/matrix_sdk/examples/wasm_send_message/package.json b/matrix_sdk/examples/wasm_command_bot/package.json similarity index 100% rename from matrix_sdk/examples/wasm_send_message/package.json rename to matrix_sdk/examples/wasm_command_bot/package.json diff --git a/matrix_sdk/examples/wasm_send_message/src/lib.rs b/matrix_sdk/examples/wasm_command_bot/src/lib.rs similarity index 100% rename from matrix_sdk/examples/wasm_send_message/src/lib.rs rename to matrix_sdk/examples/wasm_command_bot/src/lib.rs diff --git a/matrix_sdk/examples/wasm_send_message/webpack.config.js b/matrix_sdk/examples/wasm_command_bot/webpack.config.js similarity index 100% rename from matrix_sdk/examples/wasm_send_message/webpack.config.js rename to matrix_sdk/examples/wasm_command_bot/webpack.config.js