Skip to content
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
5 changes: 1 addition & 4 deletions .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@ on:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/ci-rust
IMAGE_NAME_VERSION: "0.1.0"

jobs:
check:
runs-on: ubuntu-latest
if: github.ref_type != 'tag'
container:
image: ghcr.io/${{ github.repository }}/ci-rust:1.0.0
image: ghcr.io/bitshock-src/switchgear/ci-rust:1.0.0
options: -v /var/run/docker.sock:/var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

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

23 changes: 16 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ members = [

resolver = "2"

[workspace.package]
version = "0.1.15"

[workspace.dependencies]
switchgear-pingora = { version = "0.1.15", path = "pingora" }
switchgear-service = { version = "0.1.15", path = "service" }
switchgear-migration = { version = "0.1.15", path = "migration" }
switchgear-testing = { version = "0.1.15", path = "testing" }


[profile.release]
lto = true
Expand All @@ -19,10 +28,10 @@ strip = true


[patch.crates-io]
sqlx = { git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx-core ={ git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx-macros = { git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx-macros-core = { git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx-mysql = { git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx-postgres = { git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx-sqlite = { git = "https://github.com/bitshock-src/sqlx.git", branch = "issues-960-v0.8.6" }
sqlx = { git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
sqlx-core ={ git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
sqlx-macros = { git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
sqlx-macros-core = { git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
sqlx-mysql = { git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
sqlx-postgres = { git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
sqlx-sqlite = { git = "https://github.com/bitshock-src/sqlx.git", tag = "rustls-native-certs-aws-lc-rs" }
2 changes: 1 addition & 1 deletion migration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchgear-migration"
version = "0.1.15"
version.workspace = true
edition = "2021"
authors = ["Bitshock <info@bitshock.com>"]
description = "Database migrations for Switchgear LNURL load balancer"
Expand Down
4 changes: 2 additions & 2 deletions pingora/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchgear-pingora"
version = "0.1.15"
version.workspace = true
edition = "2021"
authors = ["Bitshock <info@bitshock.com>"]
description = "Pingora-based load balancer implementation for Switchgear LNURL payment infrastructure"
Expand All @@ -18,7 +18,7 @@ async-trait = "0.1"
axum = { version = "0.8", features = ["macros"] }
backoff = { version = "0.4", features = ["tokio"] }
chrono = { version = "0.4", features = ["serde"] }
switchgear-service = { version = "0.1.7", path = "../service" }
switchgear-service.workspace = true
log = "0.4"
pingora-core = { version = "0.6", default-features = false }
pingora-error = { version = "0.6", default-features = false }
Expand Down
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "1.91.1"
profile = "minimal"
components = ["rustfmt", "clippy"]
8 changes: 4 additions & 4 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchgear-server"
version = "0.1.15"
version.workspace = true
edition = "2021"
authors = ["Bitshock <info@bitshock.com>"]
description = "High availability LNURL load balancer server for enterprise Bitcoin Lightning payment providers"
Expand Down Expand Up @@ -37,16 +37,16 @@ shellexpand = "3.1"
signal-hook = "0.3"
signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
simplelog = {version = "0.12", features = ["paris"] }
switchgear-pingora = { version = "0.1.7",path = "../pingora" }
switchgear-service = { version = "0.1.7",path = "../service" }
switchgear-pingora.workspace = true
switchgear-service.workspace = true
tokio = { version = "1", features = ["full"] }
url = { version = "2.5", features = ["serde"] }
uuid = { version = "1.18", features = ["v4", "serde"] }

[dev-dependencies]
chrono = { version = "0.4", features = ["serde"] }
lightning-invoice = { version = "0.33", features = ["serde", "std"] }
switchgear-testing = { version = "0.1.7", path = "../testing" }
switchgear-testing.workspace = true
rcgen = { version = "0.14", default-features = false, features = ["crypto", "aws_lc_rs", "pem"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-native-roots-no-provider"] }
serde-saphyr = "0.0.10"
Expand Down
8 changes: 4 additions & 4 deletions service/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchgear-service"
version = "0.1.15"
version.workspace = true
edition = "2021"
authors = ["Bitshock <info@bitshock.com>"]
description = "Service layer and API implementations for Switchgear LNURL load balancer"
Expand Down Expand Up @@ -40,8 +40,8 @@ secp256k1 = { version = "0.31", features = ["recovery", "serde"] }
serde = "1.0"
serde_json = "1.0"
sha2 = "0.10"
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "tls-rustls-no-provider-native-roots", "sqlite", "postgres", "mysql"] }
switchgear-migration = { version = "0.1.7", path = "../migration" }
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "tls-rustls-aws-lc-rs", "sqlite", "postgres", "mysql"] }
switchgear-migration.workspace = true
tempfile = "3.23"
thiserror = "2.0"
tokio = { version = "1", features = ["full"] }
Expand All @@ -67,4 +67,4 @@ rand = "0.8"
rqrr = "0.10"
rustls = { version = "0.23", features = ["aws-lc-rs"] }
secp256k1_0_29 = { package = "secp256k1", version = "0.29", features = ["recovery", "serde"] }
switchgear-testing = { version = "0.1.7", path = "../testing" }
switchgear-testing.workspace = true
2 changes: 1 addition & 1 deletion switchgear/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchgear"
version = "0.1.15"
version.workspace = true
edition = "2021"
authors = ["Bitshock <info@bitshock.com>"]
description = "High availability LNURL load balancer server for enterprise Bitcoin Lightning payment providers"
Expand Down
4 changes: 2 additions & 2 deletions testing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "switchgear-testing"
version = "0.1.15"
version.workspace = true
edition = "2021"
authors = ["Bitshock <info@bitshock.com>"]
description = "CI Integration Testing Framework for Switchgear"
Expand All @@ -22,4 +22,4 @@ tar = "0.4"
tempfile = "3.23"
ureq = { version = "3.1", default-features = false }
tokio = { version = "1", features = ["full"] }
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "tls-rustls-no-provider-native-roots", "sqlite", "postgres", "mysql"] }
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "tls-rustls-aws-lc-rs", "sqlite", "postgres", "mysql"] }