[package]
name = "rspc"
description = "A blazing fast and easy to use TRPC server for Rust."
version = "0.4.1"
authors = ["Oscar Beaumont <oscar@otbeaumont.me>"]
edition = "2021"
license = "MIT"
include = ["/src", "/LICENCE", "/README.md"]
repository = "https://github.com/specta-rs/rspc"
documentation = "https://docs.rs/rspc/latest/rspc"
keywords = ["async", "specta", "rust-to-ts", "typescript", "typesafe"]
categories = ["web-programming", "asynchronous"]
[package.metadata."docs.rs"]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["legacy"]
typescript = ["dep:specta-typescript", "dep:serde_json"]
rust = []
legacy = ["dep:rspc-legacy", "dep:serde_json"]
[dependencies]
rspc-procedure = { version = "0.0.1", path = "../crates/procedure" }
rspc-legacy = { version = "0.0.1", path = "../crates/legacy", optional = true }
serde = { workspace = true }
futures-util = { workspace = true, features = ["alloc"] }
specta = { workspace = true, features = [
"serde",
"serde_json",
"derive",
] }
specta-typescript = { workspace = true, optional = true, features = [] }
serde_json = { workspace = true, optional = true }
[lints]
workspace = true