Cargo.toml
[workspace]
resolver = "3"
members = [
"crates/kleene-sparse",
"crates/kleene-graph",
"crates/kleene-gar",
"crates/kleene-plan",
"crates/kleene-datalog",
"crates/kleene-datalog-macros",
"crates/kleene",
"crates/kleene-cubecl",
"crates/kleene-index",
"crates/kleene-gql",
"crates/kleene-iceberg",
"crates/kleene-datafusion",
"shims/zstd",
]
# The zstd 0.14 face of the shim: a patch, not a member (it shares the name `zstd`).
# kleene-ballista is its own workspace: optional, never in this one's build (it brings Ballista).
exclude = ["shims/zstd-014", "crates/kleene-ballista"]
[workspace.package]
version = "0.5.0"
edition = "2024"
rust-version = "1.95"
license = "MIT OR Apache-2.0"
authors = ["Ignalina ApS (Rickard Ernst Björn Lundin)"]
repository = "https://git.gunnar.rs/nordisk/kleene"
publish = false
[workspace.dependencies]
# Arrow 60 is the major graph-ar, DataFusion 56 and Ballista share.
arrow-array = { version = "60.2", default-features = false }
arrow-buffer = { version = "60.2", default-features = false }
arrow-schema = { version = "60.2", default-features = false }
# The Arrow IPC file reader (already in the tree under DataFusion): a column chunk another
# writer wrote with nulls or a type the mapped reader does not take (kleene-gar).
arrow-ipc = { version = "60.2", default-features = false }
# No default features: those bring compression codecs and parsers written in C. `sql` is
# sqlparser and datafusion-sql (Rust).
datafusion = { version = "56", default-features = false, features = ["sql"] }
async-trait = "0.1"
# The datalog! macro (kleene-datalog-macros): already in the tree under DataFusion.
proc-macro2 = "1"
quote = "1"
syn = { version = "2", default-features = false, features = ["full", "parsing", "printing", "proc-macro"] }
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "macros"] }
# The X.gar reader: Arrow IPC chunks mapped in place, no copy, no C (feature `mapped`).
graphar = { git = "ssh://git@git.gunnar.rs:2222/nordisk/graph-ar", rev = "6cacaa63ad78b054417520bfcb4ea75e486855ed", default-features = false, features = ["mapped"] }
# znippy-zoomies: the home of our faster pure-Rust ports. zoomies-stree = Ragnar Groot
# Koerkamp's static search tree (AVX2/AVX-512, batched, prefetch); `hints` = madvise
# huge pages. rotaryengine = gatling, the all-core engine (never rayon). The root crate
# brings psort, the parallel sample sort of 16-byte records.
zoomies-stree = { git = "ssh://git@git.gunnar.rs:2222/nordisk/znippy-zoomies", rev = "53d082ddeec7e3b6b0e3ff1c8d16dde5fb041f3e", default-features = false, features = ["hints"] }
gatling = { git = "ssh://git@git.gunnar.rs:2222/nordisk/znippy-zoomies", rev = "53d082ddeec7e3b6b0e3ff1c8d16dde5fb041f3e", package = "rotaryengine", default-features = false }
znippy-zoomies = { git = "ssh://git@git.gunnar.rs:2222/nordisk/znippy-zoomies", rev = "53d082ddeec7e3b6b0e3ff1c8d16dde5fb041f3e", default-features = false }
kleene-sparse = { path = "crates/kleene-sparse" }
kleene-graph = { path = "crates/kleene-graph" }
kleene-gar = { path = "crates/kleene-gar" }
kleene-plan = { path = "crates/kleene-plan" }
kleene-datalog = { path = "crates/kleene-datalog" }
kleene-datalog-macros = { path = "crates/kleene-datalog-macros" }
kleene-cubecl = { path = "crates/kleene-cubecl" }
kleene-index = { path = "crates/kleene-index" }
kleene-gql = { path = "crates/kleene-gql" }
kleene-iceberg = { path = "crates/kleene-iceberg" }
kleene-datafusion = { path = "crates/kleene-datafusion" }
# Zstandard in safe Rust: kleene-graph's compact frontiers call it directly (the version and
# features `shims/zstd` uses). No workspace crate names a package `zstd`: in a git source
# cargo finds a path dependency by name, and the repository holds two packages of that name.
mzstd = { version = "0.2.17", default-features = false, features = ["std", "compression", "decompression"] }
# DataFusion 56 turns on arrow-ipc's zstd codec unconditionally; the C binding is replaced by
# mzstd (safe Rust) through this shim, so the build compiles no C.
[patch.crates-io]
zstd = { path = "shims/zstd" }
# arrow 60 asks for zstd 0.14, Avro and Iceberg for 0.13: one shim, two versions (the 0.14
# face re-exports `shims/zstd`; outside the members, two packages cannot share a name there).
zstd014 = { package = "zstd", path = "shims/zstd-014" }
[workspace.lints.rust]
unsafe_code = "deny"
missing_docs = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
[profile.release]
debug = 1
# For measured binaries: `cargo build --profile measured`, `cargo bench --profile measured`
# (whole-program LTO, one codegen unit; bench/native.md has its build time).
[profile.measured]
inherits = "release"
lto = "fat"
codegen-units = 1