File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed
Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 55netavark.1
66vendor /
77.idea /*
8- src /proto-build /netavark_proxy.rs
98contrib /systemd /* /* .service
109.vscode *
Original file line number Diff line number Diff line change 11use chrono:: { DateTime , Utc } ;
22use std:: env;
3- use std:: path:: { Path , PathBuf } ;
3+ use std:: path:: Path ;
44use std:: process:: Command ;
55
66fn main ( ) {
@@ -32,8 +32,7 @@ fn main() {
3232 . type_attribute (
3333 "netavark_proxy.NetworkConfig" ,
3434 "#[derive(serde::Serialize)]" ,
35- )
36- . out_dir ( PathBuf :: from ( "src/proto-build" ) ) ;
35+ ) ;
3736
3837 builder
3938 . compile_protos ( & [ Path :: new ( "src/proto/proxy.proto" ) ] , & [ Path :: new ( "proto" ) ] )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use tower::service_fn;
1919
2020#[ allow( clippy:: unwrap_used) ]
2121pub mod g_rpc {
22- include ! ( "../proto-build/ netavark_proxy.rs") ;
22+ include ! ( concat! ( env! ( "OUT_DIR" ) , "/ netavark_proxy.rs") ) ;
2323 use crate :: dhcp_proxy:: lib:: VectorConv ;
2424 use crate :: dhcp_proxy:: types:: { CustomErr , ProxyError } ;
2525 use mozim:: DhcpV4Lease ;
You can’t perform that action at this time.
0 commit comments