leptos/leptos_macro/Cargo.toml

87 lines
1.8 KiB
TOML
Raw Permalink Normal View History

2022-07-31 20:46:14 +00:00
[package]
name = "leptos_macro"
2024-11-04 01:19:57 +00:00
version = "0.7.0-rc1"
2022-10-07 10:50:21 +00:00
authors = ["Greg Johnston"]
license = "MIT"
repository = "https://github.com/leptos-rs/leptos"
2022-10-07 10:50:21 +00:00
description = "view macro for the Leptos web framework."
readme = "../README.md"
2024-02-28 12:19:09 +00:00
rust-version.workspace = true
edition.workspace = true
2022-07-31 20:46:14 +00:00
[lib]
proc-macro = true
[dependencies]
attribute-derive = { version = "0.10.2", features = ["syn-full"] }
2024-08-11 00:01:41 +00:00
cfg-if = "1.0"
html-escape = "0.2.13"
itertools = "0.13.0"
prettyplease = "0.2.25"
proc-macro-error2 = { version = "2.0", default-features = false }
2024-08-11 00:01:41 +00:00
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full"] }
rstml = "0.12.0"
leptos_hot_reload = { workspace = true }
server_fn_macro = { workspace = true }
convert_case = "0.6.0"
uuid = { version = "1.11", features = ["v4"] }
tracing = { version = "0.1.40", optional = true }
[dev-dependencies]
2024-08-11 00:01:41 +00:00
log = "0.4.22"
typed-builder = "0.20.0"
2024-08-11 00:01:41 +00:00
trybuild = "1.0"
leptos = { path = "../leptos" }
2024-08-01 16:04:14 +00:00
server_fn = { path = "../server_fn", features = ["cbor"] }
insta = "1.41"
2024-08-11 00:01:41 +00:00
serde = "1.0"
2022-09-01 14:39:04 +00:00
[features]
csr = []
hydrate = []
2024-08-02 13:24:51 +00:00
ssr = ["server_fn_macro/ssr", "leptos/ssr"]
nightly = ["server_fn_macro/nightly"]
tracing = ["dep:tracing"]
2023-09-08 20:33:00 +00:00
experimental-islands = []
trace-component-props = []
actix = ["server_fn_macro/actix"]
axum = ["server_fn_macro/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
generic = ["server_fn_macro/generic"]
2022-11-03 12:08:03 +00:00
[package.metadata.cargo-all-features]
denylist = ["nightly", "tracing", "trace-component-props"]
skip_feature_sets = [
2024-10-14 14:18:38 +00:00
[
"csr",
"hydrate",
],
[
"hydrate",
"csr",
],
[
"hydrate",
"ssr",
],
[
"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",
],
[
"generic",
"axum",
],
]
[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(erase_components)'] }