hot lib things again

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-28 19:55:53 -04:00 committed by June
parent 9c0c4c292c
commit 041a7a90f3
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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))]