Crate dfhack_proto_srcs

source ·
Expand description


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

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


  • Include directory when building the protobuf (protoc -I option)
  • List of extracted .proto files