From 6d63af8b22ff7474b627e6fd2a1b5fbf4daab26c Mon Sep 17 00:00:00 2001 From: Thomas Antony Date: Tue, 23 May 2023 21:08:44 -0700 Subject: [PATCH 1/4] Add build step to verify that WASM build is working --- .github/workflows/tests.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3db56a8d..80a817e1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -24,10 +24,14 @@ jobs: uses: dtolnay/rust-toolchain@master with: toolchain: stable + targets: wasm32-unknown-unknown - name: Run cargo check run: cargo check + - name: Run cargo check for WASM target + run: cargo check --target wasm32-unknown-unknown + tests: strategy: matrix: From 35f3e8f84e698fd78a87c6f107941f6354c56e3f Mon Sep 17 00:00:00 2001 From: Thomas Antony Date: Tue, 23 May 2023 21:00:25 -0700 Subject: [PATCH 2/4] Update dependencies to allow building for WASM targets --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cca72d05..267584ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,15 +50,16 @@ numpy = {version = "0.17", optional = true} indicatif = {version = "0.17", features = ["rayon"]} rstats = "1.2.50" thiserror = "1.0" -parquet = "39.0.0" +parquet = {version = "39.0.0", default-features = false, features = ["arrow"]} arrow = "39.0.0" -shadow-rs = "0.21.0" +shadow-rs = {version = "0.21.0", default-features = false} serde_yaml = "0.9.21" whoami = "1.3.0" either = {version = "1.8.1", features = ["serde"]} num = "0.4.0" enum-iterator = "1.4.0" rstest = "0.17.0" +getrandom = {version = "0.2", features = ["js"]} [build-dependencies] shadow-rs = "0.21.0" From 9c58f4d031a48d748f4e87c66c84c9e2b3352e53 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 24 May 2023 09:45:53 -0600 Subject: [PATCH 3/4] Update Cargo.toml --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 13720924..1675eb34 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,7 @@ rstats = "1.2.50" thiserror = "1.0" parquet = {version = "40.0.0", default-features = false, features = ["arrow"]} arrow = "40.0.0" +shadow-rs = {version = "0.21.0", default-features = false} serde_yaml = "0.9.21" whoami = "1.3.0" either = {version = "1.8.1", features = ["serde"]} @@ -61,7 +62,7 @@ rstest = "0.17.0" pretty_env_logger = "0.5" [build-dependencies] -shadow-rs = {version = "0.21.0", default-features = false} +shadow-rs = "0.21.0" [features] default = [] From 9e98272a258d3ca9405b3ee514beb9545817ea47 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 24 May 2023 10:26:48 -0600 Subject: [PATCH 4/4] Update Cargo.toml to add brotli feature to parquet --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1675eb34..aa5cc70e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ numpy = {version = "0.17", optional = true} indicatif = {version = "0.17", features = ["rayon"]} rstats = "1.2.50" thiserror = "1.0" -parquet = {version = "40.0.0", default-features = false, features = ["arrow"]} +parquet = {version = "40.0.0", default-features = false, features = ["arrow", "brotli"]} arrow = "40.0.0" shadow-rs = {version = "0.21.0", default-features = false} serde_yaml = "0.9.21"