Skip to content

Commit

Permalink
Move server traits to a separate crate
Browse files Browse the repository at this point in the history
Summary: This diff turns a `thrift_library` with `name = "foo"` into 4 Rust targets: `:foo-rust` (as before), `:foo-rust-types` (as before), `:foo-rust-clients` (as before), and `:foo-rust-services` (new).

Reviewed By: zertosh, shayne-fletcher

Differential Revision: D53166618

fbshipit-source-id: 6f94f7a70f70de928f7320b06e6d638cc6ac1206
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Jan 30, 2024
1 parent 5689c09 commit d632c39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shed/thrift_compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ impl Config {
fs::remove_file(out.join("consts.rs"))?;
fs::remove_file(out.join("errors.rs"))?;
fs::remove_file(out.join("mock.rs"))?;
fs::remove_file(out.join("server.rs"))?;
fs::remove_file(out.join("services.rs"))?;
fs::remove_file(out.join("types.rs"))?;

Expand Down Expand Up @@ -287,6 +288,7 @@ impl Config {
fs::remove_file(submod.join("consts.rs"))?;
fs::remove_file(submod.join("errors.rs"))?;
fs::remove_file(submod.join("mock.rs"))?;
fs::remove_file(submod.join("server.rs"))?;
fs::remove_file(submod.join("services.rs"))?;
fs::remove_file(submod.join("types.rs"))?;

Expand Down

0 comments on commit d632c39

Please sign in to comment.