This crate contains the official Native Rust implementation of Apache Arrow in memory format. Please see the API documents for additional details.
The arrow crate provides the following optional features:
csv
(default) - support for reading and writing Arrow arrays to/from csv filesipc
(default) - support for the [arrow-flight]((https://crates.io/crates/arrow-flight) IPC and wire formatprettyprint
- support for formatting record batches as textual columnsjs
- support for building arrow for WebAssembly / JavaScriptsimd
- (Requires Nightly Rust) alternate optimized implementations of some compute kernels using explicit SIMD processor intrinsics.
In order to compile Arrow for Web Assembly (the wasm32-unknown-unknown
WASM target), you will likely need to turn off this crate's default features and use the js
feature.
[dependencies]
arrow = {version = "5.0" default-features = false, features = ["js"] }
The examples folder shows how to construct some different types of Arrow arrays, including dynamic arrays:
Examples can be run using the cargo run --example
command. For example:
cargo run --example builders
cargo run --example dynamic_types
cargo run --example read_csv