2023-03-02 09:56:30 +08:00
|
|
|
[package]
|
|
|
|
name = "server_fn"
|
2024-01-17 20:55:23 +08:00
|
|
|
version = { workspace = true }
|
2023-03-02 09:56:30 +08:00
|
|
|
edition = "2021"
|
2024-01-27 03:54:07 +08:00
|
|
|
authors = ["Greg Johnston", "Ben Wishovich"]
|
2024-01-17 20:55:23 +08:00
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/leptos-rs/leptos"
|
|
|
|
description = "RPC for any web framework."
|
|
|
|
readme = "../README.md"
|
2024-02-28 20:19:09 +08:00
|
|
|
rust-version.workspace = true
|
2023-03-02 09:56:30 +08:00
|
|
|
|
|
|
|
[dependencies]
|
2024-04-27 23:08:10 +08:00
|
|
|
throw_error = { workspace = true }
|
2024-01-27 06:54:59 +08:00
|
|
|
server_fn_macro_default = { workspace = true }
|
2024-01-01 04:09:38 +08:00
|
|
|
# used for hashing paths in #[server] macro
|
2023-04-11 01:15:00 +08:00
|
|
|
const_format = "0.2"
|
2024-01-01 04:09:38 +08:00
|
|
|
xxhash-rust = { version = "0.8", features = ["const_xxh64"] }
|
2024-07-29 21:30:50 +08:00
|
|
|
# used across multiple features
|
2024-01-01 04:09:38 +08:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
send_wrapper = { version = "0.6", features = ["futures"], optional = true }
|
2024-03-18 23:25:15 +08:00
|
|
|
thiserror = "1"
|
2023-03-10 07:03:57 +08:00
|
|
|
|
2024-01-01 04:09:38 +08:00
|
|
|
# registration system
|
2024-01-27 06:54:59 +08:00
|
|
|
inventory = { version = "0.3", optional = true }
|
2024-01-01 04:09:38 +08:00
|
|
|
dashmap = "5"
|
2023-04-11 01:15:00 +08:00
|
|
|
once_cell = "1"
|
2023-03-10 07:03:57 +08:00
|
|
|
|
2024-01-01 04:09:38 +08:00
|
|
|
## servers
|
|
|
|
# actix
|
|
|
|
actix-web = { version = "4", optional = true }
|
|
|
|
|
|
|
|
# axum
|
2024-02-17 09:26:26 +08:00
|
|
|
axum = { version = "0.7", optional = true, default-features = false, features = [
|
|
|
|
"multipart",
|
|
|
|
] }
|
2024-01-01 04:09:38 +08:00
|
|
|
tower = { version = "0.4", optional = true }
|
|
|
|
tower-layer = { version = "0.3", optional = true }
|
|
|
|
|
|
|
|
## input encodings
|
|
|
|
serde_qs = { version = "0.12", optional = true }
|
|
|
|
multer = { version = "3", optional = true }
|
|
|
|
|
|
|
|
## output encodings
|
|
|
|
# serde
|
2024-01-03 07:06:49 +08:00
|
|
|
serde_json = "1"
|
2024-01-09 09:55:15 +08:00
|
|
|
serde-lite = { version = "0.5", features = ["derive"], optional = true }
|
2024-01-01 04:09:38 +08:00
|
|
|
futures = "0.3"
|
2024-01-04 09:45:27 +08:00
|
|
|
http = { version = "1" }
|
2024-01-01 04:09:38 +08:00
|
|
|
ciborium = { version = "0.2", optional = true }
|
|
|
|
hyper = { version = "1", optional = true }
|
|
|
|
bytes = "1"
|
|
|
|
http-body-util = { version = "0.1.0", optional = true }
|
|
|
|
rkyv = { version = "0.7", features = [
|
|
|
|
"validation",
|
|
|
|
"uuid",
|
|
|
|
"strict",
|
|
|
|
], optional = true }
|
2024-03-04 05:54:23 +08:00
|
|
|
rmp-serde = { version = "1.1", optional = true }
|
2024-01-01 04:09:38 +08:00
|
|
|
|
|
|
|
# client
|
2024-08-02 07:39:54 +08:00
|
|
|
gloo-net = { version = "0.6", optional = true }
|
2024-01-01 04:09:38 +08:00
|
|
|
js-sys = { version = "0.3", optional = true }
|
2024-01-11 03:08:51 +08:00
|
|
|
wasm-bindgen = { version = "0.2", optional = true }
|
2024-01-01 04:09:38 +08:00
|
|
|
wasm-bindgen-futures = { version = "0.4", optional = true }
|
|
|
|
wasm-streams = { version = "0.4", optional = true }
|
|
|
|
web-sys = { version = "0.3", optional = true, features = [
|
|
|
|
"console",
|
|
|
|
"ReadableStream",
|
|
|
|
"ReadableStreamDefaultReader",
|
2024-03-17 04:33:15 +08:00
|
|
|
"AbortController",
|
2024-04-27 23:04:23 +08:00
|
|
|
"AbortSignal",
|
2024-01-01 04:09:38 +08:00
|
|
|
] }
|
|
|
|
|
|
|
|
# reqwest client
|
2024-08-02 07:39:54 +08:00
|
|
|
reqwest = { version = "0.12", default-features = false, optional = true, features = [
|
2024-01-01 04:09:38 +08:00
|
|
|
"multipart",
|
|
|
|
"stream",
|
|
|
|
] }
|
2024-01-14 10:58:46 +08:00
|
|
|
url = "2"
|
2024-03-17 04:33:15 +08:00
|
|
|
pin-project-lite = "0.2.13"
|
2024-01-01 04:09:38 +08:00
|
|
|
|
2023-03-02 09:56:30 +08:00
|
|
|
[features]
|
2024-04-27 23:04:23 +08:00
|
|
|
default = ["json"]
|
2024-02-08 00:08:48 +08:00
|
|
|
axum-no-default = [
|
2024-01-27 06:54:59 +08:00
|
|
|
"ssr",
|
2024-01-01 04:09:38 +08:00
|
|
|
"dep:axum",
|
|
|
|
"dep:hyper",
|
|
|
|
"dep:http-body-util",
|
|
|
|
"dep:tower",
|
|
|
|
"dep:tower-layer",
|
|
|
|
]
|
2024-02-17 09:26:26 +08:00
|
|
|
form-redirects = []
|
|
|
|
actix = ["ssr", "dep:actix-web", "dep:send_wrapper"]
|
|
|
|
axum = ["axum/default", "axum-no-default"]
|
2024-01-01 04:09:38 +08:00
|
|
|
browser = [
|
|
|
|
"dep:gloo-net",
|
|
|
|
"dep:js-sys",
|
|
|
|
"dep:send_wrapper",
|
2024-01-11 03:08:51 +08:00
|
|
|
"dep:wasm-bindgen",
|
2024-01-01 04:09:38 +08:00
|
|
|
"dep:web-sys",
|
|
|
|
"dep:wasm-streams",
|
|
|
|
"dep:wasm-bindgen-futures",
|
|
|
|
]
|
2024-01-04 09:15:38 +08:00
|
|
|
json = []
|
2024-01-09 09:55:15 +08:00
|
|
|
serde-lite = ["dep:serde-lite"]
|
2024-01-20 05:52:41 +08:00
|
|
|
multipart = ["browser", "dep:multer"]
|
2024-01-01 04:09:38 +08:00
|
|
|
url = ["dep:serde_qs"]
|
|
|
|
cbor = ["dep:ciborium"]
|
|
|
|
rkyv = ["dep:rkyv"]
|
2024-03-04 05:54:23 +08:00
|
|
|
msgpack = ["dep:rmp-serde"]
|
2024-01-20 00:07:17 +08:00
|
|
|
default-tls = ["reqwest?/default-tls"]
|
|
|
|
rustls = ["reqwest?/rustls-tls"]
|
2024-01-04 09:45:27 +08:00
|
|
|
reqwest = ["dep:reqwest"]
|
2023-06-11 21:09:21 +08:00
|
|
|
ssr = ["inventory"]
|
2024-01-20 01:43:45 +08:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
2024-07-03 18:46:02 +08:00
|
|
|
rustdoc-args = ["--generate-link-to-definition"]
|
2024-01-21 01:32:51 +08:00
|
|
|
|
|
|
|
# disables some feature combos for testing in CI
|
|
|
|
[package.metadata.cargo-all-features]
|
2024-02-17 09:26:26 +08:00
|
|
|
denylist = [
|
|
|
|
"rustls",
|
|
|
|
"default-tls",
|
|
|
|
"form-redirects",
|
|
|
|
"gloo-net",
|
|
|
|
"js-sys",
|
|
|
|
"wasm-bindgen",
|
|
|
|
"web-sys",
|
|
|
|
"tower",
|
|
|
|
"tower-layer",
|
|
|
|
"send_wrapper",
|
|
|
|
"ciborium",
|
|
|
|
"hyper",
|
|
|
|
"inventory",
|
2024-04-02 03:16:53 +08:00
|
|
|
"rkyv",
|
2024-02-17 09:26:26 +08:00
|
|
|
]
|
2024-01-27 06:54:59 +08:00
|
|
|
skip_feature_sets = [
|
|
|
|
[
|
|
|
|
"actix",
|
|
|
|
"axum",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"actix",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"axum",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"reqwest",
|
|
|
|
],
|
2024-02-17 09:26:26 +08:00
|
|
|
[
|
|
|
|
"default-tls",
|
|
|
|
"rustls",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"ssr",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"axum-no-default",
|
|
|
|
"actix",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"axum-no-default",
|
|
|
|
"browser",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"json",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"cbor",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"url",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"serde-lite",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"url",
|
|
|
|
"json",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"url",
|
|
|
|
"cbor",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"url",
|
|
|
|
"serde-lite",
|
|
|
|
],
|
2024-01-27 06:54:59 +08:00
|
|
|
]
|