Merge pull request #128 from akesson/workspace-features

Workspace features
This commit is contained in:
Greg Johnston 2023-01-07 14:19:56 -05:00 committed by GitHub
commit af7b93fa1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 44 additions and 43 deletions

View file

@ -23,10 +23,23 @@ members = [
]
exclude = ["benchmarks", "examples"]
[workspace.package]
version = "0.1.0-beta"
[workspace.dependencies]
leptos = { path = "./leptos", default-features = false, version = "0.1.0-beta" }
leptos_dom = { path = "./leptos_dom", default-features = false, version = "0.1.0-beta" }
leptos_macro = { path = "./leptos_macro", default-features = false, version = "0.1.0-beta" }
leptos_reactive = { path = "./leptos_reactive", default-features = false, version = "0.1.0-beta" }
leptos_server = { path = "./leptos_server", default-features = false, version = "0.1.0-beta" }
leptos_config = { path = "./leptos_config", default-features = false, version = "0.1.0-beta" }
leptos_router = { path = "./router", version = "0.1.0-beta" }
leptos_meta = { path = "./meta", default-feature = false, version = "0.1.0-beta" }
[profile.release]
codegen-units = 1
lto = true
opt-level = 'z'
[workspace.metadata.cargo-all-features]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]
skip_feature_sets = [["csr", "ssr"], ["csr", "hydrate"], ["ssr", "hydrate"]]

View file

@ -1,6 +1,6 @@
[package]
name = "leptos_actix"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"
@ -10,13 +10,7 @@ description = "Actix integrations for the Leptos web framework."
[dependencies]
actix-web = "4"
futures = "0.3"
leptos = { path = "../../leptos", default-features = false, version = "0.1.0-alpha", features = [
"ssr",
] }
leptos_meta = { path = "../../meta", default-features = false, version = "0.1.0-alpha", features = [
"ssr",
] }
leptos_router = { path = "../../router", default-features = false, version = "0.1.0-alpha", features = [
"ssr",
] }
leptos = { workspace = true, features = ["ssr"] }
leptos_meta = { workspace = true, features = ["ssr"] }
leptos_router = { workspace = true, features = ["ssr"] }
tokio = { version = "1.0", features = ["full"] }

View file

@ -1,6 +1,6 @@
[package]
name = "leptos_axum"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"
@ -8,20 +8,14 @@ repository = "https://github.com/gbj/leptos"
description = "Axum integrations for the Leptos web framework."
[dependencies]
axum = {version="0.6", features=["macros"]}
axum = { version = "0.6", features = ["macros"] }
derive_builder = "0.12.0"
futures = "0.3"
http = "0.2.8"
hyper = "0.14.23"
kdl = "4.6.0"
leptos = { path = "../../leptos", default-features = false, version = "0.1.0-beta", features = [
"ssr",
] }
leptos_meta = { path = "../../meta", default-features = false, version = "0.1.0-beta", features = [
"ssr",
] }
leptos_router = { path = "../../router", default-features = false, version = "0.1.0-beta", features = [
"ssr",
] }
leptos_config = { path = "../../leptos_config", default-features = false, version = "0.1.0-beta" }
leptos = { workspace = true, features = ["ssr"] }
leptos_meta = { workspace = true, features = ["ssr"] }
leptos_router = { workspace = true, features = ["ssr"] }
leptos_config.workspace = true
tokio = { version = "1.0", features = ["full"] }

View file

@ -1,6 +1,6 @@
[package]
name = "leptos"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"
@ -10,11 +10,11 @@ readme = "../README.md"
[dependencies]
cfg-if = "1"
leptos_config = { path = "../leptos_config", default-features = false, version = "0.1.0-beta" }
leptos_dom = { path = "../leptos_dom", default-features = false, version = "0.1.0-beta" }
leptos_macro = { path = "../leptos_macro", default-features = false, version = "0.1.0-beta" }
leptos_reactive = { path = "../leptos_reactive", default-features = false, version = "0.1.0-beta" }
leptos_server = { path = "../leptos_server", default-features = false, version = "0.1.0-beta" }
leptos_dom.workspace = true
leptos_macro.workspace = true
leptos_reactive.workspace = true
leptos_server.workspace = true
leptos_config.workspace = true
tracing = "0.1"
typed-builder = "0.11"

View file

@ -1,6 +1,6 @@
[package]
name = "leptos_dom"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"
@ -17,7 +17,7 @@ html-escape = "0.2"
indexmap = "1.9"
itertools = "0.10"
js-sys = "0.3"
leptos_reactive = { path = "../leptos_reactive", default-features = false, version = "0.1.0-beta" }
leptos_reactive.workspace = true
once_cell = "1"
pad-adapter = "0.1"
paste = "1"

View file

@ -1,6 +1,6 @@
[package]
name = "leptos_macro"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"
@ -22,15 +22,15 @@ quote = "1"
syn = { version = "1", features = ["full"] }
syn-rsx = "0.9"
uuid = { version = "1", features = ["v4"] }
leptos_dom = { path = "../leptos_dom", version = "0.1.0-beta" }
leptos_reactive = { path = "../leptos_reactive", version = "0.1.0-beta" }
leptos_server = { path = "../leptos_server", version = "0.1.0-beta" }
leptos_dom.workspace = true
leptos_reactive.workspace = true
leptos_server.workspace = true
lazy_static = "1.4"
[dev-dependencies]
log = "0.4"
typed-builder = "0.10"
leptos = { path = "../leptos" }
leptos.workspace = true
[features]
default = ["ssr"]

View file

@ -1,6 +1,6 @@
[package]
name = "leptos_reactive"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"

View file

@ -1,6 +1,6 @@
[package]
name = "leptos_server"
version = "0.1.0-beta"
version.workspace = true
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"
@ -8,8 +8,8 @@ repository = "https://github.com/gbj/leptos"
description = "RPC for the Leptos web framework."
[dependencies]
leptos_dom = { path = "../leptos_dom", default-features = false, version = "0.1.0-beta" }
leptos_reactive = { path = "../leptos_reactive", default-features = false, version = "0.1.0-beta" }
leptos_dom.workspace = true
leptos_reactive.workspace = true
form_urlencoded = "1"
gloo-net = "0.2"
lazy_static = "1"
@ -26,7 +26,7 @@ proc-macro2 = "1.0.47"
ciborium = "0.2.0"
[dev-dependencies]
leptos = { path = "../leptos", default-features = false }
leptos.workspace = true
[features]
csr = [

View file

@ -9,7 +9,7 @@ description = "Tools to set HTML metadata in the Leptos web framework."
[dependencies]
cfg-if = "1"
leptos = { path = "../leptos", version = "0.1.0-beta", default-features = false }
leptos.workspace = true
tracing = "0.1"
typed-builder = "0.11"

View file

@ -8,7 +8,7 @@ repository = "https://github.com/gbj/leptos"
description = "Router for the Leptos web framework."
[dependencies]
leptos = { path = "../leptos", version = "0.1.0-beta", default-features = false }
leptos.workspace = true
cfg-if = "1"
common_macros = "0.1"
gloo-net = "0.2"