Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 7bdf40f

Browse files
committed
add connlib rust logic.
This commit convert this repo into a rust workspace. Divides into 2 types of crates, libs/clients. Clients are thin wrappers used directly by native clients. Libs implement the logic. We have 4 logic crates: - Gateway: Gateway-specific logic. - Clients: Client-specific logic. - Tunnel: General logic for wireguard/ice tunnels. - Common: Types shared by all crates.
1 parent 4eb5658 commit 7bdf40f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2746
-1423
lines changed

.gitignore

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
### Rust ###
2-
/target
2+
target/
33
# Libraries shouldn't lock their dependencies
4-
/Cargo.lock
4+
Cargo.lock
55

66
### Android ###
77
# Gradle files
88
.gradle/
99
build/
10-
android/target/
1110

1211
# Local configuration file (sdk path, etc)
1312
local.properties
@@ -101,11 +100,10 @@ proguard/
101100
# Log Files
102101

103102
# Android Studio
104-
/*/build/
103+
build/
105104
/*/local.properties
106-
/*/out
107-
/*/*/build
108-
/*/*/production
105+
out/
106+
production/
109107
.navigation/
110108
*.ipr
111109
*~
@@ -126,7 +124,6 @@ obj/
126124

127125
# IntelliJ IDEA
128126
*.iws
129-
/out/
130127

131128
# User-specific configurations
132129
.idea/caches/
@@ -172,9 +169,8 @@ fabric.properties
172169
### Apple ###
173170
.DS_Store
174171
.build/
175-
build/
176172
DerivedData/
177173
xcuserdata/
178-
**/*.xcuserstate
174+
*.xcuserstate
179175

180176
Firezone/Developer.xcconfig

Cargo.toml

+11-24
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
1-
[package]
2-
name = "firezone-connlib"
3-
version = "0.1.6"
4-
edition = "2021"
5-
6-
[dependencies]
7-
# Apple tunnel dependencies
8-
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
9-
boringtun = { git = "https://github.com/cloudflare/boringtun", rev = "878385f", features = ["device"] }
10-
11-
# Linux tunnel dependencies
12-
[target.'cfg(target_os = "linux")'.dependencies]
13-
boringtun = { git = "https://github.com/cloudflare/boringtun", rev = "878385f", features = ["device"] }
14-
15-
# Android tunnel dependencies
16-
[target.'cfg(target_os = "android")'.dependencies]
17-
boringtun = { git = "https://github.com/cloudflare/boringtun", rev = "878385f", features = ["jni-bindings"] }
18-
android_logger = "0.13"
19-
log = "0.4.14"
20-
21-
# Windows tunnel dependencies
22-
[target.'cfg(target_os = "windows")'.dependencies]
23-
boringtun = { git = "https://github.com/cloudflare/boringtun", rev = "878385f" }
24-
wintun = "0.2.1"
1+
[workspace]
2+
members = [
3+
"clients/android",
4+
"clients/apple",
5+
"libs/tunnel",
6+
"libs/client",
7+
"libs/gateway",
8+
"libs/common",
9+
"gateway",
10+
"macros",
11+
]
-60.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)