sapling/configerator/structs/scm/mononoke
Thomas Orozco 24560ded2e thrift: call hooks from Rust codegen
Summary:
This updates Thrift codegen for Rust to call hooks on a context stack in a
similar fashion as the C++ codegen.

There is still a bit of room for improvement here. Notably, we don't know how
much data we actually read or sent to the client, so for now those are
hard-coded to zero in the codegen. That's better than not calling those hooks
at all (which is what happens right now), but it could stand to be improved.

Reviewed By: jsgf

Differential Revision: D24445298

fbshipit-source-id: 470daf03057424dc300b6a193668be835ae28452
2020-10-22 17:01:47 -07:00
..
blobimport thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
fastreplay thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
hgserverconf thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
loadshedding thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
pushredirect thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
repos thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00
tunables thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07:00