14 releases (7 breaking)

0.9.0 Apr 21, 2024
0.8.0 Nov 20, 2023
0.7.0 May 13, 2023
0.4.3 Jan 23, 2023
0.4.1 May 1, 2022

#1269 in Game dev

Download history 12/week @ 2024-02-16 46/week @ 2024-02-23 5/week @ 2024-03-01 15/week @ 2024-03-08 15/week @ 2024-03-15 2/week @ 2024-03-22 49/week @ 2024-03-29 9/week @ 2024-04-05 2/week @ 2024-04-12 208/week @ 2024-04-19 17/week @ 2024-04-26 1/week @ 2024-05-03

228 downloads per month
Used in dfhack-remote

MIT/Apache

2MB
42K SLoC

dfhack_proto

Crates.io docs.rs Crates.io

This subcomponent of dfhack_remote contains all the generated code for interacting with DFHack remote API.

It contains two main modules:

  • [messages] exposes the protobuf messages. This is the standard generated protobuf.
  • [stubs] exposes the plugins and their RPC. DFHack is not using gRPC and this is a custom implementation

Internally these two modules are created under the generated module.

The terminology is based on gRPC: The stubs expose the feature from the plugin. They are built from a channel implementing the data exchange.

The code is regenerated under the condition that the environment variable DFHACK_REGEN is set.

This crates generates all its code directly in a source subfolder. It would likely be cleaner to use the $OUT_DIR, or macro to do this job.

Dependencies

~1.7–5MB
~95K SLoC