Skip to content

Commit b44beee

Browse files
authored
feat: client rustls support (#12)
1 parent 7dcd84a commit b44beee

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,18 @@ jobs:
7878
with:
7979
github_token: ${{ secrets.github_token }}
8080
locale: "US"
81+
82+
cocogitto:
83+
name: cocogitto
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/checkout@v3
87+
with:
88+
fetch-depth: 0
89+
ref: ${{ github.event.pull_request.head.sha }}
90+
91+
- name: "Conventional commit check"
92+
uses: cocogitto/cocogitto-action@v3
93+
with:
94+
check: true
95+
check-latest-tag-only: true

relay_client/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ name = "relay_client"
33
version = "0.1.0"
44
edition = "2021"
55

6+
[features]
7+
default = ["tokio-tungstenite/native-tls"]
8+
rustls = ["tokio-tungstenite/rustls-tls-native-roots"]
9+
610
[dependencies]
711
relay_rpc = { path = "../relay_rpc" }
812
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
913
thiserror = "1.0"
1014
tokio = { version = "1.22", features = ["rt", "time", "sync", "macros", "rt-multi-thread"] }
11-
tokio-tungstenite = { version = "0.17", features = ["connect", "native-tls"] }
15+
tokio-tungstenite = "0.18"
1216
serde = { version = "1.0", features = ["derive"] }
1317
serde_json = "1.0"
1418
serde_qs = "0.10"

0 commit comments

Comments
 (0)