chore: use workspace edition for examples and crates (#2816)

This commit is contained in:
mahmoud-eltahawy 2024-08-13 02:25:47 +03:00 committed by GitHub
parent 7b62ad44d2
commit 20af4928b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
28 changed files with 35 additions and 34 deletions

View File

@ -41,6 +41,7 @@ exclude = ["benchmarks", "examples"]
[workspace.package] [workspace.package]
version = "0.7.0-beta" version = "0.7.0-beta"
edition = "2021"
rust-version = "1.75" rust-version = "1.75"
[workspace.dependencies] [workspace.dependencies]

View File

@ -1,6 +1,5 @@
[package] [package]
name = "throw_error" name = "throw_error"
edition = "2021"
version = "0.2.0-beta" version = "0.2.0-beta"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
@ -8,6 +7,7 @@ readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Utilities for wrapping, throwing, and catching errors." description = "Utilities for wrapping, throwing, and catching errors."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
pin-project-lite = "0.2.14" pin-project-lite = "0.2.14"

View File

@ -1,12 +1,12 @@
[package] [package]
name = "any_spawner" name = "any_spawner"
edition = "2021"
version = "0.1.1" version = "0.1.1"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Spawn asynchronous tasks in an executor-independent way." description = "Spawn asynchronous tasks in an executor-independent way."
edition.workspace = true
[dependencies] [dependencies]
futures = "0.3.30" futures = "0.3.30"

View File

@ -1,6 +1,5 @@
[package] [package]
name = "const_str_slice_concat" name = "const_str_slice_concat"
edition = "2021"
version = "0.1.0" version = "0.1.0"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
@ -8,5 +7,6 @@ readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Utilities for const concatenation of string slices." description = "Utilities for const concatenation of string slices."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]

View File

@ -1,6 +1,5 @@
[package] [package]
name = "either_of" name = "either_of"
edition = "2021"
version = "0.1.0" version = "0.1.0"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
@ -8,6 +7,7 @@ readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Utilities for working with enumerated types that contain one of 2..n other types." description = "Utilities for working with enumerated types that contain one of 2..n other types."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
pin-project-lite = "0.2.14" pin-project-lite = "0.2.14"

View File

@ -1,6 +1,5 @@
[package] [package]
name = "hydration_context" name = "hydration_context"
edition = "2021"
version = "0.2.0-beta" version = "0.2.0-beta"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
@ -8,6 +7,7 @@ readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Utilities for sharing data between web servers and client-side web applications." description = "Utilities for sharing data between web servers and client-side web applications."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
throw_error = { workspace = true } throw_error = { workspace = true }

View File

@ -1,12 +1,12 @@
[package] [package]
name = "leptos_actix" name = "leptos_actix"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Actix integrations for the Leptos web framework." description = "Actix integrations for the Leptos web framework."
version = { workspace = true }
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
actix-http = "3.8" actix-http = "3.8"

View File

@ -1,12 +1,12 @@
[package] [package]
name = "leptos_axum" name = "leptos_axum"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Axum integrations for the Leptos web framework." description = "Axum integrations for the Leptos web framework."
version = { workspace = true }
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
any_spawner = { workspace = true, features = ["tokio"] } any_spawner = { workspace = true, features = ["tokio"] }

View File

@ -1,12 +1,12 @@
[package] [package]
name = "leptos_integration_utils" name = "leptos_integration_utils"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Utilities to help build server integrations for the Leptos web framework." description = "Utilities to help build server integrations for the Leptos web framework."
version = { workspace = true }
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
futures = "0.3.30" futures = "0.3.30"

View File

@ -1,13 +1,13 @@
[package] [package]
name = "leptos" name = "leptos"
version = { workspace = true } version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Leptos is a full-stack, isomorphic Rust web framework leveraging fine-grained reactivity to build declarative user interfaces." description = "Leptos is a full-stack, isomorphic Rust web framework leveraging fine-grained reactivity to build declarative user interfaces."
readme = "../README.md" readme = "../README.md"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
throw_error = { workspace = true } throw_error = { workspace = true }

View File

@ -1,13 +1,13 @@
[package] [package]
name = "leptos_config" name = "leptos_config"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Configuration for the Leptos web framework." description = "Configuration for the Leptos web framework."
readme = "../README.md" readme = "../README.md"
version = { workspace = true }
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
config = { version = "0.14.0", default-features = false, features = [ config = { version = "0.14.0", default-features = false, features = [

View File

@ -1,12 +1,12 @@
[package] [package]
name = "leptos_dom" name = "leptos_dom"
version = { workspace = true } version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "DOM operations for the Leptos web framework." description = "DOM operations for the Leptos web framework."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
tachys = { workspace = true } tachys = { workspace = true }

View File

@ -1,13 +1,13 @@
[package] [package]
name = "leptos_hot_reload" name = "leptos_hot_reload"
version = { workspace = true } version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Utility types used for dev mode and hot-reloading for the Leptos web framework." description = "Utility types used for dev mode and hot-reloading for the Leptos web framework."
readme = "../README.md" readme = "../README.md"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
anyhow = "1.0" anyhow = "1.0"

View File

@ -1,13 +1,13 @@
[package] [package]
name = "leptos_macro" name = "leptos_macro"
version = "0.7.0-beta" version = "0.7.0-beta"
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "view macro for the Leptos web framework." description = "view macro for the Leptos web framework."
readme = "../README.md" readme = "../README.md"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -1,13 +1,13 @@
[package] [package]
name = "leptos_server" name = "leptos_server"
version = { workspace = true } version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "RPC for the Leptos web framework." description = "RPC for the Leptos web framework."
readme = "../README.md" readme = "../README.md"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
base64 = "0.22.1" base64 = "0.22.1"

View File

@ -1,12 +1,12 @@
[package] [package]
name = "leptos_meta" name = "leptos_meta"
version = "0.7.0-beta" version = "0.7.0-beta"
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Tools to set HTML metadata in the Leptos web framework." description = "Tools to set HTML metadata in the Leptos web framework."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
leptos = { workspace = true } leptos = { workspace = true }

View File

@ -1,12 +1,12 @@
[package] [package]
name = "next_tuple" name = "next_tuple"
version = "0.1.0-beta" version = "0.1.0-beta"
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "A trait to build and extend tuples." description = "A trait to build and extend tuples."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]

View File

@ -1,12 +1,12 @@
[package] [package]
name = "oco_ref" name = "oco_ref"
edition = "2021"
version = "0.2.0" version = "0.2.0"
authors = ["Danik Vitek", "Greg Johnston"] authors = ["Danik Vitek", "Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "A smart pointer for storing immutable values with relatively-cheap cloning. (Like a `Cow` meets an `Rc`!)" description = "A smart pointer for storing immutable values with relatively-cheap cloning. (Like a `Cow` meets an `Rc`!)"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
serde = "1.0" serde = "1.0"

View File

@ -1,6 +1,5 @@
[package] [package]
name = "or_poisoned" name = "or_poisoned"
edition = "2021"
version = "0.1.0" version = "0.1.0"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
@ -8,5 +7,6 @@ readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Unwrap std lock guards in a semantic way." description = "Unwrap std lock guards in a semantic way."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]

View File

@ -1,13 +1,13 @@
[package] [package]
name = "reactive_graph" name = "reactive_graph"
version = "0.1.0-beta" version = "0.1.0-beta"
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "A fine-grained reactive graph for building user interfaces." description = "A fine-grained reactive graph for building user interfaces."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
any_spawner = { workspace = true } any_spawner = { workspace = true }

View File

@ -1,8 +1,8 @@
[package] [package]
name = "reactive_stores" name = "reactive_stores"
edition = "2021"
version = "0.1.0-beta" version = "0.1.0-beta"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
guardian = "1.2" guardian = "1.2"

View File

@ -1,8 +1,8 @@
[package] [package]
name = "reactive_stores_macro" name = "reactive_stores_macro"
edition = "2021"
version = "0.1.0-beta" version = "0.1.0-beta"
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -1,13 +1,13 @@
[package] [package]
name = "leptos_router" name = "leptos_router"
version = "0.7.0-beta" version = "0.7.0-beta"
edition = "2021"
authors = ["Greg Johnston", "Ben Wishovich"] authors = ["Greg Johnston", "Ben Wishovich"]
license = "MIT" license = "MIT"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Router for the Leptos web framework." description = "Router for the Leptos web framework."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
leptos = { workspace = true } leptos = { workspace = true }

View File

@ -1,7 +1,7 @@
[package] [package]
name = "leptos_router_macro" name = "leptos_router_macro"
edition = "2021"
version.workspace = true version.workspace = true
edition.workspace = true
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -1,13 +1,13 @@
[package] [package]
name = "server_fn" name = "server_fn"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston", "Ben Wishovich"] authors = ["Greg Johnston", "Ben Wishovich"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "RPC for any web framework." description = "RPC for any web framework."
readme = "../README.md" readme = "../README.md"
version = { workspace = true }
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
throw_error = { workspace = true } throw_error = { workspace = true }

View File

@ -1,11 +1,11 @@
[package] [package]
name = "server_fn_macro_default" name = "server_fn_macro_default"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "The default implementation of the server_fn macro without a context" description = "The default implementation of the server_fn macro without a context"
version = { workspace = true }
edition.workspace = true
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -1,12 +1,12 @@
[package] [package]
name = "server_fn_macro" name = "server_fn_macro"
version = { workspace = true }
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "RPC for any web framework." description = "RPC for any web framework."
readme = "../README.md" readme = "../README.md"
version = { workspace = true }
edition.workspace = true
[dependencies] [dependencies]
quote = "1.0" quote = "1.0"

View File

@ -1,13 +1,13 @@
[package] [package]
name = "tachys" name = "tachys"
version = "0.1.0-beta" version = "0.1.0-beta"
edition = "2021"
authors = ["Greg Johnston"] authors = ["Greg Johnston"]
license = "MIT" license = "MIT"
readme = "../README.md" readme = "../README.md"
repository = "https://github.com/leptos-rs/leptos" repository = "https://github.com/leptos-rs/leptos"
description = "Tools for building reactivity-agnostic, renderer-generic, statically-typed view trees for user interface libraries." description = "Tools for building reactivity-agnostic, renderer-generic, statically-typed view trees for user interface libraries."
rust-version.workspace = true rust-version.workspace = true
edition.workspace = true
[dependencies] [dependencies]
throw_error = { workspace = true } throw_error = { workspace = true }