Cargo Features

[dependencies]
rspc = { version = "1.0.0-rc.5", default-features = false, features = ["tauri", "tracing", "httpz", "anyhow", "tokio", "typescript", "unstable", "axum", "lambda", "workers", "vercel", "worker"] }

harness = false

default = typescript

The typescript feature is set by default whenever rspc is added without default-features = false somewhere in the dependency tree.

tauri = tokio

Enables wry of tauri

Affects integrations::tauri

tracing

Enables tracing and tracing-futures

httpz axum? lambda? vercel? workers? = tokio

TODO: Remove the requirement on tokio

Enables sync of tokio and cookies of httpz ^0.0.5

Optional

Affects integrations::httpz

anyhow

Enables anyhow

tokio httpz? tauri?

Enables tokio and tokio of specta =2.0.0-rc.1

specta:

tokio crate

typescript default

TODO: Use this in the actual codebase

Enables typescript of specta =2.0.0-rc.1

unstable

APIs where one line of code can blow up your whole app

Affects rspc::unstable

axum vercel? = httpz

Webservers

Enables axum and tokio-ws of httpz ^0.0.5

lambda = httpz

TODO: Following ones are exposed but not officially supported

Enables axum, lambda and ws of httpz ^0.0.5

workers = httpz

Enables workers and ws of httpz ^0.0.5

vercel = axum, httpz

Enables vercel and ws of httpz ^0.0.5

Features from optional dependencies

worker implicit feature

Enables worker ^0.0.17

worker:

A Rust SDK for writing Cloudflare Workers