mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 08:44:28 -05:00
change: enable url and json by default on server_fn
This commit is contained in:
@@ -42,11 +42,7 @@ typed-builder = "0.20.0"
|
||||
typed-builder-macro = "0.20.0"
|
||||
serde = "1.0"
|
||||
serde_json = { version = "1.0", optional = true }
|
||||
server_fn = { workspace = true, features = [
|
||||
"form-redirects",
|
||||
"browser",
|
||||
"url",
|
||||
] }
|
||||
server_fn = { workspace = true, features = ["form-redirects", "browser"] }
|
||||
web-sys = { version = "0.3.72", features = [
|
||||
"ShadowRoot",
|
||||
"ShadowRootInit",
|
||||
|
||||
@@ -39,7 +39,7 @@ tower = { version = "0.5.1", optional = true }
|
||||
tower-layer = { version = "0.3.3", optional = true }
|
||||
|
||||
## input encodings
|
||||
serde_qs = { version = "0.13.0", optional = true }
|
||||
serde_qs = { version = "0.13.0" }
|
||||
multer = { version = "3.1", optional = true }
|
||||
|
||||
## output encodings
|
||||
@@ -82,7 +82,6 @@ pin-project-lite = "0.2.15"
|
||||
tokio = { version = "1.43.0", features = ["rt"], optional = true }
|
||||
|
||||
[features]
|
||||
default = ["json", "url"]
|
||||
axum-no-default = [
|
||||
"ssr",
|
||||
"generic",
|
||||
@@ -104,10 +103,8 @@ browser = [
|
||||
"dep:wasm-streams",
|
||||
"dep:wasm-bindgen-futures",
|
||||
]
|
||||
json = []
|
||||
serde-lite = ["dep:serde-lite"]
|
||||
multipart = ["browser", "dep:multer"]
|
||||
url = ["dep:serde_qs"]
|
||||
cbor = ["dep:ciborium"]
|
||||
rkyv = ["dep:rkyv"]
|
||||
msgpack = ["dep:rmp-serde"]
|
||||
|
||||
@@ -19,9 +19,7 @@ mod cbor;
|
||||
#[cfg(feature = "cbor")]
|
||||
pub use cbor::*;
|
||||
|
||||
#[cfg(feature = "json")]
|
||||
mod json;
|
||||
#[cfg(feature = "json")]
|
||||
pub use json::*;
|
||||
|
||||
#[cfg(feature = "serde-lite")]
|
||||
@@ -34,9 +32,7 @@ mod rkyv;
|
||||
#[cfg(feature = "rkyv")]
|
||||
pub use rkyv::*;
|
||||
|
||||
#[cfg(feature = "url")]
|
||||
mod url;
|
||||
#[cfg(feature = "url")]
|
||||
pub use url::*;
|
||||
|
||||
#[cfg(feature = "multipart")]
|
||||
|
||||
Reference in New Issue
Block a user