diff --git a/Cargo.toml b/Cargo.toml index d9d58395..210826a3 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 0582e57c..bb6eaa71 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 08cf2c54..7b567628 100644 --- a/src/service/admin/test_cmd/mod.rs +++ b/src/service/admin/test_cmd/mod.rs @@ -18,7 +18,7 @@ use crate::{debug_error, Result}; #[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))]