Skip to content

Commit

Permalink
Created bindgen examples directory
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Aug 29, 2021
1 parent e2f1ab9 commit a270ff3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ tasks:
# rust_doc_test is likely not fully sandboxed
- "-//fibonacci:fibonacci_doc_test"
- "-//hello_lib:hello_lib_doc_test"
- "-//ffi/rust_calling_c/simple/..."
# See https://github.com/bazelbuild/bazel/issues/9987
- "-//ffi/rust_calling_c:matrix_dylib_test"
# The bindgen rules currently do not work on RBE
# see: https://github.com/bazelbuild/rules_rust/issues/919
build_targets: *rbe_examples_targets
test_targets: *rbe_examples_targets
build_flags: *aspects_flags
Expand Down Expand Up @@ -170,8 +171,12 @@ tasks:
- "//..."
- "-//ffi/rust_calling_c:matrix_dylib_test"
- "-//ffi/rust_calling_c:matrix_dynamically_linked"
- "-//ffi/rust_calling_c/simple/..."
# The bindgen rules currently do not work on windows
# see: https://github.com/bazelbuild/rules_rust/issues/919
- "-//ffi/bindgen/..."
# The proto rules do not work on windows
- "-//proto/..."
# The wasm rules do not work on windows
- "-//wasm/..."
# rust_doc_test targets are currently broken on windows
# see: https://github.com/bazelbuild/rules_rust/issues/887
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ fn main() {
mod test {
#[test]
fn do_the_test() {
assert_eq!(43, simple_bindgen::SIMPLE_VALUE);
assert_eq!(42, simple_bindgen::SIMPLE_VALUE);
}
}
3 changes: 3 additions & 0 deletions examples/bindgen/simple.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include <stdint.h>

const int64_t SIMPLE_VALUE = 42;
3 changes: 0 additions & 3 deletions examples/ffi/rust_calling_c/simple/simple.h

This file was deleted.

0 comments on commit a270ff3

Please sign in to comment.