File tree Expand file tree Collapse file tree 3 files changed +4
-19
lines changed Expand file tree Collapse file tree 3 files changed +4
-19
lines changed Original file line number Diff line number Diff line change 1
1
# Just manual: https://github.com/casey/just
2
2
3
3
check :
4
- cargo hack --each-feature --exclude-all-features clippy
4
+ cargo hack --each-feature --exclude-all-features clippy --manifest-path rubicon / Cargo.toml
5
5
6
6
test :
7
7
cargo run --manifest-path test-crates/ bin/ Cargo.toml
8
-
9
- build :
10
- #!/usr/bin/env bash -eux
11
- cd rubicon
12
-
13
- export RUSTFLAGS=" -Clink-arg=-undefined -Clink-arg=dynamic_lookup"
14
-
15
- echo " ======== Regular build ========"
16
- cargo build
17
- nm target/ debug/ librubicon.dylib | grep -E ' RUBICON_(TL|PL)_SAMPLE'
18
-
19
- echo " ======== Export globals ========"
20
- cargo build --features export-globals
21
- nm target/ debug/ librubicon.dylib | grep -E ' RUBICON_(TL|PL)_SAMPLE'
22
-
23
- echo " ======== Import globals ========"
24
- cargo build --features import-globals
25
- nm target/ debug/ librubicon.dylib | grep -E ' RUBICON_(TL|PL)_SAMPLE'
Original file line number Diff line number Diff line change 1
1
#[ cfg( all( feature = "export-globals" , feature = "import-globals" ) ) ]
2
2
compile_error ! ( "The features `export-globals` and `import-globals` cannot be used together" ) ;
3
3
4
+ #[ cfg( any( feature = "export-globals" , feature = "import-globals" ) ) ]
4
5
pub use paste:: paste;
5
6
6
7
//===== crimes
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ fn main() {
20
20
21
21
let modules = [ "../mod_a" , "../mod_b" ] ;
22
22
for module in modules {
23
+ soprintln ! ( "building {module}" ) ;
23
24
let output = std:: process:: Command :: new ( "cargo" )
24
25
. arg ( "b" )
25
26
. env (
@@ -39,6 +40,7 @@ fn main() {
39
40
}
40
41
}
41
42
43
+ soprintln ! ( "loading modules..." ) ;
42
44
let lib_a =
43
45
unsafe { libloading:: Library :: new ( "../mod_a/target/debug/libmod_a.dylib" ) . unwrap ( ) } ;
44
46
let lib_a = Box :: leak ( Box :: new ( lib_a) ) ;
You can’t perform that action at this time.
0 commit comments