leptos/server_fn/Cargo.toml

232 lines
4.3 KiB
TOML
Raw Permalink Normal View History

[package]
name = "server_fn"
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"
version = { workspace = true }
2024-02-28 12:19:09 +00:00
rust-version.workspace = true
edition.workspace = true
[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 }
# used for hashing paths in #[server] macro
const_format = "0.2.33"
2024-08-11 00:01:41 +00:00
xxhash-rust = { version = "0.8.12", features = ["const_xxh64"] }
# 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 }
thiserror = "2.0"
# registration system
2024-08-11 00:01:41 +00:00
inventory = { version = "0.3.15", optional = true }
dashmap = "6.1"
once_cell = "1.20"
2024-10-02 17:03:20 +00:00
## servers
# actix
actix-web = { version = "4.9", optional = true }
# axum
axum = { version = "0.7.7", optional = true, default-features = false, features = [
"multipart",
] }
tower = { version = "0.5.1", optional = true }
tower-layer = { version = "0.3.3", optional = true }
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 }
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 }
futures = "0.3.31"
2024-08-11 00:01:41 +00:00
http = { version = "1.1" }
ciborium = { version = "0.2.2", optional = true }
postcard = { version = "1", features = ["alloc"], optional = true }
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 }
# client
2024-08-11 00:01:41 +00:00
gloo-net = { version = "0.6.0", optional = true }
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 = [
"console",
"ReadableStream",
"ReadableStreamDefaultReader",
2024-03-16 20:33:15 +00:00
"AbortController",
2024-04-27 15:04:23 +00:00
"AbortSignal",
] }
2024-10-02 17:03:20 +00:00
# reqwest client
reqwest = { version = "0.12.9", default-features = false, optional = true, features = [
"multipart",
"stream",
] }
url = "2"
pin-project-lite = "0.2.15"
[features]
2024-04-27 15:04:23 +00:00
default = ["json"]
axum-no-default = [
2024-01-26 22:54:59 +00:00
"ssr",
Makes the `wasm32-wasip1/2` target a first-class citizen for Leptos's Server-Side (#3063) * feat: WIP wasi integrations crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(server_fn): add generic types This commit adds `From` implementations for the `Req` and `Res` types using abstraction that are deemed "platform-agnostic". Indeed, both the `http` and `bytes` crates contains types that allows us to represent HTTP Request and Response, while being capable to target unconventional platforms (they even have `no-std` support). This allows the server_fn functions to target new platforms, for example, the `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(server_fn): generic types cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(integrations/wasi): make WASI a first-class citizen of leptos server-side Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * WIP: chore(any_spawner): make the futures::Executor runable Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * fix(server_fn): include `generic` in axum. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(any_spawner): some clippy suggestions I ran clippy in really annoying mode since I am still learning Rust and I want to write clean idiomatic code. I took suggestions that I thought made sense, if any maintainers think those are *too much*, I can relax those changes: * Use `core` instead of `std` to ease migration to `no_std` (https://rust-lang.github.io/rust-clippy/master/index.html#/std_instead_of_core) * Add documentation on exported types and statics * Bring some types in, with `use` * Add `#[non_exhaustive]` on types we are not sure we won't extend (https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums) * Add `#[inline]` to help the compiler when doing cross-crate compilation and Link-Time optimization is not enabled. (https://rust-lang.github.io/rust-clippy/master/index.html#/missing_inline_in_public_items) * Use generic types instead of anonymous `impl` params so callers can use the `::<>` turbofish syntax (https://rust-lang.github.io/rust-clippy/master/index.html#/impl_trait_in_params) Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(leptos_wasi): fine-tune linter and clean-up Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): better handling of server fn with form Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: cargo fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove custom clippy Remove clippy crate rules since it seems to make tests fails in tests. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: use `wasi` crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: revert changes to any_spawner Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: simpler crate features + cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(any_spawner): add local custom executor This commit adds a single-thread "local" custom executor, which is useful for environments like `wasm32` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): async runtime This commit adds a single-threaded async runtime for `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): error handling This commit adds error types for the users to implement better error handling. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: migrate integration off-tree Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix formatting Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove ref to leptos_wasi in Cargo.toml Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): remove explicit into_inter() Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): make generic mutually exclusive with other options Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> --------- Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>
2024-11-02 16:44:50 +00:00
"generic",
"dep:axum",
"dep:hyper",
"dep:http-body-util",
"dep:tower",
"dep:tower-layer",
]
form-redirects = []
actix = ["ssr", "dep:actix-web", "dep:send_wrapper"]
axum = ["axum/default", "axum-no-default"]
browser = [
"dep:gloo-net",
"dep:js-sys",
"dep:send_wrapper",
2024-01-10 19:08:51 +00:00
"dep:wasm-bindgen",
"dep:web-sys",
"dep:wasm-streams",
"dep:wasm-bindgen-futures",
]
json = []
serde-lite = ["dep:serde-lite"]
2024-01-19 21:52:41 +00:00
multipart = ["browser", "dep:multer"]
url = ["dep:serde_qs"]
cbor = ["dep:ciborium"]
rkyv = ["dep:rkyv"]
msgpack = ["dep:rmp-serde"]
postcard = ["dep:postcard"]
2024-01-19 16:07:17 +00:00
default-tls = ["reqwest?/default-tls"]
rustls = ["reqwest?/rustls-tls"]
reqwest = ["dep:reqwest"]
ssr = ["inventory"]
Makes the `wasm32-wasip1/2` target a first-class citizen for Leptos's Server-Side (#3063) * feat: WIP wasi integrations crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(server_fn): add generic types This commit adds `From` implementations for the `Req` and `Res` types using abstraction that are deemed "platform-agnostic". Indeed, both the `http` and `bytes` crates contains types that allows us to represent HTTP Request and Response, while being capable to target unconventional platforms (they even have `no-std` support). This allows the server_fn functions to target new platforms, for example, the `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(server_fn): generic types cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(integrations/wasi): make WASI a first-class citizen of leptos server-side Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * WIP: chore(any_spawner): make the futures::Executor runable Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * fix(server_fn): include `generic` in axum. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(any_spawner): some clippy suggestions I ran clippy in really annoying mode since I am still learning Rust and I want to write clean idiomatic code. I took suggestions that I thought made sense, if any maintainers think those are *too much*, I can relax those changes: * Use `core` instead of `std` to ease migration to `no_std` (https://rust-lang.github.io/rust-clippy/master/index.html#/std_instead_of_core) * Add documentation on exported types and statics * Bring some types in, with `use` * Add `#[non_exhaustive]` on types we are not sure we won't extend (https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums) * Add `#[inline]` to help the compiler when doing cross-crate compilation and Link-Time optimization is not enabled. (https://rust-lang.github.io/rust-clippy/master/index.html#/missing_inline_in_public_items) * Use generic types instead of anonymous `impl` params so callers can use the `::<>` turbofish syntax (https://rust-lang.github.io/rust-clippy/master/index.html#/impl_trait_in_params) Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(leptos_wasi): fine-tune linter and clean-up Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): better handling of server fn with form Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: cargo fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove custom clippy Remove clippy crate rules since it seems to make tests fails in tests. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: use `wasi` crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: revert changes to any_spawner Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: simpler crate features + cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(any_spawner): add local custom executor This commit adds a single-thread "local" custom executor, which is useful for environments like `wasm32` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): async runtime This commit adds a single-threaded async runtime for `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): error handling This commit adds error types for the users to implement better error handling. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: migrate integration off-tree Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix formatting Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove ref to leptos_wasi in Cargo.toml Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): remove explicit into_inter() Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): make generic mutually exclusive with other options Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> --------- Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>
2024-11-02 16:44:50 +00:00
generic = []
2024-01-19 17:43:45 +00:00
[package.metadata.docs.rs]
all-features = true
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]
denylist = [
"rustls",
"default-tls",
"form-redirects",
"gloo-net",
"js-sys",
"wasm-bindgen",
"web-sys",
"tower",
"tower-layer",
"send_wrapper",
"ciborium",
"hyper",
"inventory",
"rkyv",
]
2024-01-26 22:54:59 +00:00
skip_feature_sets = [
[
"actix",
"axum",
],
Makes the `wasm32-wasip1/2` target a first-class citizen for Leptos's Server-Side (#3063) * feat: WIP wasi integrations crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(server_fn): add generic types This commit adds `From` implementations for the `Req` and `Res` types using abstraction that are deemed "platform-agnostic". Indeed, both the `http` and `bytes` crates contains types that allows us to represent HTTP Request and Response, while being capable to target unconventional platforms (they even have `no-std` support). This allows the server_fn functions to target new platforms, for example, the `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(server_fn): generic types cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(integrations/wasi): make WASI a first-class citizen of leptos server-side Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * WIP: chore(any_spawner): make the futures::Executor runable Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * fix(server_fn): include `generic` in axum. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(any_spawner): some clippy suggestions I ran clippy in really annoying mode since I am still learning Rust and I want to write clean idiomatic code. I took suggestions that I thought made sense, if any maintainers think those are *too much*, I can relax those changes: * Use `core` instead of `std` to ease migration to `no_std` (https://rust-lang.github.io/rust-clippy/master/index.html#/std_instead_of_core) * Add documentation on exported types and statics * Bring some types in, with `use` * Add `#[non_exhaustive]` on types we are not sure we won't extend (https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums) * Add `#[inline]` to help the compiler when doing cross-crate compilation and Link-Time optimization is not enabled. (https://rust-lang.github.io/rust-clippy/master/index.html#/missing_inline_in_public_items) * Use generic types instead of anonymous `impl` params so callers can use the `::<>` turbofish syntax (https://rust-lang.github.io/rust-clippy/master/index.html#/impl_trait_in_params) Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(leptos_wasi): fine-tune linter and clean-up Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): better handling of server fn with form Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: cargo fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove custom clippy Remove clippy crate rules since it seems to make tests fails in tests. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: use `wasi` crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: revert changes to any_spawner Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: simpler crate features + cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(any_spawner): add local custom executor This commit adds a single-thread "local" custom executor, which is useful for environments like `wasm32` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): async runtime This commit adds a single-threaded async runtime for `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): error handling This commit adds error types for the users to implement better error handling. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: migrate integration off-tree Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix formatting Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove ref to leptos_wasi in Cargo.toml Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): remove explicit into_inter() Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): make generic mutually exclusive with other options Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> --------- Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>
2024-11-02 16:44:50 +00:00
[
"actix",
"generic",
],
2024-01-26 22:54:59 +00:00
[
"browser",
"actix",
],
[
"browser",
"axum",
],
[
"browser",
"reqwest",
],
Makes the `wasm32-wasip1/2` target a first-class citizen for Leptos's Server-Side (#3063) * feat: WIP wasi integrations crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(server_fn): add generic types This commit adds `From` implementations for the `Req` and `Res` types using abstraction that are deemed "platform-agnostic". Indeed, both the `http` and `bytes` crates contains types that allows us to represent HTTP Request and Response, while being capable to target unconventional platforms (they even have `no-std` support). This allows the server_fn functions to target new platforms, for example, the `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(server_fn): generic types cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(integrations/wasi): make WASI a first-class citizen of leptos server-side Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * WIP: chore(any_spawner): make the futures::Executor runable Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * fix(server_fn): include `generic` in axum. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(any_spawner): some clippy suggestions I ran clippy in really annoying mode since I am still learning Rust and I want to write clean idiomatic code. I took suggestions that I thought made sense, if any maintainers think those are *too much*, I can relax those changes: * Use `core` instead of `std` to ease migration to `no_std` (https://rust-lang.github.io/rust-clippy/master/index.html#/std_instead_of_core) * Add documentation on exported types and statics * Bring some types in, with `use` * Add `#[non_exhaustive]` on types we are not sure we won't extend (https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums) * Add `#[inline]` to help the compiler when doing cross-crate compilation and Link-Time optimization is not enabled. (https://rust-lang.github.io/rust-clippy/master/index.html#/missing_inline_in_public_items) * Use generic types instead of anonymous `impl` params so callers can use the `::<>` turbofish syntax (https://rust-lang.github.io/rust-clippy/master/index.html#/impl_trait_in_params) Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(leptos_wasi): fine-tune linter and clean-up Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): better handling of server fn with form Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: cargo fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove custom clippy Remove clippy crate rules since it seems to make tests fails in tests. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: use `wasi` crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: revert changes to any_spawner Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: simpler crate features + cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(any_spawner): add local custom executor This commit adds a single-thread "local" custom executor, which is useful for environments like `wasm32` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): async runtime This commit adds a single-threaded async runtime for `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): error handling This commit adds error types for the users to implement better error handling. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: migrate integration off-tree Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix formatting Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove ref to leptos_wasi in Cargo.toml Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): remove explicit into_inter() Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): make generic mutually exclusive with other options Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> --------- Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>
2024-11-02 16:44:50 +00:00
[
"browser",
"generic",
],
[
"default-tls",
"rustls",
],
[
"browser",
"ssr",
],
[
"axum-no-default",
"actix",
],
[
"axum-no-default",
"browser",
],
Makes the `wasm32-wasip1/2` target a first-class citizen for Leptos's Server-Side (#3063) * feat: WIP wasi integrations crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(server_fn): add generic types This commit adds `From` implementations for the `Req` and `Res` types using abstraction that are deemed "platform-agnostic". Indeed, both the `http` and `bytes` crates contains types that allows us to represent HTTP Request and Response, while being capable to target unconventional platforms (they even have `no-std` support). This allows the server_fn functions to target new platforms, for example, the `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(server_fn): generic types cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(integrations/wasi): make WASI a first-class citizen of leptos server-side Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * WIP: chore(any_spawner): make the futures::Executor runable Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * fix(server_fn): include `generic` in axum. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(any_spawner): some clippy suggestions I ran clippy in really annoying mode since I am still learning Rust and I want to write clean idiomatic code. I took suggestions that I thought made sense, if any maintainers think those are *too much*, I can relax those changes: * Use `core` instead of `std` to ease migration to `no_std` (https://rust-lang.github.io/rust-clippy/master/index.html#/std_instead_of_core) * Add documentation on exported types and statics * Bring some types in, with `use` * Add `#[non_exhaustive]` on types we are not sure we won't extend (https://rust-lang.github.io/rust-clippy/master/index.html#exhaustive_enums) * Add `#[inline]` to help the compiler when doing cross-crate compilation and Link-Time optimization is not enabled. (https://rust-lang.github.io/rust-clippy/master/index.html#/missing_inline_in_public_items) * Use generic types instead of anonymous `impl` params so callers can use the `::<>` turbofish syntax (https://rust-lang.github.io/rust-clippy/master/index.html#/impl_trait_in_params) Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(leptos_wasi): fine-tune linter and clean-up Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): better handling of server fn with form Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: cargo fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove custom clippy Remove clippy crate rules since it seems to make tests fails in tests. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: use `wasi` crate Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: revert changes to any_spawner Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: simpler crate features + cleanup Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(any_spawner): add local custom executor This commit adds a single-thread "local" custom executor, which is useful for environments like `wasm32` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): async runtime This commit adds a single-threaded async runtime for `wasm32-wasip*` targets. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * feat(leptos_wasi): error handling This commit adds error types for the users to implement better error handling. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: migrate integration off-tree Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix formatting Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore: remove ref to leptos_wasi in Cargo.toml Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): fix fmt Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): remove explicit into_inter() Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> * chore(ci): make generic mutually exclusive with other options Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu> --------- Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>
2024-11-02 16:44:50 +00:00
[
"axum-no-default",
"generic",
],
[
"rkyv",
"json",
],
[
"rkyv",
"cbor",
],
[
"rkyv",
"url",
],
[
"rkyv",
"serde-lite",
],
[
"url",
"json",
],
[
"url",
"cbor",
],
[
"url",
"serde-lite",
],
[
"postcard",
"json",
],
[
"postcard",
"cbor",
],
[
"postcard",
"url",
],
[
"postcard",
"serde-lite",
],
[
"postcard",
"rkyv",
],
2024-01-26 22:54:59 +00:00
]