Skip to content

Commit 7fc16ba

Browse files
committed
Update flatbuffers
1 parent d3cc7e8 commit 7fc16ba

File tree

4 files changed

+22
-21
lines changed

4 files changed

+22
-21
lines changed

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "rlbot-flatbuffers-py"
3-
version = "0.11.6"
2+
name = "rlbot_flatbuffers"
3+
version = "0.11.7"
44
edition = "2021"
55
description = "A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers"
66
repository = "https://github.com/VirxEC/rlbot_flatbuffers_py"
@@ -15,13 +15,12 @@ all = "warn"
1515

1616
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1717
[lib]
18-
name = "rlbot_flatbuffers"
1918
crate-type = ["cdylib"]
2019

2120
[dependencies]
2221
pyo3 = { version = "0.23.0", features = [] }
23-
serde = "1.0.197"
24-
flatbuffers = "=24.3.25"
22+
serde = "1.0.217"
23+
flatbuffers = "=24.12.23"
2524
# get-size appears to be unmaintained but it's too useful here
2625
# forked and updated deps
2726
get-size = { git = "https://github.com/VirxEC/get-size", branch = "update", features = ["derive"] }

codegen/structs.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ impl StructBindGenerator {
7878
types: Vec<CustomType>,
7979
) -> Option<Self> {
8080
let is_frozen = PythonBindType::FROZEN_TYPES.contains(&struct_name.as_str());
81-
let frozen_needs_py = is_frozen && PythonBindType::FROZEN_NEEDS_PY.contains(&struct_name.as_str());
82-
let is_semi_frozen = !is_frozen && PythonBindType::SEMI_FROZEN_TYPES.contains(&struct_name.as_str());
81+
let frozen_needs_py =
82+
is_frozen && PythonBindType::FROZEN_NEEDS_PY.contains(&struct_name.as_str());
83+
let is_semi_frozen =
84+
!is_frozen && PythonBindType::SEMI_FROZEN_TYPES.contains(&struct_name.as_str());
8385

8486
let is_all_base_types = types
8587
.iter()
@@ -730,7 +732,7 @@ impl Generator for StructBindGenerator {
730732
if self.is_frozen {
731733
"#[pyclass(module = \"rlbot_flatbuffers\", subclass, get_all, frozen)]"
732734
} else if self.is_semi_frozen {
733-
"#[pyclass(module = \"rlbot_flatbuffers\", subclass, get_all)]"
735+
"#[pyclass(module = \"rlbot_flatbuffers\", subclass, get_all)]"
734736
} else if self.types.is_empty() {
735737
"#[pyclass(module = \"rlbot_flatbuffers\", subclass, frozen)]"
736738
} else {

flatbuffers-schema

0 commit comments

Comments
 (0)