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 5
5
netavark.1
6
6
vendor /
7
7
.idea /*
8
- src /proto-build /netavark_proxy.rs
9
8
contrib /systemd /* /* .service
10
9
.vscode *
Original file line number Diff line number Diff line change 1
1
use chrono:: { DateTime , Utc } ;
2
2
use std:: env;
3
- use std:: path:: { Path , PathBuf } ;
3
+ use std:: path:: Path ;
4
4
use std:: process:: Command ;
5
5
6
6
fn main ( ) {
@@ -32,8 +32,7 @@ fn main() {
32
32
. type_attribute (
33
33
"netavark_proxy.NetworkConfig" ,
34
34
"#[derive(serde::Serialize)]" ,
35
- )
36
- . out_dir ( PathBuf :: from ( "src/proto-build" ) ) ;
35
+ ) ;
37
36
38
37
builder
39
38
. 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;
19
19
20
20
#[ allow( clippy:: unwrap_used) ]
21
21
pub mod g_rpc {
22
- include ! ( "../proto-build/ netavark_proxy.rs") ;
22
+ include ! ( concat! ( env! ( "OUT_DIR" ) , "/ netavark_proxy.rs") ) ;
23
23
use crate :: dhcp_proxy:: lib:: VectorConv ;
24
24
use crate :: dhcp_proxy:: types:: { CustomErr , ProxyError } ;
25
25
use mozim:: DhcpV4Lease ;
You can’t perform that action at this time.
0 commit comments