File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ rust_library(
10
10
name = "ffi" ,
11
11
srcs = [
12
12
"ffi/lib.rs" ,
13
- "ffi/module .rs" ,
13
+ "ffi/alias .rs" ,
14
14
],
15
15
crate = "cxx_test_suite" ,
16
16
deps = [
@@ -23,8 +23,8 @@ cxx_library(
23
23
name = "impl" ,
24
24
srcs = [
25
25
"ffi/tests.cc" ,
26
+ ":alias/source" ,
26
27
":bridge/source" ,
27
- ":module/source" ,
28
28
],
29
29
header_namespace = "cxx-test-suite" ,
30
30
headers = {
@@ -40,6 +40,6 @@ rust_cxx_bridge(
40
40
)
41
41
42
42
rust_cxx_bridge (
43
- name = "module " ,
44
- src = "ffi/module .rs" ,
43
+ name = "alias " ,
44
+ src = "ffi/alias .rs" ,
45
45
)
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ rust_test(
12
12
rust_library (
13
13
name = "cxx_test_suite" ,
14
14
srcs = [
15
+ "ffi/alias.rs" ,
15
16
"ffi/lib.rs" ,
16
- "ffi/module.rs" ,
17
17
],
18
18
deps = [
19
19
":impl" ,
@@ -25,8 +25,8 @@ cc_library(
25
25
name = "impl" ,
26
26
srcs = [
27
27
"ffi/tests.cc" ,
28
+ ":alias/source" ,
28
29
":bridge/source" ,
29
- ":module/source" ,
30
30
],
31
31
hdrs = ["ffi/tests.h" ],
32
32
include_prefix = "cxx-test-suite" ,
@@ -46,8 +46,8 @@ rust_cxx_bridge(
46
46
)
47
47
48
48
rust_cxx_bridge (
49
- name = "module " ,
50
- src = "ffi/module .rs" ,
49
+ name = "alias " ,
50
+ src = "ffi/alias .rs" ,
51
51
include_prefix = "cxx-test-suite" ,
52
52
strip_include_prefix = "ffi" ,
53
53
deps = [":impl" ],
File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ fn main() {
3
3
return ;
4
4
}
5
5
6
- let sources = vec ! [ "lib .rs" , "module .rs" ] ;
6
+ let sources = vec ! [ "alias .rs" , "lib .rs" ] ;
7
7
cxx_build:: bridges ( sources)
8
8
. file ( "tests.cc" )
9
9
. flag_if_supported ( cxxbridge_flags:: STD )
Original file line number Diff line number Diff line change 4
4
clippy:: trivially_copy_pass_by_ref
5
5
) ]
6
6
7
- pub mod module ;
7
+ pub mod alias ;
8
8
9
9
use cxx:: { CxxString , CxxVector , UniquePtr } ;
10
10
use std:: fmt:: { self , Display } ;
Original file line number Diff line number Diff line change 1
- use cxx_test_suite:: ffi;
1
+ use cxx_test_suite:: { alias , ffi} ;
2
2
use std:: cell:: Cell ;
3
3
use std:: ffi:: CStr ;
4
4
@@ -89,7 +89,7 @@ fn test_c_take() {
89
89
check ! ( ffi:: c_take_shared( ffi:: Shared { z: 2020 } ) ) ;
90
90
check ! ( ffi:: c_take_box( Box :: new( 2020 ) ) ) ;
91
91
check ! ( ffi:: c_take_ref_c( & unique_ptr) ) ;
92
- check ! ( cxx_test_suite :: module :: ffi:: c_take_unique_ptr( unique_ptr) ) ;
92
+ check ! ( alias :: ffi:: c_take_unique_ptr( unique_ptr) ) ;
93
93
check ! ( ffi:: c_take_str( "2020" ) ) ;
94
94
check ! ( ffi:: c_take_sliceu8( b"2020" ) ) ;
95
95
check ! ( ffi:: c_take_rust_string( "2020" . to_owned( ) ) ) ;
You can’t perform that action at this time.
0 commit comments