forked from mirrors/jj
protobuf: remove ignored call to out_dir()
Since we call `cargo_out_dir()` - which is the preferred way of using `protobuf_codegen::Codegen` in `build.rs` - our call to `out_dir()` has no effect.
This commit is contained in:
parent
fb396e6b45
commit
daef30906f
1 changed files with 0 additions and 10 deletions
10
lib/build.rs
10
lib/build.rs
|
@ -12,16 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
let out_dir = format!("{}/protos", std::env::var("OUT_DIR").unwrap());
|
||||
|
||||
if Path::new(&out_dir).exists() {
|
||||
std::fs::remove_dir_all(&out_dir).unwrap();
|
||||
}
|
||||
std::fs::create_dir(&out_dir).unwrap();
|
||||
|
||||
let input = &[
|
||||
"src/protos/op_store.proto",
|
||||
"src/protos/store.proto",
|
||||
|
@ -29,7 +20,6 @@ fn main() {
|
|||
];
|
||||
protobuf_codegen::Codegen::new()
|
||||
.pure()
|
||||
.out_dir(out_dir)
|
||||
.inputs(input)
|
||||
.include("src/protos")
|
||||
.cargo_out_dir("protos")
|
||||
|
|
Loading…
Reference in a new issue