mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 09:24:25 +00:00
Rust: remove inner attributes (#6410)
* remove inner attributes * Added test for outdir in Rust * add bin/outdir * Moved outdir test to its own package and only run it if flatc is available Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -48,6 +48,14 @@ check_test_result "No Cargo clippy lints test"
|
||||
|
||||
cargo bench $TARGET_FLAG
|
||||
|
||||
# This test is dependent on flatc.
|
||||
if [[ -f ../../flatc ]]; then
|
||||
cd outdir
|
||||
cargo test
|
||||
check_test_result "Rust generated file in \$OUT_DIR"
|
||||
cd ..
|
||||
fi
|
||||
|
||||
# RUST_NIGHTLY environment variable set in dockerfile.
|
||||
if [[ $RUST_NIGHTLY == 1 ]]; then
|
||||
rustup +nightly component add miri
|
||||
|
||||
Reference in New Issue
Block a user