2023-03-02 01:56:30 +00:00
|
|
|
[package]
|
|
|
|
name = "server_fn"
|
2024-01-26 19:54:07 +00:00
|
|
|
authors = ["Greg Johnston", "Ben Wishovich"]
|
2024-01-17 12:55:23 +00:00
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/leptos-rs/leptos"
|
|
|
|
description = "RPC for any web framework."
|
|
|
|
readme = "../README.md"
|
2024-08-12 23:25:47 +00:00
|
|
|
version = { workspace = true }
|
2024-02-28 12:19:09 +00:00
|
|
|
rust-version.workspace = true
|
2024-08-12 23:25:47 +00:00
|
|
|
edition.workspace = true
|
2023-03-02 01:56:30 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-04-27 15:08:10 +00:00
|
|
|
throw_error = { workspace = true }
|
2024-01-26 22:54:59 +00:00
|
|
|
server_fn_macro_default = { workspace = true }
|
2023-12-31 20:09:38 +00:00
|
|
|
# used for hashing paths in #[server] macro
|
2024-11-04 21:21:35 +00:00
|
|
|
const_format = "0.2.33"
|
2024-08-11 00:01:41 +00:00
|
|
|
xxhash-rust = { version = "0.8.12", features = ["const_xxh64"] }
|
2024-07-29 13:30:50 +00:00
|
|
|
# used across multiple features
|
2024-08-11 00:01:41 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
send_wrapper = { version = "0.6.0", features = ["futures"], optional = true }
|
2024-11-07 18:55:57 +00:00
|
|
|
thiserror = "2.0"
|
2023-03-09 23:03:57 +00:00
|
|
|
|
2023-12-31 20:09:38 +00:00
|
|
|
# registration system
|
2024-08-11 00:01:41 +00:00
|
|
|
inventory = { version = "0.3.15", optional = true }
|
2024-11-04 21:21:35 +00:00
|
|
|
dashmap = "6.1"
|
|
|
|
once_cell = "1.20"
|
2023-03-09 23:03:57 +00:00
|
|
|
|
2024-10-02 17:03:20 +00:00
|
|
|
## servers
|
|
|
|
# actix
|
2024-11-04 21:21:35 +00:00
|
|
|
actix-web = { version = "4.9", optional = true }
|
2023-12-31 20:09:38 +00:00
|
|
|
|
|
|
|
# axum
|
2024-11-04 21:21:35 +00:00
|
|
|
axum = { version = "0.7.7", optional = true, default-features = false, features = [
|
2024-02-17 01:26:26 +00:00
|
|
|
"multipart",
|
|
|
|
] }
|
2024-11-07 18:55:57 +00:00
|
|
|
tower = { version = "0.5.1", optional = true }
|
2024-11-04 21:21:35 +00:00
|
|
|
tower-layer = { version = "0.3.3", optional = true }
|
2023-12-31 20:09:38 +00:00
|
|
|
|
2024-10-02 17:03:20 +00:00
|
|
|
## input encodings
|
2024-08-11 00:01:41 +00:00
|
|
|
serde_qs = { version = "0.13.0", optional = true }
|
|
|
|
multer = { version = "3.1", optional = true }
|
2023-12-31 20:09:38 +00:00
|
|
|
|
2024-10-02 17:03:20 +00:00
|
|
|
## output encodings
|
|
|
|
# serde
|
2024-08-11 00:01:41 +00:00
|
|
|
serde_json = "1.0"
|
|
|
|
serde-lite = { version = "0.5.0", features = ["derive"], optional = true }
|
2024-11-04 21:21:35 +00:00
|
|
|
futures = "0.3.31"
|
2024-08-11 00:01:41 +00:00
|
|
|
http = { version = "1.1" }
|
|
|
|
ciborium = { version = "0.2.2", optional = true }
|
2024-08-26 20:58:23 +00:00
|
|
|
postcard = { version = "1", features = ["alloc"], optional = true }
|
2024-11-04 21:21:35 +00:00
|
|
|
hyper = { version = "1.5", optional = true }
|
|
|
|
bytes = "1.8"
|
2024-08-11 00:01:41 +00:00
|
|
|
http-body-util = { version = "0.1.2", optional = true }
|
2024-10-02 17:03:20 +00:00
|
|
|
rkyv = { version = "0.8.8", optional = true }
|
2024-08-11 00:01:41 +00:00
|
|
|
rmp-serde = { version = "1.3.0", optional = true }
|
2023-12-31 20:09:38 +00:00
|
|
|
|
|
|
|
# client
|
2024-08-11 00:01:41 +00:00
|
|
|
gloo-net = { version = "0.6.0", optional = true }
|
2024-11-04 21:21:35 +00:00
|
|
|
js-sys = { version = "0.3.72", optional = true }
|
|
|
|
wasm-bindgen = { version = "0.2.95", optional = true }
|
|
|
|
wasm-bindgen-futures = { version = "0.4.45", optional = true }
|
|
|
|
wasm-streams = { version = "0.4.2", optional = true }
|
|
|
|
web-sys = { version = "0.3.72", optional = true, features = [
|
2023-12-31 20:09:38 +00:00
|
|
|
"console",
|
|
|
|
"ReadableStream",
|
|
|
|
"ReadableStreamDefaultReader",
|
2024-03-16 20:33:15 +00:00
|
|
|
"AbortController",
|
2024-04-27 15:04:23 +00:00
|
|
|
"AbortSignal",
|
2023-12-31 20:09:38 +00:00
|
|
|
] }
|
|
|
|
|
2024-10-02 17:03:20 +00:00
|
|
|
# reqwest client
|
2024-11-04 21:21:35 +00:00
|
|
|
reqwest = { version = "0.12.9", default-features = false, optional = true, features = [
|
2023-12-31 20:09:38 +00:00
|
|
|
"multipart",
|
|
|
|
"stream",
|
|
|
|
] }
|
2024-01-14 02:58:46 +00:00
|
|
|
url = "2"
|
2024-11-04 21:21:35 +00:00
|
|
|
pin-project-lite = "0.2.15"
|
2023-12-31 20:09:38 +00:00
|
|
|
|
2023-03-02 01:56:30 +00:00
|
|
|
[features]
|
2024-04-27 15:04:23 +00:00
|
|
|
default = ["json"]
|
2024-02-07 16:08:48 +00:00
|
|
|
axum-no-default = [
|
2024-01-26 22:54:59 +00:00
|
|
|
"ssr",
|
2024-11-02 16:44:50 +00:00
|
|
|
"generic",
|
2023-12-31 20:09:38 +00:00
|
|
|
"dep:axum",
|
|
|
|
"dep:hyper",
|
|
|
|
"dep:http-body-util",
|
|
|
|
"dep:tower",
|
|
|
|
"dep:tower-layer",
|
|
|
|
]
|
2024-02-17 01:26:26 +00:00
|
|
|
form-redirects = []
|
|
|
|
actix = ["ssr", "dep:actix-web", "dep:send_wrapper"]
|
|
|
|
axum = ["axum/default", "axum-no-default"]
|
2023-12-31 20:09:38 +00:00
|
|
|
browser = [
|
|
|
|
"dep:gloo-net",
|
|
|
|
"dep:js-sys",
|
|
|
|
"dep:send_wrapper",
|
2024-01-10 19:08:51 +00:00
|
|
|
"dep:wasm-bindgen",
|
2023-12-31 20:09:38 +00:00
|
|
|
"dep:web-sys",
|
|
|
|
"dep:wasm-streams",
|
|
|
|
"dep:wasm-bindgen-futures",
|
|
|
|
]
|
2024-01-04 01:15:38 +00:00
|
|
|
json = []
|
2024-01-09 01:55:15 +00:00
|
|
|
serde-lite = ["dep:serde-lite"]
|
2024-01-19 21:52:41 +00:00
|
|
|
multipart = ["browser", "dep:multer"]
|
2023-12-31 20:09:38 +00:00
|
|
|
url = ["dep:serde_qs"]
|
|
|
|
cbor = ["dep:ciborium"]
|
|
|
|
rkyv = ["dep:rkyv"]
|
2024-03-03 21:54:23 +00:00
|
|
|
msgpack = ["dep:rmp-serde"]
|
2024-08-26 20:58:23 +00:00
|
|
|
postcard = ["dep:postcard"]
|
2024-01-19 16:07:17 +00:00
|
|
|
default-tls = ["reqwest?/default-tls"]
|
|
|
|
rustls = ["reqwest?/rustls-tls"]
|
2024-01-04 01:45:27 +00:00
|
|
|
reqwest = ["dep:reqwest"]
|
2023-06-11 13:09:21 +00:00
|
|
|
ssr = ["inventory"]
|
2024-11-02 16:44:50 +00:00
|
|
|
generic = []
|
2024-01-19 17:43:45 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
2024-07-03 10:46:02 +00:00
|
|
|
rustdoc-args = ["--generate-link-to-definition"]
|
2024-01-20 17:32:51 +00:00
|
|
|
|
|
|
|
# disables some feature combos for testing in CI
|
|
|
|
[package.metadata.cargo-all-features]
|
2024-02-17 01:26:26 +00: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-01 19:16:53 +00:00
|
|
|
"rkyv",
|
2024-02-17 01:26:26 +00:00
|
|
|
]
|
2024-01-26 22:54:59 +00:00
|
|
|
skip_feature_sets = [
|
|
|
|
[
|
|
|
|
"actix",
|
|
|
|
"axum",
|
|
|
|
],
|
2024-11-02 16:44:50 +00:00
|
|
|
[
|
|
|
|
"actix",
|
|
|
|
"generic",
|
|
|
|
],
|
2024-01-26 22:54:59 +00:00
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"actix",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"axum",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"reqwest",
|
|
|
|
],
|
2024-11-02 16:44:50 +00:00
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"generic",
|
|
|
|
],
|
2024-02-17 01:26:26 +00:00
|
|
|
[
|
|
|
|
"default-tls",
|
|
|
|
"rustls",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"browser",
|
|
|
|
"ssr",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"axum-no-default",
|
|
|
|
"actix",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"axum-no-default",
|
|
|
|
"browser",
|
|
|
|
],
|
2024-11-02 16:44:50 +00:00
|
|
|
[
|
|
|
|
"axum-no-default",
|
|
|
|
"generic",
|
|
|
|
],
|
2024-02-17 01:26:26 +00:00
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"json",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"cbor",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"url",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"rkyv",
|
|
|
|
"serde-lite",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"url",
|
|
|
|
"json",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"url",
|
|
|
|
"cbor",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"url",
|
|
|
|
"serde-lite",
|
|
|
|
],
|
2024-08-26 20:58:23 +00:00
|
|
|
[
|
|
|
|
"postcard",
|
|
|
|
"json",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"postcard",
|
|
|
|
"cbor",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"postcard",
|
|
|
|
"url",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"postcard",
|
|
|
|
"serde-lite",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"postcard",
|
|
|
|
"rkyv",
|
|
|
|
],
|
2024-01-26 22:54:59 +00:00
|
|
|
]
|