publish new version of cli
note that we have to use a slightly outdated version of the hot reloading crate.
This commit is contained in:
1 parent
fdda6b9ffe
commit
c4a307ac95
3 files changed
+30
-31
No files matched your search
Generated
+17
-11
@@ -677,10 +677,11 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "dioxus-autofmt"
|
name = "dioxus-autofmt"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
source = "git+https://github.com/dioxuslabs/dioxus#915406666dba6df7ae977cfc735823c9a95b7bd4"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "935ac336dd077436505f2eda7b7b81515093e8a3fb352ac514cd6901dbd302e7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dioxus-rsx",
|
"dioxus-rsx",
|
||||||
"prettyplease",
|
"prettier-please",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -689,7 +690,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dioxus-cli"
|
name = "dioxus-cli"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"atty",
|
"atty",
|
||||||
@@ -743,7 +744,8 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "dioxus-core"
|
name = "dioxus-core"
|
||||||
version = "0.3.2"
|
version = "0.3.2"
|
||||||
source = "git+https://github.com/dioxuslabs/dioxus#915406666dba6df7ae977cfc735823c9a95b7bd4"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "bc602f0ca7030f80fe4abc47cc43ffa75c6e7f48208c2b3f6ae24ec7bc6f6618"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bumpalo",
|
"bumpalo",
|
||||||
"bumpslab",
|
"bumpslab",
|
||||||
@@ -761,7 +763,8 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "dioxus-html"
|
name = "dioxus-html"
|
||||||
version = "0.3.1"
|
version = "0.3.1"
|
||||||
source = "git+https://github.com/dioxuslabs/dioxus#915406666dba6df7ae977cfc735823c9a95b7bd4"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7682a6615e4e5a460cd3293ce420451abffb719c84c4b54e297b17365f601fb4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"dioxus-core",
|
"dioxus-core",
|
||||||
@@ -777,7 +780,8 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "dioxus-rsx"
|
name = "dioxus-rsx"
|
||||||
version = "0.0.3"
|
version = "0.0.3"
|
||||||
source = "git+https://github.com/dioxuslabs/dioxus#915406666dba6df7ae977cfc735823c9a95b7bd4"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e8544632e20f462a64f26502c91e7cf6ae3b30d82956e70543644d2c16b6659d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dioxus-core",
|
"dioxus-core",
|
||||||
"internment",
|
"internment",
|
||||||
@@ -2101,9 +2105,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "prettyplease"
|
name = "prettier-please"
|
||||||
version = "0.1.15"
|
version = "0.1.16"
|
||||||
source = "git+https://github.com/DioxusLabs/prettyplease-macro-fmt.git#de734495e2ca267afb7b20f7cd4fff88c7cb885c"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "be31b7957122175fcf33c6d8f54489a5262176020bf096026a86b308b7fa5b23"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"syn",
|
"syn",
|
||||||
@@ -2313,8 +2318,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rsx-rosetta"
|
name = "rsx-rosetta"
|
||||||
version = "0.0.0"
|
version = "0.3.0"
|
||||||
source = "git+https://github.com/dioxuslabs/dioxus#915406666dba6df7ae977cfc735823c9a95b7bd4"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "593810f58a97e3a45e23b84437d5323c2420b46f73cf38fe49133eb59a7524bb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"convert_case",
|
"convert_case",
|
||||||
"dioxus-autofmt",
|
"dioxus-autofmt",
|
||||||
|
|||||||
+6
-10
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "dioxus-cli"
|
name = "dioxus-cli"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
authors = ["Jonathan Kelley"]
|
authors = ["Jonathan Kelley"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "CLI tool for developing, testing, and publishing Dioxus apps"
|
description = "CLI tool for developing, testing, and publishing Dioxus apps"
|
||||||
@@ -77,15 +77,11 @@ ctrlc = "3.2.3"
|
|||||||
# dioxus-rsx = "0.0.1"
|
# dioxus-rsx = "0.0.1"
|
||||||
gitignore = "1.0.7"
|
gitignore = "1.0.7"
|
||||||
|
|
||||||
dioxus-rsx = { git = "https://github.com/DioxusLabs/dioxus" }
|
dioxus-rsx = { version = "0.0.3" }
|
||||||
dioxus-html = { git = "https://github.com/DioxusLabs/dioxus", features = [
|
dioxus-html = { version = "0.3", features = ["hot-reload-context"] }
|
||||||
"hot-reload-context",
|
dioxus-core = { version = "0.3", features = ["serialize"] }
|
||||||
] }
|
dioxus-autofmt = "0.3.0"
|
||||||
dioxus-core = { git = "https://github.com/DioxusLabs/dioxus", features = [
|
rsx-rosetta = { version = "0.3" }
|
||||||
"serialize",
|
|
||||||
] }
|
|
||||||
dioxus-autofmt = { git = "https://github.com/dioxuslabs/dioxus" }
|
|
||||||
rsx-rosetta = { git = "https://github.com/dioxuslabs/dioxus" }
|
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|||||||
+7
-10
@@ -138,10 +138,10 @@ pub async fn startup_hot_reload(ip: String, port: u16, config: CrateConfig) -> R
|
|||||||
|
|
||||||
let dist_path = config.out_dir.clone();
|
let dist_path = config.out_dir.clone();
|
||||||
let (reload_tx, _) = broadcast::channel(100);
|
let (reload_tx, _) = broadcast::channel(100);
|
||||||
let FileMapBuildResult { map, errors } = FileMap::<HtmlCtx>::create(config.crate_dir.clone())?;
|
let map = FileMap::<HtmlCtx>::new(config.crate_dir.clone());
|
||||||
for err in errors {
|
// for err in errors {
|
||||||
log::error!("{}", err);
|
// log::error!("{}", err);
|
||||||
}
|
// }
|
||||||
let file_map = Arc::new(Mutex::new(map));
|
let file_map = Arc::new(Mutex::new(map));
|
||||||
let build_manager = Arc::new(BuildManager {
|
let build_manager = Arc::new(BuildManager {
|
||||||
config: config.clone(),
|
config: config.clone(),
|
||||||
@@ -207,10 +207,10 @@ pub async fn startup_hot_reload(ip: String, port: u16, config: CrateConfig) -> R
|
|||||||
let mut map = file_map.lock().unwrap();
|
let mut map = file_map.lock().unwrap();
|
||||||
|
|
||||||
match map.update_rsx(&path, &crate_dir) {
|
match map.update_rsx(&path, &crate_dir) {
|
||||||
Ok(UpdateResult::UpdatedRsx(msgs)) => {
|
UpdateResult::UpdatedRsx(msgs) => {
|
||||||
messages.extend(msgs);
|
messages.extend(msgs);
|
||||||
}
|
}
|
||||||
Ok(UpdateResult::NeedsRebuild) => {
|
UpdateResult::NeedsRebuild => {
|
||||||
match build_manager.rebuild() {
|
match build_manager.rebuild() {
|
||||||
Ok(res) => {
|
Ok(res) => {
|
||||||
print_console_info(
|
print_console_info(
|
||||||
@@ -230,9 +230,6 @@ pub async fn startup_hot_reload(ip: String, port: u16, config: CrateConfig) -> R
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Err(err) => {
|
|
||||||
log::error!("{}", err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for msg in messages {
|
for msg in messages {
|
||||||
@@ -306,7 +303,7 @@ pub async fn startup_hot_reload(ip: String, port: u16, config: CrateConfig) -> R
|
|||||||
|
|
||||||
let mut router = Router::new().route("/_dioxus/ws", get(ws_handler));
|
let mut router = Router::new().route("/_dioxus/ws", get(ws_handler));
|
||||||
for proxy_config in config.dioxus_config.web.proxy.unwrap_or_default() {
|
for proxy_config in config.dioxus_config.web.proxy.unwrap_or_default() {
|
||||||
router = proxy::add_proxy(router, &proxy_config )?;
|
router = proxy::add_proxy(router, &proxy_config)?;
|
||||||
}
|
}
|
||||||
router = router.fallback(get_service(file_service).handle_error(
|
router = router.fallback(get_service(file_service).handle_error(
|
||||||
|error: std::io::Error| async move {
|
|error: std::io::Error| async move {
|
||||||
|
|||||||
Reference in new issue
Block a user