mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-28 07:52:34 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98f18e7c31 | ||
|
|
3f34d9bb23 | ||
|
|
44db400f6b | ||
|
|
3a5730800c |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -10,4 +10,5 @@ Cargo.lock
|
||||
.direnv
|
||||
.envrc
|
||||
|
||||
.vscode
|
||||
.vscode
|
||||
vendor
|
||||
28
Cargo.toml
28
Cargo.toml
@@ -26,22 +26,22 @@ members = [
|
||||
exclude = ["benchmarks", "examples"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.5.4"
|
||||
version = "0.5.6"
|
||||
|
||||
[workspace.dependencies]
|
||||
leptos = { path = "./leptos", version = "0.5.4" }
|
||||
leptos_dom = { path = "./leptos_dom", version = "0.5.4" }
|
||||
leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.5.4" }
|
||||
leptos_macro = { path = "./leptos_macro", version = "0.5.4" }
|
||||
leptos_reactive = { path = "./leptos_reactive", version = "0.5.4" }
|
||||
leptos_server = { path = "./leptos_server", version = "0.5.4" }
|
||||
server_fn = { path = "./server_fn", version = "0.5.4" }
|
||||
server_fn_macro = { path = "./server_fn_macro", version = "0.5.4" }
|
||||
server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.5.4" }
|
||||
leptos_config = { path = "./leptos_config", version = "0.5.4" }
|
||||
leptos_router = { path = "./router", version = "0.5.4" }
|
||||
leptos_meta = { path = "./meta", version = "0.5.4" }
|
||||
leptos_integration_utils = { path = "./integrations/utils", version = "0.5.4" }
|
||||
leptos = { path = "./leptos", version = "0.5.6" }
|
||||
leptos_dom = { path = "./leptos_dom", version = "0.5.6" }
|
||||
leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.5.6" }
|
||||
leptos_macro = { path = "./leptos_macro", version = "0.5.6" }
|
||||
leptos_reactive = { path = "./leptos_reactive", version = "0.5.6" }
|
||||
leptos_server = { path = "./leptos_server", version = "0.5.6" }
|
||||
server_fn = { path = "./server_fn", version = "0.5.6" }
|
||||
server_fn_macro = { path = "./server_fn_macro", version = "0.5.6" }
|
||||
server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.5.6" }
|
||||
leptos_config = { path = "./leptos_config", version = "0.5.6" }
|
||||
leptos_router = { path = "./router", version = "0.5.6" }
|
||||
leptos_meta = { path = "./meta", version = "0.5.6" }
|
||||
leptos_integration_utils = { path = "./integrations/utils", version = "0.5.6" }
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//! To run in this environment, you need to disable the default feature set and enable
|
||||
//! the `wasm` feature on `leptos_axum` in your `Cargo.toml`.
|
||||
//! ```toml
|
||||
//! leptos_axum = { version = "0.5.4", default-features = false, features = ["wasm"] }
|
||||
//! leptos_axum = { version = "", default-features = false, features = ["wasm"] }
|
||||
//! ```
|
||||
//!
|
||||
//! ## Features
|
||||
|
||||
@@ -26,7 +26,7 @@ bytecheck = { version = "0.7", features = [
|
||||
rustc-hash = "1"
|
||||
serde-wasm-bindgen = "0.5"
|
||||
serde_json = "1"
|
||||
spin-sdk = { git = "https://github.com/fermyon/spin", tag = "v2.0.1", optional = true }
|
||||
spin-sdk = { version = "2", optional = true }
|
||||
base64 = "0.21"
|
||||
thiserror = "1"
|
||||
tokio = { version = "1", features = [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "leptos_meta"
|
||||
version = "0.5.4"
|
||||
version = "0.5.6"
|
||||
edition = "2021"
|
||||
authors = ["Greg Johnston"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "leptos_router"
|
||||
version = "0.5.4"
|
||||
version = "0.5.6"
|
||||
edition = "2021"
|
||||
authors = ["Greg Johnston"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -351,6 +351,7 @@ pub fn server_macro_impl(
|
||||
}
|
||||
|
||||
struct ServerFnName {
|
||||
_attrs: Vec<Attribute>,
|
||||
struct_name: Ident,
|
||||
_comma: Option<Token![,]>,
|
||||
prefix: Option<Literal>,
|
||||
@@ -362,6 +363,7 @@ struct ServerFnName {
|
||||
|
||||
impl Parse for ServerFnName {
|
||||
fn parse(input: ParseStream) -> syn::Result<Self> {
|
||||
let _attrs: Vec<Attribute> = input.call(Attribute::parse_outer)?;
|
||||
let struct_name = input.parse()?;
|
||||
let _comma = input.parse()?;
|
||||
let prefix = input.parse()?;
|
||||
@@ -382,6 +384,7 @@ impl Parse for ServerFnName {
|
||||
let fn_path = input.parse()?;
|
||||
|
||||
Ok(Self {
|
||||
_attrs,
|
||||
struct_name,
|
||||
_comma,
|
||||
prefix,
|
||||
@@ -412,7 +415,7 @@ struct ServerFnBody {
|
||||
/// The custom rusty variant of parsing rsx!
|
||||
impl Parse for ServerFnBody {
|
||||
fn parse(input: ParseStream) -> Result<Self> {
|
||||
let attrs: Vec<Attribute> = input.call(Attribute::parse_outer)?;
|
||||
let mut attrs: Vec<Attribute> = input.call(Attribute::parse_outer)?;
|
||||
let vis: Visibility = input.parse()?;
|
||||
|
||||
let async_token = input.parse()?;
|
||||
@@ -452,6 +455,12 @@ impl Parse for ServerFnBody {
|
||||
Some((value.unwrap_or_default(), attr.path.span()))
|
||||
})
|
||||
.collect();
|
||||
attrs.retain(|attr| {
|
||||
let Meta::NameValue(attr) = &attr.meta else {
|
||||
return true;
|
||||
};
|
||||
!attr.path.is_ident("doc")
|
||||
});
|
||||
|
||||
Ok(Self {
|
||||
vis,
|
||||
|
||||
Reference in New Issue
Block a user