File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ jobs:
332332 export CARGO_HOME="/github/home/.cargo"
333333 export CARGO_TARGET_DIR="/github/home/target"
334334 cd arrow
335- cargo build --target wasm32-unknown-unknown
335+ cargo build --features=js -- target wasm32-unknown-unknown
336336
337337 # test builds with various feature flags
338338 default-build :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ indexmap = "1.6"
4343rand = { version = " 0.8" , default-features = false }
4444# getrandom is a dependency of rand, not (directly) of arrow
4545# need to specify `js` feature to build on wasm
46- getrandom = { version = " 0.2" , features = [ " js " ] }
46+ getrandom = { version = " 0.2" , optional = true }
4747num = " 0.4"
4848csv_crate = { version = " 1.1" , optional = true , package =" csv" }
4949regex = " 1.3"
@@ -64,6 +64,7 @@ csv = ["csv_crate"]
6464ipc = [" flatbuffers" ]
6565simd = [" packed_simd" ]
6666prettyprint = [" prettytable-rs" ]
67+ js = [" getrandom/js" ]
6768# The test utils feature enables code used in benchmarks and tests but
6869# not the core arrow code itself
6970test_utils = [" rand/std" , " rand/std_rng" ]
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ The arrow crate provides the following optional features:
3030- ` csv ` (default) - support for reading and writing Arrow arrays to/from csv files
3131- ` ipc ` (default) - support for the [ arrow-flight] ((https://crates.io/crates/arrow-flight ) IPC and wire format
3232- ` prettyprint ` - support for formatting record batches as textual columns
33+ - ` js ` - support for building arrow for WebAssembly / JavaScript
3334- ` simd ` - (_ Requires Nightly Rust_ ) alternate optimized
3435 implementations of some [ compute] ( https://github.com/apache/arrow/tree/master/rust/arrow/src/compute )
3536 kernels using explicit SIMD processor intrinsics.
You can’t perform that action at this time.
0 commit comments