Skip to content

Commit 1002e3d

Browse files
committed
Use crates.io flatbuffers
Alphabetize class names list Addition `eval(repr(...))` test Update deps
1 parent 267e1c8 commit 1002e3d

5 files changed

Lines changed: 148 additions & 132 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rlbot-flatbuffers-py"
3-
version = "0.3.2"
3+
version = "0.3.3"
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"
@@ -20,7 +20,7 @@ crate-type = ["cdylib"]
2020
[dependencies]
2121
pyo3 = "0.21.0"
2222
serde = "1.0.197"
23-
flatbuffers = { git = "https://github.com/google/flatbuffers", branch = "master" }
23+
flatbuffers = "24.3.25"
2424
get-size = { version = "0.1.4", features = ["derive"] }
2525

2626
[profile.release]

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,10 +1204,11 @@ fn mod_rs_generator(type_data: &[(String, String, Vec<Vec<String>>)]) -> io::Res
12041204
}
12051205

12061206
fn class_names_txt_generator(type_data: &[(String, String, Vec<Vec<String>>)]) -> io::Result<()> {
1207-
let class_names = type_data
1207+
let mut class_names = type_data
12081208
.iter()
12091209
.map(|(_, type_name, _)| format!(" {type_name}"))
12101210
.collect::<Vec<_>>();
1211+
class_names.sort();
12111212

12121213
let file_contents = format!("[\n{}\n]", class_names.join(",\n"));
12131214

pytest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def __add__(self, other):
4848
comm = MatchComm(3, 1, False, "Ready!", b"Hello, world!")
4949
print(repr(comm))
5050
print(comm)
51+
eval(repr(comm))
5152
print(comm.content.decode("utf-8"))
5253
print()
5354

0 commit comments

Comments
 (0)