forked from rksm/hot-lib-reloader-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes rksm#36 the predicate currently isn't checked, which may cause false positives, but this is very unlikely to happen and this can be dealt with in the future. the relevant documentation and example have been adjusted. the documentation for #[no_mangle_if_debug] has been removed since it doesn't work with optimizations or the feature flag anyways. it should later be deprecated and phased out.
- Loading branch information
Showing
5 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ edition = "2021" | |
|
||
[lib] | ||
crate-type = ["rlib", "dylib"] | ||
|
||
[features] | ||
default = [] | ||
reload = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#[no_mangle] | ||
#[cfg_attr(feature = "reload", no_mangle)] | ||
pub fn do_stuff() { | ||
println!("step called"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters