Skip to content

Commit

Permalink
Support thrift_library::rust_include_srcs
Browse files Browse the repository at this point in the history
Summary:
`rust_include_srcs` is supported on `thrift_library` as a way of including other Rust code in the generated crate, generally used to implement other traits on the generated types.

Adding support for this in autocargo by copying these files into the output dir and making sure their option is specified to the thrift compiler

Reviewed By: ahornby

Differential Revision: D30789835

fbshipit-source-id: 325cb59fdf85324dccfff20a559802c11816769f
  • Loading branch information
c-ryan747 authored and facebook-github-bot committed Sep 10, 2021
1 parent aa8bbb7 commit 4a834d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dep_tests/cargo_thrift/thrift_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ fn main() {
conf.options(options);
}

let include_srcs = vec![

];
conf.include_srcs(include_srcs);

conf
};

Expand Down

0 comments on commit 4a834d2

Please sign in to comment.