feat: copy frameworks to Frameworks folder, detect linkers, custom target dirs (#4174)
* feat: copy frameworks to Frameworks folder * add dylib linking to patching * remove logging * rename __aslr_offset * fix android/linux * support linker flavor * support custom target dirs * custom cargo target dir support * whoops ios * dlsym doesn't exist on windows * look for the right main symbol per platform * distinction between mains * export main on windows * enbable rlib caching * add dx hash * adjust linking warnings * update tui with hotreload state * implement symbol flags * add flags * only run ranlib on darwin * enable lld * paths * add harness test for tls * wip: revert launch mobile * wip * fix fullstack mobile * fix a few bugs - long paths? - reverting back to original * pass-thru fuse-ld args * fix nan in render, fix empty archives * consider existing dep files if archive exists * fmt * drop msrv
This commit is contained in:
1 parent
751f1920c3
commit
0982c1ff8b
25 files changed
+1044
-315
No files matched your search
@@ -721,7 +721,13 @@ impl Output {
|
||||
frame.render_widget(
|
||||
Paragraph::new(Line::from(vec![
|
||||
"Hotreload: ".gray(),
|
||||
"rsx and assets".yellow(),
|
||||
if !state.runner.automatic_rebuilds {
|
||||
"disabled".dark_gray()
|
||||
} else if state.runner.use_hotpatch_engine {
|
||||
"hot-patching".yellow()
|
||||
} else {
|
||||
"rsx and assets".yellow()
|
||||
},
|
||||
])),
|
||||
meta_list[3],
|
||||
);
|
||||
|
||||
@@ -138,9 +138,10 @@ pub(crate) fn proxy_to(
|
||||
match res {
|
||||
Ok(res) => {
|
||||
// log assets at a different log level
|
||||
if uri.path().starts_with("/assets")
|
||||
|| uri.path().starts_with("/_dioxus")
|
||||
|| uri.path().starts_with("/public")
|
||||
if uri.path().starts_with("/assets/")
|
||||
|| uri.path().starts_with("/_dioxus/")
|
||||
|| uri.path().starts_with("/public/")
|
||||
|| uri.path().starts_with("/wasm/")
|
||||
{
|
||||
tracing::trace!(dx_src = ?TraceSrc::Dev, "[{}] {}", res.status().as_u16(), uri);
|
||||
} else {
|
||||
|
||||
@@ -341,15 +341,15 @@ impl AppServer {
|
||||
continue;
|
||||
};
|
||||
|
||||
// Update the most recent version of the file, so when we force a rebuild, we keep operating on the most recent version
|
||||
cached_file.most_recent = Some(new_contents);
|
||||
|
||||
// This assumes the two files are structured similarly. If they're not, we can't diff them
|
||||
let Some(changed_rsx) = dioxus_rsx_hotreload::diff_rsx(&new_file, &old_file) else {
|
||||
needs_full_rebuild = true;
|
||||
break;
|
||||
};
|
||||
|
||||
// Update the most recent version of the file, so when we force a rebuild, we keep operating on the most recent version
|
||||
cached_file.most_recent = Some(new_contents);
|
||||
|
||||
for ChangedRsx { old, new } in changed_rsx {
|
||||
let old_start = old.span().start();
|
||||
|
||||
|
||||
Reference in new issue
Block a user