refactor!: remove lepty-scoping feature and make its behaviour the default; deprecate scope members; bump MSRV; bump deps

This commit is contained in:
yiffyrusdev 2025-09-12 14:15:47 +05:00
commit ee1b401f47
No known key found for this signature in database
GPG key ID: FB83DFEAFB3F4709
4 changed files with 284 additions and 374 deletions

View file

@ -2,8 +2,8 @@
name = "define-styles"
version = "0.0.0"
edition = "2021"
rust-version = "1.82"
rust-version = "1.88"
publish = false
[dependencies]
sabry = {path = "../../", features = ["nightly"]}
sabry = { path = "../../", features = ["nightly"] }

View file

@ -1,7 +1,7 @@
[package]
name = "leptos-axum-sabry"
version = "0.1.0"
rust-version = "1.82"
rust-version = "1.88"
edition = "2021"
publish = false
@ -9,31 +9,31 @@ publish = false
crate-type = ["cdylib", "rlib"]
[dependencies]
leptos = { version = "^0.7" }
leptos_axum = { version = "^0.7", optional = true }
leptos_meta = { version = "^0.7" }
leptos_router = { version = "^0.7" }
axum = { version = "0.7", optional = true }
leptos = { version = "^0.8" }
leptos_axum = { version = "^0.8", optional = true }
leptos_meta = { version = "^0.8" }
leptos_router = { version = "^0.8" }
axum = { version = "0.8", optional = true }
console_error_panic_hook = "0.1"
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.5", features = ["fs"], optional = true }
tower = { version = "0.5", optional = true }
tower-http = { version = "0.6", features = ["fs"], optional = true }
wasm-bindgen = "=0.2.96"
thiserror = "1"
thiserror = "^1"
tracing = { version = "0.1", optional = true }
http = "1"
http = "^1"
# sabry with sass
sabry = {path = "../../", features = ["lepty-scoping"]}
sabry = { path = "../../" }
# our component library
leptos-components = {path = "../leptos-components"}
leptos-components = { path = "../leptos-components" }
[build-dependencies]
# sabry for build with sass
sabry = {path = "../../", features = ["build", "lepty-scoping"]}
sabry = { path = "../../", features = ["build"] }
# lets depend on our styles
define-styles = {path = "../define-styles"}
define-styles = { path = "../define-styles" }
[features]
hydrate = ["leptos/hydrate"]

View file

@ -1,7 +1,7 @@
[package]
name = "leptos-components"
version = "0.1.0"
rust-version = "1.82"
rust-version = "1.88"
edition = "2021"
publish = false
@ -13,14 +13,10 @@ leptos = { version = "^0.7" }
leptos_meta = { version = "^0.7" }
leptos_router = { version = "^0.7" }
sabry = { path = "../../", features = ["lepty-scoping", "const-scoping"] }
sabry = { path = "../../", features = ["const-scoping"] }
[build-dependencies]
sabry = { path = "../../", features = [
"build",
"lepty-scoping",
"const-scoping",
] }
sabry = { path = "../../", features = ["build", "const-scoping"] }
define-styles = { path = "../define-styles" }
[features]

View file

@ -2,15 +2,15 @@
name = "use-styles"
version = "0.0.0"
edition = "2021"
rust-version = "1.82"
rust-version = "1.88"
publish = false
[dependencies]
sabry = {path = "../../", features = ["nightly"]}
sabry = { path = "../../", features = ["nightly"] }
[build-dependencies]
sabry = {path = "../../", features = ["build", "nightly"]}
define-styles = {path = "../define-styles"}
sabry = { path = "../../", features = ["build", "nightly"] }
define-styles = { path = "../define-styles" }
[package.metadata.sabry]
css.bundle = "target/static/style.css"
@ -21,4 +21,4 @@ hash.size = 6
hash.collision = "error"
[package.metadata.sabry.lightningcss]
targets = {chrome = "120", firefox = "120", ie = "8"}
targets = { chrome = "120", firefox = "120", ie = "8" }