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:
332
332
export CARGO_HOME="/github/home/.cargo"
333
333
export CARGO_TARGET_DIR="/github/home/target"
334
334
cd arrow
335
- cargo build --target wasm32-unknown-unknown
335
+ cargo build --features=js -- target wasm32-unknown-unknown
336
336
337
337
# test builds with various feature flags
338
338
default-build :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ indexmap = "1.6"
43
43
rand = { version = " 0.8" , default-features = false }
44
44
# getrandom is a dependency of rand, not (directly) of arrow
45
45
# need to specify `js` feature to build on wasm
46
- getrandom = { version = " 0.2" , features = [ " js " ] }
46
+ getrandom = { version = " 0.2" , optional = true }
47
47
num = " 0.4"
48
48
csv_crate = { version = " 1.1" , optional = true , package =" csv" }
49
49
regex = " 1.3"
@@ -64,6 +64,7 @@ csv = ["csv_crate"]
64
64
ipc = [" flatbuffers" ]
65
65
simd = [" packed_simd" ]
66
66
prettyprint = [" prettytable-rs" ]
67
+ js = [" getrandom/js" ]
67
68
# The test utils feature enables code used in benchmarks and tests but
68
69
# not the core arrow code itself
69
70
test_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:
30
30
- ` csv ` (default) - support for reading and writing Arrow arrays to/from csv files
31
31
- ` ipc ` (default) - support for the [ arrow-flight] ((https://crates.io/crates/arrow-flight ) IPC and wire format
32
32
- ` prettyprint ` - support for formatting record batches as textual columns
33
+ - ` js ` - support for building arrow for WebAssembly / JavaScript
33
34
- ` simd ` - (_ Requires Nightly Rust_ ) alternate optimized
34
35
implementations of some [ compute] ( https://github.com/apache/arrow/tree/master/rust/arrow/src/compute )
35
36
kernels using explicit SIMD processor intrinsics.
You can’t perform that action at this time.
0 commit comments