mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 02:51:37 +00:00
Make flatc generate Rust files not requiring std (#7273)
* Set an explicit 2018 edition for Rust tests * Replace all `std` usage with `core` and `alloc` in Rust code generator * Update the generated files * Make Rust tests actually use no_std when the corresponding feature is enabled
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::string::ToString;
|
||||
use alloc::vec::Vec;
|
||||
|
||||
#[allow(dead_code, unused_imports)]
|
||||
#[path = "../../more_defaults/mod.rs"]
|
||||
mod more_defaults_generated;
|
||||
|
||||
Reference in New Issue
Block a user