Skip to content

Commit

Permalink
Delete dependencies module from lib crate
Browse files Browse the repository at this point in the history
Summary:
{D53379341} has removed the last uses of the top-level crate's `dependencies` module.

The `-clients` subcrate will continue to have a `dependencies` module for now, because it is required in the current implementation of service inheritance. That one will be marked `#[deprecated]` in {D53379339}.

Reviewed By: zertosh

Differential Revision: D53379340

fbshipit-source-id: 33a25ce927ccaea796efe09470caba9fb954a37d
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Feb 3, 2024
1 parent 181580f commit 92b66be
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions shed/thrift_compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ impl Config {

// These files are not of interest here (for now).
fs::remove_file(out.join("lib.rs"))?;
fs::remove_file(out.join("dependencies.rs"))?;
fs::remove_file(out.join("client.rs"))?;
fs::remove_file(out.join("server.rs"))?;
fs::remove_file(out.join("mock.rs"))?;
Expand All @@ -247,7 +246,6 @@ impl Config {
self.run_compiler(&thrift_bin, out, file)?;

fs::remove_file(out.join("consts.rs"))?;
fs::remove_file(out.join("dependencies.rs"))?;
fs::remove_file(out.join("errors.rs"))?;
fs::remove_file(out.join("lib.rs"))?;
fs::remove_file(out.join("server.rs"))?;
Expand All @@ -263,7 +261,6 @@ impl Config {

fs::remove_file(out.join("client.rs"))?;
fs::remove_file(out.join("consts.rs"))?;
fs::remove_file(out.join("dependencies.rs"))?;
fs::remove_file(out.join("errors.rs"))?;
fs::remove_file(out.join("lib.rs"))?;
fs::remove_file(out.join("mock.rs"))?;
Expand Down Expand Up @@ -308,7 +305,6 @@ impl Config {

// These files are not of interest here.
fs::remove_file(submod.join("lib.rs"))?;
fs::remove_file(submod.join("dependencies.rs"))?;
fs::remove_file(submod.join("client.rs"))?;
fs::remove_file(submod.join("server.rs"))?;
fs::remove_file(submod.join("mock.rs"))?;
Expand All @@ -328,7 +324,6 @@ impl Config {
self.run_compiler(&thrift_bin, &submod, file)?;

fs::remove_file(submod.join("consts.rs"))?;
fs::remove_file(submod.join("dependencies.rs"))?;
fs::remove_file(submod.join("errors.rs"))?;
fs::remove_file(submod.join("lib.rs"))?;
fs::remove_file(submod.join("server.rs"))?;
Expand All @@ -348,7 +343,6 @@ impl Config {

fs::remove_file(submod.join("client.rs"))?;
fs::remove_file(submod.join("consts.rs"))?;
fs::remove_file(submod.join("dependencies.rs"))?;
fs::remove_file(submod.join("errors.rs"))?;
fs::remove_file(submod.join("lib.rs"))?;
fs::remove_file(submod.join("mock.rs"))?;
Expand Down

0 comments on commit 92b66be

Please sign in to comment.