Skip to content

Commit fd4dd74

Browse files
timsaucerclaude
andcommitted
build: inherit crate version/edition from workspace; publish datafusion-jni-common
Add [workspace.package] (version, edition, license, repository) to the root manifest and have both crates inherit it via `*.workspace = true`, so a single bump re-versions the workspace in lock step. Make datafusion-jni-common publishable: drop `publish = false` and add a `description` (crates.io requires it). All its dependencies are registry crates, so nothing blocks publish. datafusion-jni stays `publish = false` since it is a JVM-loaded cdylib, not a crates.io library. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3cf0e81 commit fd4dd74

3 files changed

Lines changed: 19 additions & 5 deletions

File tree

‎Cargo.toml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ members = [
2222
"native-common",
2323
]
2424

25+
# Shared package metadata so every crate moves in lock step. Members inherit
26+
# via `version.workspace = true` / `edition.workspace = true` etc.; a single
27+
# bump here re-versions the whole workspace.
28+
[workspace.package]
29+
version = "0.1.0"
30+
edition = "2021"
31+
license = "Apache-2.0"
32+
repository = "https://github.com/apache/datafusion-java"
33+
2534
# Every dependency used by any workspace member is declared here so version
2635
# bumps live in one place and the resolver picks a single version of each
2736
# crate across the workspace. Members reference these via `{ workspace = true }`

‎native-common/Cargo.toml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
[package]
1919
name = "datafusion-jni-common"
20-
version = "0.1.0"
21-
edition = "2021"
22-
publish = false
20+
version.workspace = true
21+
edition.workspace = true
22+
license.workspace = true
23+
repository.workspace = true
24+
description = "Shared JNI plumbing for DataFusion Java native crates: error-to-exception mapping, the per-cdylib Tokio runtime singleton, and the async-stream-to-FFI_ArrowArrayStream bridge."
2325

2426
[features]
2527
# `datafusion-jni` builds DataFusion with `avro`, which adds the

‎native/Cargo.toml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717

1818
[package]
1919
name = "datafusion-jni"
20-
version = "0.1.0"
21-
edition = "2021"
20+
version.workspace = true
21+
edition.workspace = true
22+
license.workspace = true
23+
repository.workspace = true
24+
# cdylib JNI artifact loaded by the JVM, not a crates.io library.
2225
publish = false
2326

2427
[lib]

0 commit comments

Comments
 (0)