Skip to content

Instantly share code, notes, and snippets.

@findepi
Last active August 8, 2024 15:11
Show Gist options
  • Save findepi/fcafdbd5498e00bbfab75a8e8972423a to your computer and use it in GitHub Desktop.
Save findepi/fcafdbd5498e00bbfab75a8e8972423a to your computer and use it in GitHub Desktop.

quick build

cargo build

full build

cargo build --all
# TODO does this build the CLI?

all code checks

# check compilation
cargo build --all-targets &&
( cd datafusion-cli && cargo build --all-targets ) &&

# fmt, clippy, taplo, doc
dev/rust_lint.sh && 

echo all checks OK

all code checks (old & UNMAINTAINED)

# check compilation
cargo build --all-targets &&
( cd datafusion-cli && cargo build --all-targets ) &&

# check format
cargo fmt --all &&
( cd datafusion-cli && cargo fmt --all ) &&

# ask clippy
cargo clippy --all-targets --workspace --features avro,pyarrow -- -D warnings &&
( cd datafusion-cli && cargo clippy --all-targets --all-features -- -D warnings ) &&

# check docs and compile example in docs
RUSTDOCFLAGS="-D warnings -A rustdoc::private-intra-doc-links" \
  cargo doc --document-private-items --no-deps --workspace &&
( cd datafusion-cli && \
  RUSTDOCFLAGS="-D warnings -A rustdoc::private-intra-doc-links" \
    cargo doc --document-private-items --no-deps ) &&

echo all checks OK

all tests

# doc tests
cargo test --doc --features avro,json
( cd datafusion-cli && cargo test --doc --all-features ) &&

# tests
( ulimit -n 2048 && RUST_BACKTRACE=1 cargo test --lib --tests --bins --features avro,json,backtrace ) &&
( cd datafusion-cli && cargo test --lib --tests --bins --all-features ) &&

echo all tests OK

plan tests

cargo test --test sqllogictests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment