Skip to content

Commit 7d25643

Browse files
committed
Bump all dep versions, update readme
1 parent c0476d9 commit 7d25643

File tree

4 files changed

+44
-49
lines changed

4 files changed

+44
-49
lines changed

README.md

+15-20
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ Brings the protobuf-based [Connect-Web RPC
44
framework](https://connect.build/docs/introduction) to Rust via idiomatic
55
[Axum](https://github.com/tokio-rs/axum).
66

7-
# Axum Version
8-
9-
- `axum-connect:0.4` works with `axum:0.8`
10-
- `axum-connect:0.3` works with `axum:0.7`
11-
- `axum-connect:0.2` works with `axum:0.6`
12-
137
# Features 🔍
148

159
- Integrates into existing Axum HTTP applications seamlessly
@@ -29,16 +23,6 @@ framework](https://connect.build/docs/introduction) to Rust via idiomatic
2923
- All the other amazing benefits that come with Axum, like the community,
3024
documentation and performance!
3125

32-
# Caution ⚠️
33-
34-
We use `axum-connect` in production, but I don't kow that anyone with more sense
35-
does. It's written in Rust which obviously offers some amazing compiler
36-
guarantees, but it's not well tested or battle-proven yet. Do what you will with
37-
that information.
38-
39-
Please let me know if you're using `axum-connect`! And open issues if you find a
40-
bug.
41-
4226
# Getting Started 🤓
4327

4428
_Prior knowledge with [Protobuf](https://github.com/protocolbuffers/protobuf)
@@ -54,8 +38,10 @@ You'll obviously also need `axum` and `tokio`.
5438
```sh
5539
# Note: axum-connect-build will fetch `protoc` for you.
5640
cargo add --build axum-connect-build
57-
cargo add axum-connect prost axum
58-
cargo add tokio --features full
41+
42+
# Both Prost and Axum are version sensitive. I haven't found a good workaround
43+
# for this yet. PRs welcome!
44+
cargo add axum-connect tokio [email protected] [email protected] --features=tokio/full
5945
```
6046

6147
## Protobuf File 🥱
@@ -205,8 +191,17 @@ async fn stream_three_reponses(
205191
cargo run -p axum-connect-example
206192
```
207193

208-
It's Connect RPCs, so you can use the Buf Studio to test things out!
209-
https://buf.build/studio/athilenius/axum-connect/main/hello.HelloWorldService/SayHello?target=http%3A%2F%2Flocalhost%3A3030
194+
It's Connect RPCs, so you can use the Buf Studio to test things out! [Buf Studio - Hello RPC](https://buf.build/studio/athilenius/axum-connect/main/hello.HelloWorldService/SayHello?target=http%3A%2F%2Flocalhost%3A3030&share=sxKoVspLzE1VslJQcsxJTVaqBQA)
195+
196+
Or CURL it
197+
198+
```sh
199+
curl -X POST http://localhost:3030/hello.HelloWorldService/SayHello \
200+
-H "Content-Type: application/json" \
201+
-d '{"name":"Alec"}'
202+
```
203+
204+
> {"message":"Hello Alec! You're addressing the hostname: localhost:3030."}
210205
211206
# Request/Response Parts 🙍‍♂️
212207

axum-connect-build/Cargo.toml

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "axum-connect-build"
3-
version = "0.4.2"
3+
version = "0.5.1"
44
authors = ["Alec Thilenius <[email protected]>"]
55
edition = "2021"
66
categories = [
@@ -15,13 +15,13 @@ readme = "../README.md"
1515
repository = "https://github.com/AThilenius/axum-connect"
1616

1717
[dependencies]
18-
anyhow = "1.0"
19-
convert_case = "0.6.0"
20-
pbjson-build = "0.6.2"
21-
proc-macro2 = "1.0.56"
22-
prost = "0.12.1"
23-
prost-build = "0.12.1"
24-
prost-reflect = "0.12.0"
25-
protoc-fetcher = "0.1.0"
26-
quote = "1.0.26"
27-
syn = "2.0.15"
18+
anyhow = "1.0.95"
19+
convert_case = "0.7.1"
20+
pbjson-build = "0.7.0"
21+
proc-macro2 = "1.0.93"
22+
prost = ">=0.13"
23+
prost-build = "0.13.4"
24+
prost-reflect = "0.14.5"
25+
protoc-fetcher = "0.1.1"
26+
quote = "1.0.38"
27+
syn = "2.0.96"

axum-connect-examples/Cargo.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[package]
22
name = "axum-connect-example"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55

66
[dependencies]
7-
anyhow = "1.0.80"
8-
async-stream = "0.3.5"
9-
axum = "0.8.1"
10-
axum-extra = "0.10.0"
7+
anyhow = "1.0.95"
8+
async-stream = "0.3.6"
9+
axum = "0.8"
1110
axum-connect = { path = "../axum-connect", features = ["axum-extra"] }
12-
prost = "0.12.1"
13-
thiserror = "1.0.57"
14-
tokio = { version = "1.0", features = ["full"] }
15-
tower-http = { version = "0.5.1", features = ["cors"] }
11+
axum-extra = "0.10.0"
12+
prost = "0.13"
13+
thiserror = "2.0.11"
14+
tokio = { version = "1.43.0", features = ["full"] }
15+
tower-http = { version = "0.6.2", features = ["cors"] }
1616

1717
[build-dependencies]
1818
axum-connect-build = { path = "../axum-connect-build" }

axum-connect/Cargo.toml

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "axum-connect"
3-
version = "0.4.2"
3+
version = "0.5.1"
44
authors = ["Alec Thilenius <[email protected]>"]
55
edition = "2021"
66
categories = [
@@ -15,14 +15,14 @@ readme = "../README.md"
1515
repository = "https://github.com/AThilenius/axum-connect"
1616

1717
[dependencies]
18-
async-trait = "0.1.64"
19-
axum = { version = "0.8.1", features = ["multipart"] }
18+
async-trait = "0.1.85"
19+
axum = { version = ">=0.8", features = ["multipart"] }
2020
axum-extra = { version = "0.10.0", optional = true }
21-
base64 = "0.21.5"
22-
futures = "0.3.26"
23-
pbjson = "0.6.0"
24-
pbjson-types = "0.6.0"
25-
prost = "0.12.1"
21+
base64 = "0.22.1"
22+
futures = "0.3.31"
23+
pbjson = "0.7.0"
24+
pbjson-types = "0.7.0"
25+
prost = ">=0.13"
2626
serde = { version = "1.0", features = ["derive"] }
2727
serde_json = "1.0"
28-
serde_qs = "0.12.0"
28+
serde_qs = "0.13.0"

0 commit comments

Comments
 (0)