|
| 1 | +Link with system-provided openssl instead of bundling rustls. |
| 2 | + |
| 3 | +This depends on rustic_core-add-tls-native.patch. |
| 4 | + |
| 5 | +--- a/Cargo.toml |
| 6 | ++++ b/Cargo.toml |
| 7 | +@@ -102,7 +102,7 @@ |
| 8 | + [target.'cfg(not(windows))'.dependencies] |
| 9 | + libc = "0.2.150" |
| 10 | + [workspace.dependencies] |
| 11 | +-rustic_core = { version = "0.1.2", features = ["cli"] } |
| 12 | ++rustic_core = { version = "0.1.2", default-features = false, features = ["cli", "tls-native"] } |
| 13 | + abscissa_core = { version = "0.7.0", default-features = false, features = ["application"] } |
| 14 | + |
| 15 | + # logging |
| 16 | +@@ -200,3 +200,6 @@ |
| 17 | + lto = true |
| 18 | + debug-assertions = false |
| 19 | + codegen-units = 1 |
| 20 | ++ |
| 21 | ++[patch.crates-io] |
| 22 | ++rustic_core = { path = "vendor/rustic_core" } |
| 23 | +--- a/Cargo.lock |
| 24 | ++++ b/Cargo.lock |
| 25 | +@@ -1080,6 +1080,21 @@ |
| 26 | + checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" |
| 27 | + |
| 28 | + [[package]] |
| 29 | ++name = "foreign-types" |
| 30 | ++version = "0.3.2" |
| 31 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 32 | ++checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" |
| 33 | ++dependencies = [ |
| 34 | ++ "foreign-types-shared", |
| 35 | ++] |
| 36 | ++ |
| 37 | ++[[package]] |
| 38 | ++name = "foreign-types-shared" |
| 39 | ++version = "0.1.1" |
| 40 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 41 | ++checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" |
| 42 | ++ |
| 43 | ++[[package]] |
| 44 | + name = "form_urlencoded" |
| 45 | + version = "1.2.0" |
| 46 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 47 | +@@ -1360,6 +1375,19 @@ |
| 48 | + ] |
| 49 | + |
| 50 | + [[package]] |
| 51 | ++name = "hyper-tls" |
| 52 | ++version = "0.5.0" |
| 53 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 54 | ++checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" |
| 55 | ++dependencies = [ |
| 56 | ++ "bytes", |
| 57 | ++ "hyper", |
| 58 | ++ "native-tls", |
| 59 | ++ "tokio", |
| 60 | ++ "tokio-native-tls", |
| 61 | ++] |
| 62 | ++ |
| 63 | ++[[package]] |
| 64 | + name = "iana-time-zone" |
| 65 | + version = "0.1.58" |
| 66 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 67 | +@@ -1681,6 +1709,24 @@ |
| 68 | + ] |
| 69 | + |
| 70 | + [[package]] |
| 71 | ++name = "native-tls" |
| 72 | ++version = "0.2.11" |
| 73 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 74 | ++checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" |
| 75 | ++dependencies = [ |
| 76 | ++ "lazy_static", |
| 77 | ++ "libc", |
| 78 | ++ "log", |
| 79 | ++ "openssl", |
| 80 | ++ "openssl-probe", |
| 81 | ++ "openssl-sys", |
| 82 | ++ "schannel", |
| 83 | ++ "security-framework", |
| 84 | ++ "security-framework-sys", |
| 85 | ++ "tempfile", |
| 86 | ++] |
| 87 | ++ |
| 88 | ++[[package]] |
| 89 | + name = "nix" |
| 90 | + version = "0.27.1" |
| 91 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 92 | +@@ -1757,12 +1803,50 @@ |
| 93 | + checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" |
| 94 | + |
| 95 | + [[package]] |
| 96 | ++name = "openssl" |
| 97 | ++version = "0.10.62" |
| 98 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 99 | ++checksum = "8cde4d2d9200ad5909f8dac647e29482e07c3a35de8a13fce7c9c7747ad9f671" |
| 100 | ++dependencies = [ |
| 101 | ++ "bitflags 2.4.1", |
| 102 | ++ "cfg-if 1.0.0", |
| 103 | ++ "foreign-types", |
| 104 | ++ "libc", |
| 105 | ++ "once_cell", |
| 106 | ++ "openssl-macros", |
| 107 | ++ "openssl-sys", |
| 108 | ++] |
| 109 | ++ |
| 110 | ++[[package]] |
| 111 | ++name = "openssl-macros" |
| 112 | ++version = "0.1.1" |
| 113 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 114 | ++checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" |
| 115 | ++dependencies = [ |
| 116 | ++ "proc-macro2", |
| 117 | ++ "quote", |
| 118 | ++ "syn 2.0.39", |
| 119 | ++] |
| 120 | ++ |
| 121 | ++[[package]] |
| 122 | + name = "openssl-probe" |
| 123 | + version = "0.1.5" |
| 124 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 125 | + checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" |
| 126 | + |
| 127 | + [[package]] |
| 128 | ++name = "openssl-sys" |
| 129 | ++version = "0.9.98" |
| 130 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 131 | ++checksum = "c1665caf8ab2dc9aef43d1c0023bd904633a6a05cb30b0ad59bec2ae986e57a7" |
| 132 | ++dependencies = [ |
| 133 | ++ "cc", |
| 134 | ++ "libc", |
| 135 | ++ "pkg-config", |
| 136 | ++ "vcpkg", |
| 137 | ++] |
| 138 | ++ |
| 139 | ++[[package]] |
| 140 | + name = "option-ext" |
| 141 | + version = "0.2.0" |
| 142 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 143 | +@@ -2112,21 +2196,23 @@ |
| 144 | + "http-body", |
| 145 | + "hyper", |
| 146 | + "hyper-rustls", |
| 147 | ++ "hyper-tls", |
| 148 | + "ipnet", |
| 149 | + "js-sys", |
| 150 | + "log", |
| 151 | + "mime", |
| 152 | ++ "native-tls", |
| 153 | + "once_cell", |
| 154 | + "percent-encoding", |
| 155 | + "pin-project-lite", |
| 156 | + "rustls", |
| 157 | +- "rustls-native-certs", |
| 158 | + "rustls-pemfile", |
| 159 | + "serde", |
| 160 | + "serde_json", |
| 161 | + "serde_urlencoded", |
| 162 | + "system-configuration", |
| 163 | + "tokio", |
| 164 | ++ "tokio-native-tls", |
| 165 | + "tokio-rustls", |
| 166 | + "tokio-util", |
| 167 | + "tower-service", |
| 168 | +@@ -2239,8 +2325,6 @@ |
| 169 | + [[package]] |
| 170 | + name = "rustic_core" |
| 171 | + version = "0.1.2" |
| 172 | +-source = "registry+https://github.com/rust-lang/crates.io-index" |
| 173 | +-checksum = "a5932066f9e144fc15043c4e0b9a82bfa16c83910243318bdafbb38496c1518a" |
| 174 | + dependencies = [ |
| 175 | + "aes256ctr_poly1305aes", |
| 176 | + "aho-corasick", |
| 177 | +@@ -2327,18 +2411,6 @@ |
| 178 | + ] |
| 179 | + |
| 180 | + [[package]] |
| 181 | +-name = "rustls-native-certs" |
| 182 | +-version = "0.6.3" |
| 183 | +-source = "registry+https://github.com/rust-lang/crates.io-index" |
| 184 | +-checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" |
| 185 | +-dependencies = [ |
| 186 | +- "openssl-probe", |
| 187 | +- "rustls-pemfile", |
| 188 | +- "schannel", |
| 189 | +- "security-framework", |
| 190 | +-] |
| 191 | +- |
| 192 | +-[[package]] |
| 193 | + name = "rustls-pemfile" |
| 194 | + version = "1.0.4" |
| 195 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 196 | +@@ -2960,6 +3032,16 @@ |
| 197 | + ] |
| 198 | + |
| 199 | + [[package]] |
| 200 | ++name = "tokio-native-tls" |
| 201 | ++version = "0.3.1" |
| 202 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 203 | ++checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" |
| 204 | ++dependencies = [ |
| 205 | ++ "native-tls", |
| 206 | ++ "tokio", |
| 207 | ++] |
| 208 | ++ |
| 209 | ++[[package]] |
| 210 | + name = "tokio-rustls" |
| 211 | + version = "0.24.1" |
| 212 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 213 | +@@ -3193,6 +3275,12 @@ |
| 214 | + version = "0.1.0" |
| 215 | + source = "registry+https://github.com/rust-lang/crates.io-index" |
| 216 | + checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" |
| 217 | ++ |
| 218 | ++[[package]] |
| 219 | ++name = "vcpkg" |
| 220 | ++version = "0.2.15" |
| 221 | ++source = "registry+https://github.com/rust-lang/crates.io-index" |
| 222 | ++checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" |
| 223 | + |
| 224 | + [[package]] |
| 225 | + name = "version_check" |
0 commit comments