-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* alpha: begin refactoring middleware system * alpha: newer middleware syntax prototype * alpha: merge `Plugin` into `AlphaMiddlewareBuilderLike` * alpha: merge gats stuff into existing mw traits * alpha: shuffle some stuff around * alpha: add too many args to `map` * alpha: random stuff * alpha: checkpoint * alpha: checkpoint * alpha: lets try this again * alpha: put mw onto `MapPlugin` * alpha: replace `Func` with `Executable` * alpha: checkpoint * alpha: checkpoint * alpha: checkpoint * alpha:: remove `State` from `Executable` * alpha: generics go brrrrrrr * Clone `Layer` into `AlphaLayer` * `DynLayer` * Drop failed plugin stuff * `LayerResult<T>` * `-> Self::LayerResult<T>` * poggies * `type Fut<'a>` * `fn call<'a>` * checkpoint * goated `RequestLayer` * `append_alpha` & `call` working * load dem up * checkpoint * fuck yeah * basic resp working * Drop `mw2` module * removing unused stuff * benchmark 0.1.3 vs main * use `ahash` cause it's probs faster *pending more tests* * Undo `ahash` * high level cleanup * fix breaking changes to legacy syntax * some clippy * move to `Stream` everywhere + semi-fix alpha test suite * fix arg mappers & clean up some bounds * fix `with_middleware_from_func` unit test * upgrade workspace * fix non-alpha build
- Loading branch information
1 parent
ab0edc9
commit 4c9d8dd
Showing
49 changed files
with
3,128 additions
and
2,408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "rspc" | ||
description = "A blazing fast and easy to use TRPC server for Rust." | ||
version = "0.1.3" | ||
version = "0.1.4" | ||
authors = ["Oscar Beaumont <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -11,6 +11,15 @@ documentation = "https://docs.rs/rspc/latest/rspc" | |
keywords = ["async", "specta", "rust-to-ts", "typescript", "typesafe"] | ||
categories = ["web-programming", "asynchronous"] | ||
|
||
# /bin/sh RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features | ||
[package.metadata."docs.rs"] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
[[bench]] | ||
name = "benchmarks" | ||
harness = false | ||
|
||
[features] | ||
default = [] | ||
tauri = ["dep:tauri"] | ||
|
@@ -48,24 +57,32 @@ bytesize = ["specta/bytesize"] | |
glam = ["specta/glam"] | ||
|
||
[dependencies] | ||
specta = { version = "1.0.1", features = ["serde", "typescript", "tokio"] } | ||
specta = { version = "1.0.2", features = ["serde", "typescript", "tokio"] } | ||
httpz = { version = "0.0.4", optional = true } # TODO: Move back to crates.io release | ||
serde = { version = "1.0.152", features = ["derive"] } | ||
serde_json = "1.0.93" | ||
thiserror = "1.0.38" | ||
futures = "0.3.26" | ||
tokio = { version = "1.26.0", features = ["sync", "rt", "macros"] } | ||
serde = { version = "1.0.159", features = ["derive"] } | ||
serde_json = "1.0.95" | ||
thiserror = "1.0.40" | ||
futures = "0.3.28" | ||
tokio = { version = "1.27.0", features = ["sync", "rt", "macros"] } | ||
tauri = { version = "1.2.4", optional = true } | ||
tracing = { version = "0.1.37", optional = true } | ||
worker = { version = "0.0.12", optional = true } | ||
worker = { version = "0.0.15", optional = true } | ||
anyhow = { version = "1", optional = true } | ||
futures-locks = { git = "https://github.com/oscartbeaumont/futures-locks", rev = "a2e880337e6bfb3140a261932667149607e3ada9", features = ["tokio"] } | ||
futures-channel = "0.3.27" | ||
futures-channel = "0.3.28" | ||
nougat = "0.2.4" | ||
pin-project = "1.0.12" # TODO: Move to `pin-project-lite` | ||
|
||
[dev-dependencies] | ||
# Tests | ||
async-stream = "0.3.4" | ||
|
||
# Benchmark | ||
criterion = { version = "0.4", features = ["async_tokio", "html_reports"] } | ||
pprof = { version = "0.11.1", features = ["flamegraph", "criterion", "protobuf-codec", "frame-pointer"] } | ||
tokio = { version = "1.27.0", features = ["macros", "rt-multi-thread"] } | ||
rspc_legacy = { package = "rspc", version = "0.1.3"} | ||
|
||
[workspace] | ||
members = [ | ||
"./create-rspc-app", | ||
|
@@ -76,4 +93,4 @@ members = [ | |
|
||
[patch.crates-io] | ||
specta = { git = "https://github.com/oscartbeaumont/specta.git", rev = "df67cd18ea7a79819387e4c6a329b0e3929fb79e" } | ||
httpz = { git = "https://github.com/oscartbeaumont/httpz", rev = "be67ead9320095bdecf90cae75fded2411509b0f" } # TODO: Move back to crates.io release | ||
httpz = { git = "https://github.com/oscartbeaumont/httpz", rev = "2afc85de7c05b5d7d9b74c5439baf5a952162b15" } # TODO: Move back to crates.io release |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.