flatbuffers/samples
Alex Băluț 860d645349
Support Rust edition 2024 (#8638)
* Developers intro how to contribute

* Fix Rust code generation for Rust edition 2024

The errors look like:

```
warning[E0133]: call to unsafe function `fbs::flatbuffers::emplace_scalar` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `fbs::flatbuffers::follow_cast_ref` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `fbs::flatbuffers::Follow::follow` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `fbs::flatbuffers::read_scalar_at` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `fbs::flatbuffers::root_unchecked` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `fbs::flatbuffers::size_prefixed_root_unchecked` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `fbs::flatbuffers::Table::<'a>::new` is unsafe and requires unsafe block
warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block
```

* Update goldens

Ran `goldens/generate_goldens.py`

* Regenerate code files

Ran `scripts/generate_code.py`
2025-07-25 23:12:52 +00:00
..
lua/MyGame/Sample
rust_generated Support Rust edition 2024 (#8638) 2025-07-25 23:12:52 +00:00
csharp_sample.sh
dart_sample.sh
go.mod Fix go_sample.sh (#7903) 2023-04-11 12:40:00 -07:00
go_sample.sh Fix go_sample.sh (#7903) 2023-04-11 12:40:00 -07:00
java_sample.sh
javascript_sample.sh
kotlin_sample.sh
monster.bfbs
monster.fbs
monster_generated.h FlatBuffers Version 25.2.10 2025-02-10 20:25:03 -08:00
monster_generated.lobster Update Lobster monster sample 2023-09-17 21:18:03 -07:00
monster_generated.swift Moves away from @_exported import to add the import in the generated code (#8637) 2025-07-16 12:07:08 -07:00
monsterdata.json
php_sample.sh
python_sample.sh
sample_bfbs.cpp Rename GenerateText 2023-05-11 18:14:27 -07:00
sample_binary.cpp
sample_binary.go Fix go_sample.sh (#7903) 2023-04-11 12:40:00 -07:00
sample_binary.lobster
sample_binary.lua
sample_binary.py Sample adjusted for Python3 (#7819) 2023-02-06 21:47:39 -08:00
sample_binary.rs
sample_binary.swift Sets Swift minimum version to 5.8 (#8228) 2024-05-29 13:07:54 -07:00
sample_flexbuffers.rs
sample_flexbuffers_serde.rs
sample_text.cpp Rename GenerateText 2023-05-11 18:14:27 -07:00
sample_text.lobster
SampleBinary.cs
SampleBinary.java
SampleBinary.kt [Kotlin] Control the generation of reflection with --reflect-names (#7775) 2023-01-10 10:03:39 -08:00
SampleBinary.php