* 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
21 lines
726 B
Rust
21 lines
726 B
Rust
//! Configuration of the CLI at runtime to enable certain experimental features.
|
|
|
|
/// Should we force the entropy to be used on the main exe?
|
|
///
|
|
/// This is used to verify that binaries are copied with different names such that they don't collide
|
|
/// and should generally be only enabled on certain platforms that require it.
|
|
pub(crate) fn should_force_entropy() -> bool {
|
|
std::env::var("DIOXUS_FORCE_ENTRY").is_ok()
|
|
}
|
|
|
|
/// Should the CLI not download any additional tools?
|
|
pub(crate) fn no_downloads() -> bool {
|
|
std::env::var("NO_DOWNLOADS").is_ok()
|
|
}
|
|
|
|
/// Should we test the installs?
|
|
#[allow(dead_code)] // -> used in tests only
|
|
pub(crate) fn test_installs() -> bool {
|
|
std::env::var("TEST_INSTALLS").is_ok()
|
|
}
|