This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/sedona-db.git
The following commit(s) were added to refs/heads/main by this push:
new 54b02888 chore(r/sedonadb): Ignore gpu crate when building R tarball
(#764)
54b02888 is described below
commit 54b028883becb9218596908e0cd5959d16831fbb
Author: Dewey Dunnington <[email protected]>
AuthorDate: Wed Apr 15 21:15:58 2026 -0500
chore(r/sedonadb): Ignore gpu crate when building R tarball (#764)
---
r/sedonadb/bootstrap.R | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/r/sedonadb/bootstrap.R b/r/sedonadb/bootstrap.R
index 6a93919e..09d7f184 100644
--- a/r/sedonadb/bootstrap.R
+++ b/r/sedonadb/bootstrap.R
@@ -42,6 +42,7 @@ file.copy(
# Remove unused libgpuspatial crate
unlink("src/c/sedona-libgpuspatial", recursive = TRUE)
+unlink("src/rust/sedona-spatial-join-gpu", recursive = TRUE)
# Other unused files
unlink("src/c/.clang-format")
@@ -54,5 +55,14 @@ lines <- gsub("r/sedonadb/src/rust", "rust", lines, fixed =
TRUE)
# remove unnecessary workspace members
lines <- gsub('"python/sedonadb",', "", lines, fixed = TRUE)
lines <- gsub('"sedona-cli",', "", lines, fixed = TRUE)
-lines <- gsub('"c/sedona-libgpuspatial",', "", lines, fixed = TRUE)
+# remove GPU-related lines (members and workspace dependencies)
+lines <- lines[!grepl("sedona-spatial-join-gpu", lines, fixed = TRUE)]
+lines <- lines[!grepl("sedona-libgpuspatial", lines, fixed = TRUE)]
writeLines(lines, top_cargo_toml)
+
+# Remove GPU-related feature and dependency from sedona crate
+sedona_cargo_toml <- "src/rust/sedona/Cargo.toml"
+lines <- readLines(sedona_cargo_toml)
+# remove gpu feature and sedona-spatial-join-gpu dependency lines
+lines <- lines[!grepl("sedona-spatial-join-gpu", lines, fixed = TRUE)]
+writeLines(lines, sedona_cargo_toml)