diff --git a/Cargo.toml b/Cargo.toml index d9d5839575eef13510ef5db2ab189c705451aea0..210826a3772a8a851eb43bb39c548f6e30de620b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -470,10 +470,11 @@ systemd-units = { unit-name = "conduwuit" } [profile.dev] -debug = 0 lto = 'off' codegen-units = 512 incremental = true +#panic = "abort" + # seems to speed up continuous debug compilations [profile.dev.build-override] opt-level = 3 diff --git a/hot_lib/Cargo.toml b/hot_lib/Cargo.toml index 0582e57c0b8ee7acac0e6eaaa7ce624d6d59d370..bb6eaa713d682b7b23ac7c586ebdf84861711d97 100644 --- a/hot_lib/Cargo.toml +++ b/hot_lib/Cargo.toml @@ -5,3 +5,6 @@ edition = "2021" [lib] crate-type = ["rlib", "dylib"] + +# cargo watch -w hot_lib -x 'build -p hot_lib' +# ^this will rebuild upon cargo detecting any changes diff --git a/src/service/admin/test_cmd/mod.rs b/src/service/admin/test_cmd/mod.rs index 08cf2c54585692373db3cece57acff3780631b05..7b567628e434014c24c5781775af4f667bd0b023 100644 --- a/src/service/admin/test_cmd/mod.rs +++ b/src/service/admin/test_cmd/mod.rs @@ -18,7 +18,7 @@ #[hot_lib_reloader::hot_module(dylib = "lib")] mod hot_lib_funcs { // these will be functions from lib.rs, so `use hot_lib_funcs::test_command;` - hot_functions_from_file!("lib/src/lib.rs"); + hot_functions_from_file!("hot_lib/src/lib.rs"); } #[cfg_attr(test, derive(Debug))]