Feat: Release Dioxus v0.6
This commit is contained in:
6 files changed
+179
-109
No files matched your search
Generated
+45
-45
@@ -2566,7 +2566,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "const-serialize"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"const-serialize",
|
||||
"const-serialize-macro",
|
||||
@@ -2576,7 +2576,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "const-serialize-macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -3374,7 +3374,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"criterion",
|
||||
"dioxus",
|
||||
@@ -3408,7 +3408,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-autofmt"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-rsx",
|
||||
"pretty_assertions",
|
||||
@@ -3421,7 +3421,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-check"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"indoc",
|
||||
"owo-colors",
|
||||
@@ -3433,7 +3433,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-cli"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"ansi-to-html",
|
||||
"ansi-to-tui",
|
||||
@@ -3526,14 +3526,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-cli-config"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-cli-opt"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"browserslist-rs",
|
||||
@@ -3606,7 +3606,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-config-macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -3614,7 +3614,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-core"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"const_format",
|
||||
"dioxus",
|
||||
@@ -3643,7 +3643,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-core-macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"convert_case 0.6.0",
|
||||
"dioxus",
|
||||
@@ -3659,14 +3659,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-core-types"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"once_cell",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-desktop"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"cocoa 0.25.0",
|
||||
@@ -3721,7 +3721,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-devtools"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-core",
|
||||
"dioxus-devtools-types",
|
||||
@@ -3736,7 +3736,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-devtools-types"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-core",
|
||||
"serde",
|
||||
@@ -3744,7 +3744,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-document"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus",
|
||||
"dioxus-core",
|
||||
@@ -3762,7 +3762,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-dx-wire-format"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"cargo_metadata",
|
||||
"serde",
|
||||
@@ -3771,7 +3771,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-examples"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"async-std",
|
||||
"base64 0.22.1",
|
||||
@@ -3796,7 +3796,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-ext"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-autofmt",
|
||||
"dioxus-rsx-rosetta",
|
||||
@@ -3807,7 +3807,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-fullstack"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"aws-lc-rs",
|
||||
@@ -3853,7 +3853,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-history"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus",
|
||||
"dioxus-core",
|
||||
@@ -3862,7 +3862,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-hooks"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus",
|
||||
"dioxus-core",
|
||||
@@ -3881,7 +3881,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-html"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"dioxus",
|
||||
@@ -3910,7 +3910,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-html-internal-macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"convert_case 0.6.0",
|
||||
"proc-macro2",
|
||||
@@ -3921,7 +3921,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-interpreter-js"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-core",
|
||||
"dioxus-core-types",
|
||||
@@ -3939,7 +3939,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-isrg"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"http 1.1.0",
|
||||
@@ -3951,7 +3951,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-lib"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus",
|
||||
"dioxus-config-macro",
|
||||
@@ -3967,7 +3967,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-liveview"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"axum 0.7.9",
|
||||
"dioxus",
|
||||
@@ -3996,7 +3996,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-logger"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"console_error_panic_hook",
|
||||
"dioxus-cli-config",
|
||||
@@ -4007,7 +4007,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-mobile"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-desktop",
|
||||
"dioxus-lib",
|
||||
@@ -4054,7 +4054,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-router"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"axum 0.7.9",
|
||||
"base64 0.22.1",
|
||||
@@ -4076,7 +4076,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-router-macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus",
|
||||
"proc-macro2",
|
||||
@@ -4087,7 +4087,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-rsx"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"prettier-please",
|
||||
"prettyplease",
|
||||
@@ -4099,7 +4099,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-rsx-hotreload"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus-core",
|
||||
"dioxus-core-types",
|
||||
@@ -4114,7 +4114,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-rsx-rosetta"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"convert_case 0.6.0",
|
||||
"dioxus-autofmt",
|
||||
@@ -4130,7 +4130,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-signals"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"dioxus",
|
||||
"dioxus-core",
|
||||
@@ -4151,7 +4151,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-ssr"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"askama_escape",
|
||||
"dioxus",
|
||||
@@ -4170,7 +4170,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus-web"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"ciborium",
|
||||
@@ -4207,7 +4207,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dioxus_server_macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"axum 0.7.9",
|
||||
"dioxus",
|
||||
@@ -5314,7 +5314,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "generational-box"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"criterion",
|
||||
"parking_lot",
|
||||
@@ -7363,7 +7363,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lazy-js-bundle"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
|
||||
[[package]]
|
||||
name = "lazy_static"
|
||||
@@ -7752,7 +7752,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "manganis"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"const-serialize",
|
||||
"manganis-core",
|
||||
@@ -7761,7 +7761,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "manganis-core"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"const-serialize",
|
||||
"dioxus",
|
||||
@@ -7773,7 +7773,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "manganis-macro"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"manganis",
|
||||
"manganis-core",
|
||||
@@ -11931,7 +11931,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "suspense-carousel"
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
dependencies = [
|
||||
"async-std",
|
||||
"dioxus",
|
||||
|
||||
+43
-43
@@ -102,52 +102,52 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
|
||||
# dependencies that are shared across packages
|
||||
[workspace.dependencies]
|
||||
dioxus = { path = "packages/dioxus", version = "0.6.0-rc.0" }
|
||||
dioxus-lib = { path = "packages/dioxus-lib", version = "0.6.0-rc.0" }
|
||||
dioxus-core = { path = "packages/core", version = "0.6.0-rc.0" }
|
||||
dioxus-core-types = { path = "packages/core-types", version = "0.6.0-rc.0" }
|
||||
dioxus-core-macro = { path = "packages/core-macro", version = "0.6.0-rc.0" }
|
||||
dioxus-config-macro = { path = "packages/config-macro", version = "0.6.0-rc.0" }
|
||||
dioxus-router = { path = "packages/router", version = "0.6.0-rc.0" }
|
||||
dioxus-router-macro = { path = "packages/router-macro", version = "0.6.0-rc.0" }
|
||||
dioxus-document = { path = "packages/document", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-history = { path = "packages/history", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-html = { path = "packages/html", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.6.0-rc.0" }
|
||||
dioxus-hooks = { path = "packages/hooks", version = "0.6.0-rc.0" }
|
||||
dioxus-web = { path = "packages/web", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-isrg = { path = "packages/isrg", version = "0.6.0-rc.0" }
|
||||
dioxus-ssr = { path = "packages/ssr", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-desktop = { path = "packages/desktop", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-mobile = { path = "packages/mobile", version = "0.6.0-rc.0" }
|
||||
dioxus-interpreter-js = { path = "packages/interpreter", version = "0.6.0-rc.0" }
|
||||
dioxus-liveview = { path = "packages/liveview", version = "0.6.0-rc.0" }
|
||||
dioxus-autofmt = { path = "packages/autofmt", version = "0.6.0-rc.0" }
|
||||
dioxus-check = { path = "packages/check", version = "0.6.0-rc.0" }
|
||||
dioxus-rsx = { path = "packages/rsx", version = "0.6.0-rc.0" }
|
||||
dioxus-rsx-hotreload = { path = "packages/rsx-hotreload", version = "0.6.0-rc.0" }
|
||||
dioxus-rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.6.0-rc.0" }
|
||||
dioxus-signals = { path = "packages/signals", version = "0.6.0-rc.0" }
|
||||
dioxus-cli-config = { path = "packages/cli-config", version = "0.6.0-rc.0" }
|
||||
dioxus-cli-opt = { path = "packages/cli-opt", version = "0.6.0-rc.0" }
|
||||
dioxus-devtools = { path = "packages/devtools", version = "0.6.0-rc.0" }
|
||||
dioxus-devtools-types = { path = "packages/devtools-types", version = "0.6.0-rc.0" }
|
||||
dioxus-fullstack = { path = "packages/fullstack", version = "0.6.0-rc.0" }
|
||||
dioxus_server_macro = { path = "packages/server-macro", version = "0.6.0-rc.0", default-features = false }
|
||||
dioxus-dx-wire-format = { path = "packages/dx-wire-format", version = "0.6.0-rc.0" }
|
||||
dioxus-logger = { path = "packages/logger", version = "0.6.0-rc.0" }
|
||||
const-serialize = { path = "packages/const-serialize", version = "0.6.0-rc.0" }
|
||||
const-serialize-macro = { path = "packages/const-serialize-macro", version = "0.6.0-rc.0" }
|
||||
generational-box = { path = "packages/generational-box", version = "0.6.0-rc.0" }
|
||||
lazy-js-bundle = { path = "packages/lazy-js-bundle", version = "0.6.0-rc.0" }
|
||||
dioxus = { path = "packages/dioxus", version = "0.6.0" }
|
||||
dioxus-lib = { path = "packages/dioxus-lib", version = "0.6.0" }
|
||||
dioxus-core = { path = "packages/core", version = "0.6.0" }
|
||||
dioxus-core-types = { path = "packages/core-types", version = "0.6.0" }
|
||||
dioxus-core-macro = { path = "packages/core-macro", version = "0.6.0" }
|
||||
dioxus-config-macro = { path = "packages/config-macro", version = "0.6.0" }
|
||||
dioxus-router = { path = "packages/router", version = "0.6.0" }
|
||||
dioxus-router-macro = { path = "packages/router-macro", version = "0.6.0" }
|
||||
dioxus-document = { path = "packages/document", version = "0.6.0", default-features = false }
|
||||
dioxus-history = { path = "packages/history", version = "0.6.0", default-features = false }
|
||||
dioxus-html = { path = "packages/html", version = "0.6.0", default-features = false }
|
||||
dioxus-html-internal-macro = { path = "packages/html-internal-macro", version = "0.6.0" }
|
||||
dioxus-hooks = { path = "packages/hooks", version = "0.6.0" }
|
||||
dioxus-web = { path = "packages/web", version = "0.6.0", default-features = false }
|
||||
dioxus-isrg = { path = "packages/isrg", version = "0.6.0" }
|
||||
dioxus-ssr = { path = "packages/ssr", version = "0.6.0", default-features = false }
|
||||
dioxus-desktop = { path = "packages/desktop", version = "0.6.0", default-features = false }
|
||||
dioxus-mobile = { path = "packages/mobile", version = "0.6.0" }
|
||||
dioxus-interpreter-js = { path = "packages/interpreter", version = "0.6.0" }
|
||||
dioxus-liveview = { path = "packages/liveview", version = "0.6.0" }
|
||||
dioxus-autofmt = { path = "packages/autofmt", version = "0.6.0" }
|
||||
dioxus-check = { path = "packages/check", version = "0.6.0" }
|
||||
dioxus-rsx = { path = "packages/rsx", version = "0.6.0" }
|
||||
dioxus-rsx-hotreload = { path = "packages/rsx-hotreload", version = "0.6.0" }
|
||||
dioxus-rsx-rosetta = { path = "packages/rsx-rosetta", version = "0.6.0" }
|
||||
dioxus-signals = { path = "packages/signals", version = "0.6.0" }
|
||||
dioxus-cli-config = { path = "packages/cli-config", version = "0.6.0" }
|
||||
dioxus-cli-opt = { path = "packages/cli-opt", version = "0.6.0" }
|
||||
dioxus-devtools = { path = "packages/devtools", version = "0.6.0" }
|
||||
dioxus-devtools-types = { path = "packages/devtools-types", version = "0.6.0" }
|
||||
dioxus-fullstack = { path = "packages/fullstack", version = "0.6.0" }
|
||||
dioxus_server_macro = { path = "packages/server-macro", version = "0.6.0", default-features = false }
|
||||
dioxus-dx-wire-format = { path = "packages/dx-wire-format", version = "0.6.0" }
|
||||
dioxus-logger = { path = "packages/logger", version = "0.6.0" }
|
||||
const-serialize = { path = "packages/const-serialize", version = "0.6.0" }
|
||||
const-serialize-macro = { path = "packages/const-serialize-macro", version = "0.6.0" }
|
||||
generational-box = { path = "packages/generational-box", version = "0.6.0" }
|
||||
lazy-js-bundle = { path = "packages/lazy-js-bundle", version = "0.6.0" }
|
||||
|
||||
manganis = { path = "packages/manganis/manganis", version = "0.6.0-rc.0" }
|
||||
manganis-core = { path = "packages/manganis/manganis-core", version = "0.6.0-rc.0" }
|
||||
manganis-macro = { path = "packages/manganis/manganis-macro", version = "0.6.0-rc.0" }
|
||||
manganis = { path = "packages/manganis/manganis", version = "0.6.0" }
|
||||
manganis-core = { path = "packages/manganis/manganis-core", version = "0.6.0" }
|
||||
manganis-macro = { path = "packages/manganis/manganis-macro", version = "0.6.0" }
|
||||
|
||||
warnings = { version = "0.2.1" }
|
||||
|
||||
@@ -289,7 +289,7 @@ documentation = "https://dioxuslabs.com"
|
||||
keywords = ["dom", "ui", "gui", "react", "wasm"]
|
||||
rust-version = "1.79.0"
|
||||
publish = false
|
||||
version = "0.6.0-rc.0"
|
||||
version = "0.6.0"
|
||||
|
||||
[dependencies]
|
||||
reqwest = { workspace = true, features = ["json"], optional = true }
|
||||
|
||||
@@ -1,20 +1,10 @@
|
||||
<div align="center">
|
||||
<style>
|
||||
@media (prefers-color-scheme: dark) { .darkmode-image { display: none; } }
|
||||
@media (prefers-color-scheme: light) { .lightmode-image { display: none; } }
|
||||
</style>
|
||||
<img
|
||||
src="https://github.com/user-attachments/assets/6c7e227e-44ff-4e53-824a-67949051149c"
|
||||
alt="Build web, desktop, and mobile apps with a single codebase."
|
||||
width="100%"
|
||||
class="darkmode-image"
|
||||
>
|
||||
<img
|
||||
src="https://github.com/user-attachments/assets/9c6a5fac-806d-4391-80d0-d87d63c406eb"
|
||||
alt="Build web, desktop, and mobile apps with a single codebase."
|
||||
width="100%"
|
||||
class="lightmode-image"
|
||||
>
|
||||
<div>
|
||||
<a href=https://dioxuslabs.com/learn/0.6/getting_started>Getting Started</a> | <a href="https://dioxuslabs.com/learn/0.6">Book (0.6)</a> | <a href="https://github.com/DioxusLabs/dioxus/tree/main/examples">Examples</a>
|
||||
</div>
|
||||
|
||||
@@ -1,20 +1,10 @@
|
||||
<div align="center">
|
||||
<style>
|
||||
@media (prefers-color-scheme: dark) { .darkmode-image { display: none; } }
|
||||
@media (prefers-color-scheme: light) { .lightmode-image { display: none; } }
|
||||
</style>
|
||||
<img
|
||||
src="https://github.com/user-attachments/assets/6c7e227e-44ff-4e53-824a-67949051149c"
|
||||
alt="Build web, desktop, and mobile apps with a single codebase."
|
||||
width="100%"
|
||||
class="darkmode-image"
|
||||
>
|
||||
<img
|
||||
src="https://github.com/user-attachments/assets/9c6a5fac-806d-4391-80d0-d87d63c406eb"
|
||||
alt="Build web, desktop, and mobile apps with a single codebase."
|
||||
width="100%"
|
||||
class="lightmode-image"
|
||||
>
|
||||
<div>
|
||||
<a href=https://dioxuslabs.com/learn/0.6/getting_started>Getting Started</a> | <a href="https://dioxuslabs.com/learn/0.6">Book (0.6)</a> | <a href="https://github.com/DioxusLabs/dioxus/tree/main/examples">Examples</a>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "dioxus-logger"
|
||||
version = { workspace = true }
|
||||
edition = "2021"
|
||||
description = "A logging utility to provide a standard interface whether you're targetting web desktop, fullstack, and more."
|
||||
description = "A logging utility to provide a standard interface whether you're targeting web desktop, fullstack, and more."
|
||||
authors = ["DogeDark", "Jonathan Kelley"]
|
||||
repository = "https://github.com/dioxuslabs/dioxus"
|
||||
homepage = "https://github.com/dioxuslabs/dioxus"
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
<div align="center">
|
||||
<h1>📡 Dioxus Logger 🛰️</h1>
|
||||
<p><strong>A logging utility to provide a standard interface whether you're targeting web, desktop, fullstack, and more.</strong></p>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<!-- Crates version -->
|
||||
<a href="https://crates.io/crates/dioxus-logger">
|
||||
<img src="https://img.shields.io/crates/v/dioxus-logger.svg?style=flat-square"
|
||||
alt="Crates.io version" />
|
||||
</a>
|
||||
<!-- Downloads -->
|
||||
<a href="https://crates.io/crates/dioxus-logger">
|
||||
<img src="https://img.shields.io/crates/d/dioxus-logger.svg?style=flat-square"
|
||||
alt="Download" />
|
||||
</a>
|
||||
<!-- docs -->
|
||||
<a href="https://docs.rs/dioxus-logger">
|
||||
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
|
||||
alt="docs.rs docs" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
-----
|
||||
|
||||
`dioxus-logger` is a basic cross-platform facade for logging in [Dioxus](https://dioxuslabs.com/) that uses the [tracing](https://crates.io/crates/tracing) crate.
|
||||
|
||||
|
||||
```rust
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_logger::tracing::{Level, info};
|
||||
|
||||
fn main() {
|
||||
dioxus_logger::init(Level::INFO).expect("logger failed to init");
|
||||
dioxus::launch(App);
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn App() -> Element {
|
||||
info!("App rendered");
|
||||
rsx! {
|
||||
p { "hi" }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Dioxus support
|
||||
|
||||
As of v0.6, dioxus_logger is part of dioxus itself. Dioxus will call `init` with a default Level, though you can still override the default with `init`.
|
||||
|
||||
```rust
|
||||
use dioxus::prelude::*;
|
||||
use dioxus::logger::tracing::{Level, info};
|
||||
|
||||
fn main() {
|
||||
dioxus::logger::init(Level::INFO).expect("logger failed to init");
|
||||
dioxus::launch(App);
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn App() -> Element {
|
||||
info!("App rendered");
|
||||
rsx! {
|
||||
p { "hi" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
|
||||
## Platform Support
|
||||
Dioxus logger will eventually support every target that Dioxus does. Currently mobile and TUI are not supported.
|
||||
|
||||
## Installation
|
||||
`dioxus_logger` is part of Dioxus v0.6. If you're using Dioxus v0.6, then no installation is required!
|
||||
|
||||
|
||||
If you're on Dioxus v0.5 and below, you can add `dioxus-logger` to your application by adding it to your dependencies.
|
||||
```toml
|
||||
[dependencies]
|
||||
dioxus-logger = "0.5"
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
This project is licensed under the [MIT license].
|
||||
|
||||
[mit license]: ./LICENSE
|
||||
|
||||
Every contribution intentionally submitted for inclusion in `dioxus-logger` by you, shall be licensed as MIT, without any additional terms or conditions.
|
||||
Reference in new issue
Block a user