Skip to content

Commit 7456276

Browse files
authored
Created bindgen examples directory (#918)
1 parent 43eb62d commit 7456276

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.bazelci/presubmit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ tasks:
139139
# rust_doc_test is likely not fully sandboxed
140140
- "-//fibonacci:fibonacci_doc_test"
141141
- "-//hello_lib:hello_lib_doc_test"
142-
- "-//ffi/rust_calling_c/simple/..."
143142
# See https://github.com/bazelbuild/bazel/issues/9987
144143
- "-//ffi/rust_calling_c:matrix_dylib_test"
144+
# The bindgen rules currently do not work on RBE
145+
# see: https://github.com/bazelbuild/rules_rust/issues/919
146+
- "-//bindgen/..."
145147
build_targets: *rbe_examples_targets
146148
test_targets: *rbe_examples_targets
147149
build_flags: *aspects_flags
@@ -170,8 +172,12 @@ tasks:
170172
- "//..."
171173
- "-//ffi/rust_calling_c:matrix_dylib_test"
172174
- "-//ffi/rust_calling_c:matrix_dynamically_linked"
173-
- "-//ffi/rust_calling_c/simple/..."
175+
# The bindgen rules currently do not work on windows
176+
# see: https://github.com/bazelbuild/rules_rust/issues/919
177+
- "-//bindgen/..."
178+
# The proto rules do not work on windows
174179
- "-//proto/..."
180+
# The wasm rules do not work on windows
175181
- "-//wasm/..."
176182
# rust_doc_test targets are currently broken on windows
177183
# see: https://github.com/bazelbuild/rules_rust/issues/887

examples/ffi/rust_calling_c/simple/main.rs renamed to examples/bindgen/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ fn main() {
66
mod test {
77
#[test]
88
fn do_the_test() {
9-
assert_eq!(43, simple_bindgen::SIMPLE_VALUE);
9+
assert_eq!(42, simple_bindgen::SIMPLE_VALUE);
1010
}
1111
}

examples/bindgen/simple.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include <stdint.h>
2+
3+
const int64_t SIMPLE_VALUE = 42;

examples/ffi/rust_calling_c/simple/simple.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)