ok/jj
1
0
Fork 0
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:
Martin von Zweigbergk 2022-12-15 10:53:30 -08:00 committed by Martin von Zweigbergk
parent fb396e6b45
commit daef30906f

View file

@ -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")