This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 6a7d501fb chore(rust): publish driver crates (#2480)
6a7d501fb is described below

commit 6a7d501fb26ee382929deb963086fe0bf97bd148
Author: Matthijs Brobbel <m1brob...@gmail.com>
AuthorDate: Thu Jan 23 04:22:24 2025 +0100

    chore(rust): publish driver crates (#2480)
    
    Closes #2477.
---
 dev/release/post-08-rust.sh       | 6 +++++-
 dev/release/utils-prepare.sh      | 5 ++++-
 rust/Cargo.lock                   | 8 ++++----
 rust/Cargo.toml                   | 2 +-
 rust/driver/datafusion/Cargo.toml | 2 +-
 rust/driver/snowflake/Cargo.toml  | 2 +-
 6 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/dev/release/post-08-rust.sh b/dev/release/post-08-rust.sh
index e31427d5b..437e3d940 100755
--- a/dev/release/post-08-rust.sh
+++ b/dev/release/post-08-rust.sh
@@ -42,10 +42,14 @@ main() {
 
   pushd "${SOURCE_TOP_DIR}/rust"
   cargo publish --all-features -p adbc_core
+  cargo publish --all-features -p adbc_datafusion
+  cargo publish --all-features -p adbc_snowflake
   popd
 
-  echo "Success! The released Cargo crate is available here:"
+  echo "Success! The released Cargo crates are available here:"
   echo "  https://crates.io/crates/adbc_core";
+  echo "  https://crates.io/crates/adbc_datafusion";
+  echo "  https://crates.io/crates/adbc_snowflake";
 }
 
 main "$@"
diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh
index 43292d377..cb65be236 100644
--- a/dev/release/utils-prepare.sh
+++ b/dev/release/utils-prepare.sh
@@ -119,7 +119,10 @@ update_versions() {
     git add "${desc_file}"
   done
 
-  sed -i.bak -E "s/^version = \".+\"/version = \"${rust_version}\"/" 
"${ADBC_DIR}/rust/Cargo.toml"
+  sed -i.bak -E \
+    -e "s/^version = \".+\"/version = \"${rust_version}\"/" \
+    -e "s/^adbc_core = { path = \".\/core\", version = \".+\"/adbc_core = { 
path = \".\/core\", version = \"${rust_version}\"/" \
+    "${ADBC_DIR}/rust/Cargo.toml"
   rm "${ADBC_DIR}/rust/Cargo.toml.bak"
   git add "${ADBC_DIR}/rust/Cargo.toml"
 
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 36cb7c5f9..09ddcde24 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -4,7 +4,7 @@ version = 3
 
 [[package]]
 name = "adbc_core"
-version = "0.16.0"
+version = "0.17.0"
 dependencies = [
  "arrow-array",
  "arrow-schema",
@@ -14,7 +14,7 @@ dependencies = [
 
 [[package]]
 name = "adbc_datafusion"
-version = "0.16.0"
+version = "0.17.0"
 dependencies = [
  "adbc_core",
  "arrow-array",
@@ -29,7 +29,7 @@ dependencies = [
 
 [[package]]
 name = "adbc_dummy"
-version = "0.16.0"
+version = "0.17.0"
 dependencies = [
  "adbc_core",
  "arrow-array",
@@ -40,7 +40,7 @@ dependencies = [
 
 [[package]]
 name = "adbc_snowflake"
-version = "0.16.0"
+version = "0.17.0"
 dependencies = [
  "adbc_core",
  "arrow-array",
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index cff486b72..d2eb881ed 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -34,7 +34,7 @@ keywords = ["arrow"]
 categories = ["database"]
 
 [workspace.dependencies]
-adbc_core = { path = "./core" }
+adbc_core = { path = "./core", version = "0.17.0" }
 arrow-array = { version = "53.4.0", default-features = false, features = [
     "ffi",
 ] }
diff --git a/rust/driver/datafusion/Cargo.toml 
b/rust/driver/datafusion/Cargo.toml
index 414e0d02a..c11696129 100644
--- a/rust/driver/datafusion/Cargo.toml
+++ b/rust/driver/datafusion/Cargo.toml
@@ -31,7 +31,7 @@ keywords.workspace = true
 categories.workspace = true
 
 [dependencies]
-adbc_core = { path = "../../core" }
+adbc_core.workspace = true
 arrow-array.workspace = true
 arrow-buffer.workspace = true
 arrow-schema.workspace = true
diff --git a/rust/driver/snowflake/Cargo.toml b/rust/driver/snowflake/Cargo.toml
index 6ba51f15c..84ec923b0 100644
--- a/rust/driver/snowflake/Cargo.toml
+++ b/rust/driver/snowflake/Cargo.toml
@@ -42,7 +42,7 @@ env = ["dep:regex"]
 dotenv = ["env", "dep:dotenvy"]
 
 [dependencies]
-adbc_core = { path = "../../core", features = ["driver_manager"] }
+adbc_core = { workspace = true, features = ["driver_manager"] }
 arrow-array.workspace = true
 arrow-schema.workspace = true
 dotenvy = { version = "0.15.7", default-features = false, optional = true }

Reply via email to