flatbuffers/tests/rust_usage_test
Casper c87179e73e
Rust Remove SafeSliceAccess for Arrays, and fix miri. (#6592)
* Fix Miri flag passing and bump Rust version.

* Fix Miri problems from Arrays PR.

SafeSliceAccess was removed for Arrays. It's kind of unsound.
It has two properties:
1. EndianSafe
2. Alignment 1

We only need 1. in create_vector_direct to memcpy data.
We both 1. and 2. for accessing things with slices as buffers are built on &[u8]
which is unaligned. Conditional compilation implements
SafeSliceAccess for >1byte scalars (like f32) on LittleEndian machines
which is wrong since they don't satisfy 2.

This UB is still accessible for Vectors (though not exercised our
tests) as it implements SafeSliceAccess. I'll fix this later by
splitting SafeSliceAccess into its 2 properties.

Co-authored-by: Casper Neo <cneo@google.com>
2021-04-26 19:28:25 -04:00
..
benches [rust] Genericize flexbuffer reader (#6450) 2021-02-16 08:04:48 -05:00
bin [rust] Remove debug code (#6475) 2021-02-24 13:00:18 -05:00
outdir Rust: remove inner attributes (#6410) 2021-01-26 11:09:29 -05:00
tests Rust Remove SafeSliceAccess for Arrays, and fix miri. (#6592) 2021-04-26 19:28:25 -04:00
Cargo.toml [Rust] Add support for fixed size arrays (#6548) 2021-04-16 11:15:59 -04:00