File tree 2 files changed +59
-2
lines changed
mullvad-ios/src/tunnel_obfuscator_proxy
2 files changed +59
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : iOS - Build and test Rust FFI (mullvad-ios)
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - .github/workflows/clippy.yml
7
+ - clippy.toml
8
+ - ' **/*.rs'
9
+ workflow_dispatch :
10
+ jobs :
11
+ build-ios :
12
+ runs-on : macos-latest
13
+ strategy :
14
+ matrix :
15
+ target : [aarch64-apple-ios, aarch64-apple-ios-sim]
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v2
19
+
20
+ - name : Install Rust
21
+ uses : actions-rs/toolchain@v1.0.6
22
+ with :
23
+ toolchain : stable
24
+ target : ${{ matrix.target }}
25
+
26
+ - name : Build and test crates
27
+ shell : bash
28
+ env :
29
+ RUSTFLAGS : --deny warnings
30
+ run : |
31
+ source env.sh
32
+ time cargo build --locked --verbose --lib -p mullvad-ios
33
+ time cargo test --locked --verbose --lib -p mullvad-ios
34
+
35
+ clippy-check-ios :
36
+ runs-on : macos-latest
37
+ strategy :
38
+ matrix :
39
+ target : [aarch64-apple-ios, aarch64-apple-ios-sim]
40
+ steps :
41
+ - name : Checkout repository
42
+ uses : actions/checkout@v2
43
+
44
+ - name : Install Rust
45
+ uses : actions-rs/toolchain@v1.0.6
46
+ with :
47
+ toolchain : stable
48
+ target : ${{ matrix.target }}
49
+
50
+ - name : Clippy check
51
+ shell : bash
52
+ env :
53
+ RUSTFLAGS : --deny warnings
54
+ run : |
55
+ source env.sh
56
+ time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios
57
+ time cargo clippy --locked --all-targets --all-features -p mullvad-ios
Original file line number Diff line number Diff line change 1
1
use std:: { io, net:: SocketAddr } ;
2
2
use tokio:: task:: JoinHandle ;
3
- use tunnel_obfuscation:: { create_obfuscator, Settings as ObfuscationSettings , Udp2TcpSettings } ;
3
+ use tunnel_obfuscation:: { create_obfuscator, udp2tcp :: Settings , Settings as ObfuscationSettings } ;
4
4
5
5
mod ffi;
6
6
@@ -12,7 +12,7 @@ pub struct TunnelObfuscatorRuntime {
12
12
13
13
impl TunnelObfuscatorRuntime {
14
14
pub fn new ( peer : SocketAddr ) -> io:: Result < Self > {
15
- let settings = ObfuscationSettings :: Udp2Tcp ( Udp2TcpSettings { peer } ) ;
15
+ let settings = ObfuscationSettings :: Udp2Tcp ( Settings { peer } ) ;
16
16
17
17
Ok ( Self { settings } )
18
18
}
You can’t perform that action at this time.
0 commit comments