Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not actually v3 #253

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .cargo/config.toml

This file was deleted.

119 changes: 0 additions & 119 deletions .github/workflows/ci.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/clippy.yml

This file was deleted.

69 changes: 2 additions & 67 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,68 +1,3 @@
[package]
name = "rspc"
description = "A blazing fast and easy to use tRPC server for Rust."
version = "1.0.0-rc.5"
authors = ["Oscar Beaumont <[email protected]>"]
edition = "2021"
license = "MIT"
include = ["/src", "/LICENCE", "/README.md"]
repository = "https://github.com/oscartbeaumont/rspc"
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"]

[[test]]
name = "tests"
path = "tests/tauri/tauri_test.rs"
harness = false

[[bench]]
name = "benchmarks"
harness = false

[features]
default = ["typescript"]
typescript = ["rspc-core/typescript", "specta/typescript"]
tracing = ["rspc-core/tracing", "dep:tracing"]

unstable = ["rspc-core/unstable"] # APIs where one line of code can blow up your whole app

[dependencies]
rspc-core = { path = "./crates/core" }
specta = { workspace = true }

serde = { workspace = true }
thiserror = { workspace = true }
futures = { version = "0.3.28", default-features = false, features = ["std", "async-await"] } # TODO: Drop for `futures_core` if possible
pin-project-lite = "0.2.13"

# Optional
serde_json = { version = "1", default-features = false }
tracing = { version = "0.1.40", default-features = false, optional = true }

# Even though this `cfg` can never be enabled, it still forces cargo to keep `rspc-core` in lockstep with `rspc`.
[target.'cfg(any())'.dependencies]
rspc-core = { version = "=1.0.0-rc.5", path = "./crates/core" }

[dev-dependencies]
# Tests
async-stream = "0.3.5"
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] }
tauri = { version = "1.5.2", features = ["api-all"] }

# Benchmark
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
pprof = { version = "0.13.0", features = ["flamegraph", "criterion", "protobuf-codec", "frame-pointer"] }

[workspace]
members = ["./crates/*", "./examples", "./examples/axum", "./examples/vercel", "./examples/tauri/src-tauri"]

[workspace.dependencies]
specta = { version = "=2.0.0-rc.6", default-features = false, features = ["serde", "serde_json"] }
serde = { version = "1", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.50", default-features = false }
resolver = "2"
members = ["examples/axum", "rspc"]