From 5ff5cf77e66f8d43bfa8a3efc3bbdbc9a1c0a78c Mon Sep 17 00:00:00 2001 From: yanglongwei Date: Wed, 2 Sep 2026 15:34:45 +0000 Subject: [PATCH] Add ARROW_VERSION const to arrow-array Expose the crate version the same way the top-level arrow crate does, so dependents that only use arrow-array (e.g. Rust ADBC drivers) can report DriverArrowVersion without invoking cargo metadata at build time. --- arrow-array/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arrow-array/src/lib.rs b/arrow-array/src/lib.rs index a5f9bf5e711c..e826a0e9bc46 100644 --- a/arrow-array/src/lib.rs +++ b/arrow-array/src/lib.rs @@ -229,6 +229,9 @@ #![deny(rustdoc::broken_intra_doc_links)] #![warn(missing_docs)] +/// Arrow crate version +pub const ARROW_VERSION: &str = env!("CARGO_PKG_VERSION"); + pub mod array; pub use array::*;