Skip to content

Commit

Permalink
upgrade workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Aug 26, 2024
1 parent 5042952 commit 02ed857
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ unwrap_used = { level = "warn", priority = -1 }
panic = { level = "warn", priority = -1 }
todo = { level = "warn", priority = -1 }
panic_in_result_fn = { level = "warn", priority = -1 }

# TODO: Remove this
[patch.crates-io]
specta = { git = "https://github.com/oscartbeaumont/specta", rev = "9c41ff0e95a357fd00893f5e2f9d642eac3438ef" }
specta-typescript = { git = "https://github.com/oscartbeaumont/specta", rev = "9c41ff0e95a357fd00893f5e2f9d642eac3438ef" }
10 changes: 5 additions & 5 deletions examples/axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ publish = false
axum = "0.7.5"
rspc = { path = "../../rspc" }
rspc-axum = { path = "../../integrations/axum", features = ["ws"] }
tokio = { version = "1.37.0", features = ["macros", "rt-multi-thread"] }
thiserror = "1.0.62"
tokio = { version = "1.39.3", features = ["macros", "rt-multi-thread"] }
thiserror = "1.0.63"
async-stream = "0.3.5"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
rspc-tracing = { path = "../../middleware/tracing" }
rspc-openapi = { path = "../../middleware/openapi" }
serde = { version = "1", features = ["derive"] }
specta = { version = "=2.0.0-rc.15", features = ["derive"] } # TODO: Drop requirement on `derive`
specta-util = "0.0.2" # TODO: We need this for `TypeCollection` which is cringe
specta-typescript = "0.0.2"
specta = { version = "=2.0.0-rc.20", features = ["derive"] } # TODO: Drop requirement on `derive`
specta-util = "0.0.7" # TODO: We need this for `TypeCollection` which is cringe
specta-typescript = "0.0.7"
futures = "0.3.30"
6 changes: 3 additions & 3 deletions integrations/axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ file = ["dep:tokio"]

[dependencies]
rspc = { version = "0.3.0", path = "../../rspc" }
axum = "0.7.4"
serde_json = "1.0.114"
axum = "0.7.5"
serde_json = "1.0.127"

# TODO: Drop these
form_urlencoded = "1.2.1" # TODO: use Axum's built in extractor
futures = "0.3.30" # TODO: No blocking execution, etc
tokio = { version = "1.36.0", optional = true } # TODO: No more `tokio::select` + spawning threads. Axum's Websocket upgrade handles that.
tokio = { version = "1.39.3", optional = true } # TODO: No more `tokio::select` + spawning threads. Axum's Websocket upgrade handles that.

# /bin/sh RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
[package.metadata."docs.rs"]
Expand Down
2 changes: 1 addition & 1 deletion middleware/openapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false # TODO: Crate metadata & publish
[dependencies]
rspc = { path = "../../rspc" }
axum = { version = "0.7.5", default-features = false }
serde_json = "1.0.120"
serde_json = "1.0.127"
futures = "0.3.30"

# /bin/sh RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
Expand Down
4 changes: 2 additions & 2 deletions rspc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ default = []
# Public
serde = "1"
futures = "0.3"
specta = { version = "=2.0.0-rc.15", features = ["derive"] } # TODO: Drop requirement on `derive`
specta-util = "0.0.2"
specta = { version = "=2.0.0-rc.20", features = ["derive"] } # TODO: Drop requirement on `derive`
specta-util = "0.0.7"

# Private
serde-value = "0.7"
Expand Down
2 changes: 1 addition & 1 deletion rspc/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl<TCtx> Router<TCtx> {
None,
Default::default(),
Some(specta::DataType::Literal(
specta::LiteralType::String(self.kind),
specta::datatype::LiteralType::String(self.kind),
)),
),
),
Expand Down

0 comments on commit 02ed857

Please sign in to comment.