Skip to content

Commit

Permalink
grunt: remove rust/ folder and change core/ to crates/ (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrusso8 authored Oct 25, 2024
1 parent 8e622e8 commit 5b3dce0
Show file tree
Hide file tree
Showing 37 changed files with 12 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ jobs:
run: docker compose up -d

- name: Run tests
run: cargo test -p spark-connect-core --features polars,datafusion
run: cargo test -p spark-connect-rs --features polars,datafusion
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
echo "Cargo metadata has version set to ${CURR_VER}, but got pushed tag ${PUSHED_TAG}."
exit 1
fi
working-directory: ./core
working-directory: ./crates

release-crate:
needs: validate-release-tag
Expand All @@ -38,14 +38,6 @@ jobs:
with:
version: 23.x

- name: cargo publish core
uses: actions-rs/cargo@v1
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
with:
command: publish
args: --token "${CARGO_REGISTRY_TOKEN}" --package spark-connect-core --manifest-path ./Cargo.toml

- name: cargo publish rust
uses: actions-rs/cargo@v1
env:
Expand Down
10 changes: 1 addition & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["core", "rust", "examples"]
members = ["crates/*", "examples"]
resolver = "2"

[workspace.package]
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ The `spark-connect-rs` aims to provide an entrypoint to [Spark Connect](https://
## Project Layout

```
├── core <- core implementation in Rust
│ └─ protobuf <- connect protobuf for apache/spark
├── rust <- shim for 'spark-connect-rs' from core
├── examples <- examples of using different aspects of the crate
├── datasets <- sample files from the main spark repo
├── crates <- crates for the implementation of the client side spark-connect bindings
│ └─ connect <- crate for 'spark-connect-rs'
└─ protobuf <- connect protobuf for apache/spark
├── examples <- examples of using different aspects of the crate
├── datasets <- sample files from the main spark repo
```

Future state would be to have additional bindings for other languages along side the top level `rust` folder.
Future state would be to have additional crates that allow for easier creation of other language bindings.

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml → crates/connect/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "spark-connect-core"
name = "spark-connect-rs"
version = "0.0.1-beta.5"
authors.workspace = true
keywords.workspace = true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ path = "src/databricks.rs"
required-feature = ["tls"]

[dependencies]
spark-connect-rs = { version = "0.0.1-beta.5", path = "../rust" }
spark-connect-rs = { version = "0.0.1-beta.5", path = "../crates/connect" }
tokio = { workspace = true, features = ["rt-multi-thread"] }

[features]
Expand Down
25 changes: 0 additions & 25 deletions rust/Cargo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions rust/src/lib.rs

This file was deleted.

0 comments on commit 5b3dce0

Please sign in to comment.