Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Add release workflow for Rust #327

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ changelogPolicy: auto
targets:
- name: github
- name: pypi
- name: crates
- name: sentry-pypi
internalPypiRepo: getsentry/pypi
6 changes: 3 additions & 3 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout code
- name: Run linter
run: cd rust-arroyo && cargo check && cargo fmt --check
- run: cargo check
- run: cargo fmt --check

test:
name: "Tests"
Expand All @@ -29,4 +29,4 @@ jobs:
- name: Run Zookeeper and Kafka
run: sh scripts/run-kafka.sh
- name: Run tests
run: cd rust-arroyo && cargo test
run: cargo test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
.DS_Store
.tox
.benchmarks/
.idea/
.idea/
target/
/Cargo.lock
17 changes: 16 additions & 1 deletion rust-arroyo/Cargo.toml → Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[package]
name = "rust_arroyo"
version = "0.1.0"
version = "2.15.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
path = "rust-arroyo/src/lib.rs"

[dependencies]
chrono = "0.4.26"
coarsetime = "0.1.33"
Expand All @@ -25,3 +28,15 @@ tracing-subscriber = "0.3.18"

[patch.crates-io]
rdkafka = { git = "https://github.com/fede1024/rust-rdkafka" }

[[example]]
name = "base_processor"
path = "rust-arroyo/examples/base_processor.rs"

[[example]]
name = "transform_and_produce"
path = "rust-arroyo/examples/transform_and_produce.rs"

[[example]]
name = "base_consumer"
path = "rust-arroyo/examples/base_consumer.rs"
1 change: 1 addition & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ function replace() {
}

replace "version=\"[0-9.]+\"" "version=\"$NEW_VERSION\"" ./setup.py
replace "^version = \".*?\"" "version = \"$NEW_VERSION\"" Cargo.toml
Loading