hot lib things again
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
9c0c4c292c
commit
041a7a90f3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))]
|
||||
|
|
Loading…
Reference in New Issue