tree: d7791bdf0dde1620a7d13f0ef2cbbcfccc1879f4 [path history] [tgz]
  1. src/
  2. .gitignore
  3. Cargo.toml
  4. README.md
  5. webdriver.json
core/edge/s3_read_on_wasm/README.md

S3 Read on WASM

This test is used to ensure opendal can run on WASM target.

Setup

Start the S3 server at http://127.0.0.1:9900

We are using the following config values, please feel free to change based on your own needs.

let mut cfg = S3::default();
cfg.endpoint("http://127.0.0.1:9900");
cfg.access_key_id("minioadmin");
cfg.secret_access_key("minioadmin");
cfg.bucket("opendal");
cfg.region("us-east-1");

Install

cargo install wasm-pack

Build

wasm-pack build

Test

NOTE:

  • You need to have Chrome installed.
  • We can't run on node.js yet.
  • We can't run on headless chrome yet.
wasm-pack test --chrome