#api-bindings #proto #protos

dfhack-proto-srcs

Download and extract DFHack protobuf files from source

13 releases (6 breaking)

0.8.0 Nov 20, 2023
0.7.0 May 13, 2023
0.6.2 May 1, 2023
0.4.3 Jan 23, 2023
0.4.1 May 1, 2022

#715 in Game dev

Download history 39/week @ 2023-10-29 17/week @ 2023-11-05 19/week @ 2023-11-12 93/week @ 2023-11-19 87/week @ 2023-11-26 16/week @ 2023-12-03 33/week @ 2023-12-10 21/week @ 2023-12-17 42/week @ 2023-12-24 12/week @ 2023-12-31 23/week @ 2024-01-07 28/week @ 2024-01-14 19/week @ 2024-01-21 76/week @ 2024-01-28 22/week @ 2024-02-04 64/week @ 2024-02-11

185 downloads per month
Used in 2 crates (via dfhack-proto)

Zlib license

16KB
77 lines

dfhack_proto_srcs

Crates.io docs.rs Crates.io

This subcomponent of dfhack_remote contains the protobuf files extracted from DFHack.

It is licensed under ZLib, just like DFHack.

Regenerating the protos

To regenerate the protos in the source directory, run cargo build with the DFHACK_DOWNLOAD set to 1.

To target a different DFHACK version, set the DFHACK_ZIP environment variable to an url. For example https://github.com/DFHack/dfhack/archive/refs/heads/develop.zip.

Then in RemoteFortressReader.proto, change the type of MaterialDefinition::name and WorldMap::name to bytes, it is currently encoded in CP437.

Dependencies

~0–2.3MB
~34K SLoC