Skip TLS cert checks when downloading @image URLs.
Corporate and self-signed hosts often fail rustls UnknownIssuer; accept invalid certs so remote logos still load. Co-authored-by: Cursor <cursoragent@cursor.com>
@@ -809,7 +809,7 @@ dependencies = [
809
809
"bitflags 1.3.2",
810
810
"core-foundation 0.9.4",
811
811
"core-graphics-types",
812
"foreign-types",
812
"foreign-types 0.5.0",
813
813
"libc",
814
814
]
815
815
@@ -1236,6 +1236,15 @@ version = "0.1.5"
1236
1236
source = "registry+https://github.com/rust-lang/crates.io-index"
1237
1237
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
1238
1238
1239
[[package]]
1240
name = "foreign-types"
1241
version = "0.3.2"
1242
source = "registry+https://github.com/rust-lang/crates.io-index"
1243
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
1244
dependencies = [
1245
"foreign-types-shared 0.1.1",
1246
]
1247
1239
1248
[[package]]
1240
1249
name = "foreign-types"
1241
1250
version = "0.5.0"
@@ -1243,7 +1252,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1243
1252
checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
1244
1253
dependencies = [
1245
1254
"foreign-types-macros",
1246
"foreign-types-shared",
1255
"foreign-types-shared 0.3.1",
1247
1256
]
1248
1257
1249
1258
[[package]]
@@ -1257,6 +1266,12 @@ dependencies = [
1257
1266
"syn 2.0.119",
1258
1267
]
1259
1268
1269
[[package]]
1270
name = "foreign-types-shared"
1271
version = "0.1.1"
1272
source = "registry+https://github.com/rust-lang/crates.io-index"
1273
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
1274
1260
1275
[[package]]
1261
1276
name = "foreign-types-shared"
1262
1277
version = "0.3.1"
@@ -1357,17 +1372,6 @@ dependencies = [
1357
1372
"unicode-width 0.2.2",
1358
1373
]
1359
1374
1360
[[package]]
1361
name = "getrandom"
1362
version = "0.2.17"
1363
source = "registry+https://github.com/rust-lang/crates.io-index"
1364
checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
1365
dependencies = [
1366
"cfg-if",
1367
"libc",
1368
"wasi",
1369
]
1370
1371
1375
[[package]]
1372
1376
name = "getrandom"
1373
1377
version = "0.3.4"
@@ -2095,7 +2099,7 @@ dependencies = [
2095
2099
"bitflags 2.13.1",
2096
2100
"block",
2097
2101
"core-graphics-types",
2098
"foreign-types",
2102
"foreign-types 0.5.0",
2099
2103
"log",
2100
2104
"objc",
2101
2105
"paste",
@@ -2143,6 +2147,23 @@ dependencies = [
2143
2147
"unicode-xid",
2144
2148
]
2145
2149
2150
[[package]]
2151
name = "native-tls"
2152
version = "0.2.18"
2153
source = "registry+https://github.com/rust-lang/crates.io-index"
2154
checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"
2155
dependencies = [
2156
"libc",
2157
"log",
2158
"openssl",
2159
"openssl-probe",
2160
"openssl-sys",
2161
"schannel",
2162
"security-framework",
2163
"security-framework-sys",
2164
"tempfile",
2165
]
2166
2146
2167
[[package]]
2147
2168
name = "ndk"
2148
2169
version = "0.9.0"
@@ -2604,6 +2625,49 @@ version = "1.70.2"
2604
2625
source = "registry+https://github.com/rust-lang/crates.io-index"
2605
2626
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
2606
2627
2628
[[package]]
2629
name = "openssl"
2630
version = "0.10.81"
2631
source = "registry+https://github.com/rust-lang/crates.io-index"
2632
checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
2633
dependencies = [
2634
"bitflags 2.13.1",
2635
"cfg-if",
2636
"foreign-types 0.3.2",
2637
"libc",
2638
"openssl-macros",
2639
"openssl-sys",
2640
]
2641
2642
[[package]]
2643
name = "openssl-macros"
2644
version = "0.1.1"
2645
source = "registry+https://github.com/rust-lang/crates.io-index"
2646
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
2647
dependencies = [
2648
"proc-macro2",
2649
"quote",
2650
"syn 2.0.119",
2651
]
2652
2653
[[package]]
2654
name = "openssl-probe"
2655
version = "0.2.1"
2656
source = "registry+https://github.com/rust-lang/crates.io-index"
2657
checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
2658
2659
[[package]]
2660
name = "openssl-sys"
2661
version = "0.9.117"
2662
source = "registry+https://github.com/rust-lang/crates.io-index"
2663
checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
2664
dependencies = [
2665
"cc",
2666
"libc",
2667
"pkg-config",
2668
"vcpkg",
2669
]
2670
2607
2671
[[package]]
2608
2672
name = "orbclient"
2609
2673
version = "0.3.55"
@@ -2797,6 +2861,7 @@ dependencies = [
2797
2861
"ico",
2798
2862
"image",
2799
2863
"libc",
2864
"native-tls",
2800
2865
"pulldown-cmark",
2801
2866
"qrcode",
2802
2867
"rfd",
@@ -3150,20 +3215,6 @@ version = "0.8.53"
3150
3215
source = "registry+https://github.com/rust-lang/crates.io-index"
3151
3216
checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"
3152
3217
3153
[[package]]
3154
name = "ring"
3155
version = "0.17.14"
3156
source = "registry+https://github.com/rust-lang/crates.io-index"
3157
checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
3158
dependencies = [
3159
"cc",
3160
"cfg-if",
3161
"getrandom 0.2.17",
3162
"libc",
3163
"untrusted",
3164
"windows-sys 0.52.0",
3165
]
3166
3167
3218
[[package]]
3168
3219
name = "rusb"
3169
3220
version = "0.9.4"
@@ -3221,41 +3272,6 @@ dependencies = [
3221
3272
"windows-sys 0.61.2",
3222
3273
]
3223
3274
3224
[[package]]
3225
name = "rustls"
3226
version = "0.23.42"
3227
source = "registry+https://github.com/rust-lang/crates.io-index"
3228
checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138"
3229
dependencies = [
3230
"log",
3231
"once_cell",
3232
"ring",
3233
"rustls-pki-types",
3234
"rustls-webpki",
3235
"subtle",
3236
"zeroize",
3237
]
3238
3239
[[package]]
3240
name = "rustls-pki-types"
3241
version = "1.15.0"
3242
source = "registry+https://github.com/rust-lang/crates.io-index"
3243
checksum = "764899a24af3980067ee14bc143654f297b22eaebfe3c7b6b211920a5a59b046"
3244
dependencies = [
3245
"zeroize",
3246
]
3247
3248
[[package]]
3249
name = "rustls-webpki"
3250
version = "0.103.13"
3251
source = "registry+https://github.com/rust-lang/crates.io-index"
3252
checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
3253
dependencies = [
3254
"ring",
3255
"rustls-pki-types",
3256
"untrusted",
3257
]
3258
3259
3275
[[package]]
3260
3276
name = "rustversion"
3261
3277
version = "1.0.23"
@@ -3271,6 +3287,15 @@ dependencies = [
3271
3287
"winapi-util",
3272
3288
]
3273
3289
3290
[[package]]
3291
name = "schannel"
3292
version = "0.1.29"
3293
source = "registry+https://github.com/rust-lang/crates.io-index"
3294
checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
3295
dependencies = [
3296
"windows-sys 0.61.2",
3297
]
3298
3274
3299
[[package]]
3275
3300
name = "scoped-tls"
3276
3301
version = "1.0.1"
@@ -3283,6 +3308,29 @@ version = "1.2.0"
3283
3308
source = "registry+https://github.com/rust-lang/crates.io-index"
3284
3309
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
3285
3310
3311
[[package]]
3312
name = "security-framework"
3313
version = "3.7.0"
3314
source = "registry+https://github.com/rust-lang/crates.io-index"
3315
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
3316
dependencies = [
3317
"bitflags 2.13.1",
3318
"core-foundation 0.10.1",
3319
"core-foundation-sys",
3320
"libc",
3321
"security-framework-sys",
3322
]
3323
3324
[[package]]
3325
name = "security-framework-sys"
3326
version = "2.17.0"
3327
source = "registry+https://github.com/rust-lang/crates.io-index"
3328
checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
3329
dependencies = [
3330
"core-foundation-sys",
3331
"libc",
3332
]
3333
3286
3334
[[package]]
3287
3335
name = "semver"
3288
3336
version = "1.0.28"
@@ -3551,12 +3599,6 @@ dependencies = [
3551
3599
"syn 2.0.119",
3552
3600
]
3553
3601
3554
[[package]]
3555
name = "subtle"
3556
version = "2.6.1"
3557
source = "registry+https://github.com/rust-lang/crates.io-index"
3558
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
3559
3560
3602
[[package]]
3561
3603
name = "syn"
3562
3604
version = "2.0.119"
@@ -3818,12 +3860,6 @@ version = "0.2.6"
3818
3860
source = "registry+https://github.com/rust-lang/crates.io-index"
3819
3861
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
3820
3862
3821
[[package]]
3822
name = "untrusted"
3823
version = "0.9.0"
3824
source = "registry+https://github.com/rust-lang/crates.io-index"
3825
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
3826
3827
3863
[[package]]
3828
3864
name = "ureq"
3829
3865
version = "2.12.1"
@@ -3832,11 +3868,9 @@ checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d"
3832
3868
dependencies = [
3833
3869
"base64",
3834
3870
"log",
3871
"native-tls",
3835
3872
"once_cell",
3836
"rustls",
3837
"rustls-pki-types",
3838
3873
"url",
3839
"webpki-roots 0.26.11",
3840
3874
]
3841
3875
3842
3876
[[package]]
@@ -3914,12 +3948,6 @@ dependencies = [
3914
3948
"winapi-util",
3915
3949
]
3916
3950
3917
[[package]]
3918
name = "wasi"
3919
version = "0.11.1+wasi-snapshot-preview1"
3920
source = "registry+https://github.com/rust-lang/crates.io-index"
3921
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
3922
3923
3951
[[package]]
3924
3952
name = "wasip2"
3925
3953
version = "1.0.4+wasi-0.2.12"
@@ -4155,24 +4183,6 @@ dependencies = [
4155
4183
"web-sys",
4156
4184
]
4157
4185
4158
[[package]]
4159
name = "webpki-roots"
4160
version = "0.26.11"
4161
source = "registry+https://github.com/rust-lang/crates.io-index"
4162
checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
4163
dependencies = [
4164
"webpki-roots 1.0.9",
4165
]
4166
4167
[[package]]
4168
name = "webpki-roots"
4169
version = "1.0.9"
4170
source = "registry+https://github.com/rust-lang/crates.io-index"
4171
checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
4172
dependencies = [
4173
"rustls-pki-types",
4174
]
4175
4176
4186
[[package]]
4177
4187
name = "weezl"
4178
4188
version = "0.1.12"
@@ -4886,12 +4896,6 @@ dependencies = [
4886
4896
"synstructure",
4887
4897
]
4888
4898
4889
[[package]]
4890
name = "zeroize"
4891
version = "1.9.0"
4892
source = "registry+https://github.com/rust-lang/crates.io-index"
4893
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
4894
4895
4899
[[package]]
4896
4900
name = "zerotrie"
4897
4901
version = "0.2.4"
@@ -809,7 +809,7 @@ dependencies = [809
"bitflags 1.3.2",809
"bitflags 1.3.2",810
"core-foundation 0.9.4",810
"core-foundation 0.9.4",811
"core-graphics-types",811
"core-graphics-types",812
"foreign-types",812
"foreign-types 0.5.0",813
"libc",813
"libc",814
]814
]815
815
@@ -1236,6 +1236,15 @@ version = "0.1.5"1236
source = "registry+https://github.com/rust-lang/crates.io-index"1236
source = "registry+https://github.com/rust-lang/crates.io-index"1237
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"1237
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"1238
1238
1239
[[package]]1240
name = "foreign-types"1241
version = "0.3.2"1242
source = "registry+https://github.com/rust-lang/crates.io-index"1243
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"1244
dependencies = [1245
"foreign-types-shared 0.1.1",1246
]1247
1239
[[package]]1248
[[package]]1240
name = "foreign-types"1249
name = "foreign-types"1241
version = "0.5.0"1250
version = "0.5.0"@@ -1243,7 +1252,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"1243
checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"1252
checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"1244
dependencies = [1253
dependencies = [1245
"foreign-types-macros",1254
"foreign-types-macros",1246
"foreign-types-shared",1255
"foreign-types-shared 0.3.1",1247
]1256
]1248
1257
1249
[[package]]1258
[[package]]@@ -1257,6 +1266,12 @@ dependencies = [1257
"syn 2.0.119",1266
"syn 2.0.119",1258
]1267
]1259
1268
1269
[[package]]1270
name = "foreign-types-shared"1271
version = "0.1.1"1272
source = "registry+https://github.com/rust-lang/crates.io-index"1273
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"1274
1260
[[package]]1275
[[package]]1261
name = "foreign-types-shared"1276
name = "foreign-types-shared"1262
version = "0.3.1"1277
version = "0.3.1"@@ -1357,17 +1372,6 @@ dependencies = [1357
"unicode-width 0.2.2",1372
"unicode-width 0.2.2",1358
]1373
]1359
1374
1360
[[package]]1361
name = "getrandom"1362
version = "0.2.17"1363
source = "registry+https://github.com/rust-lang/crates.io-index"1364
checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"1365
dependencies = [1366
"cfg-if",1367
"libc",1368
"wasi",1369
]1370
1371
[[package]]1375
[[package]]1372
name = "getrandom"1376
name = "getrandom"1373
version = "0.3.4"1377
version = "0.3.4"@@ -2095,7 +2099,7 @@ dependencies = [2095
"bitflags 2.13.1",2099
"bitflags 2.13.1",2096
"block",2100
"block",2097
"core-graphics-types",2101
"core-graphics-types",2098
"foreign-types",2102
"foreign-types 0.5.0",2099
"log",2103
"log",2100
"objc",2104
"objc",2101
"paste",2105
"paste",@@ -2143,6 +2147,23 @@ dependencies = [2143
"unicode-xid",2147
"unicode-xid",2144
]2148
]2145
2149
2150
[[package]]2151
name = "native-tls"2152
version = "0.2.18"2153
source = "registry+https://github.com/rust-lang/crates.io-index"2154
checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"2155
dependencies = [2156
"libc",2157
"log",2158
"openssl",2159
"openssl-probe",2160
"openssl-sys",2161
"schannel",2162
"security-framework",2163
"security-framework-sys",2164
"tempfile",2165
]2166
2146
[[package]]2167
[[package]]2147
name = "ndk"2168
name = "ndk"2148
version = "0.9.0"2169
version = "0.9.0"@@ -2604,6 +2625,49 @@ version = "1.70.2"2604
source = "registry+https://github.com/rust-lang/crates.io-index"2625
source = "registry+https://github.com/rust-lang/crates.io-index"2605
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"2626
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"2606
2627
2628
[[package]]2629
name = "openssl"2630
version = "0.10.81"2631
source = "registry+https://github.com/rust-lang/crates.io-index"2632
checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"2633
dependencies = [2634
"bitflags 2.13.1",2635
"cfg-if",2636
"foreign-types 0.3.2",2637
"libc",2638
"openssl-macros",2639
"openssl-sys",2640
]2641
2642
[[package]]2643
name = "openssl-macros"2644
version = "0.1.1"2645
source = "registry+https://github.com/rust-lang/crates.io-index"2646
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"2647
dependencies = [2648
"proc-macro2",2649
"quote",2650
"syn 2.0.119",2651
]2652
2653
[[package]]2654
name = "openssl-probe"2655
version = "0.2.1"2656
source = "registry+https://github.com/rust-lang/crates.io-index"2657
checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"2658
2659
[[package]]2660
name = "openssl-sys"2661
version = "0.9.117"2662
source = "registry+https://github.com/rust-lang/crates.io-index"2663
checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"2664
dependencies = [2665
"cc",2666
"libc",2667
"pkg-config",2668
"vcpkg",2669
]2670
2607
[[package]]2671
[[package]]2608
name = "orbclient"2672
name = "orbclient"2609
version = "0.3.55"2673
version = "0.3.55"@@ -2797,6 +2861,7 @@ dependencies = [2797
"ico",2861
"ico",2798
"image",2862
"image",2799
"libc",2863
"libc",2864
"native-tls",2800
"pulldown-cmark",2865
"pulldown-cmark",2801
"qrcode",2866
"qrcode",2802
"rfd",2867
"rfd",@@ -3150,20 +3215,6 @@ version = "0.8.53"3150
source = "registry+https://github.com/rust-lang/crates.io-index"3215
source = "registry+https://github.com/rust-lang/crates.io-index"3151
checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"3216
checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"3152
3217
3153
[[package]]3154
name = "ring"3155
version = "0.17.14"3156
source = "registry+https://github.com/rust-lang/crates.io-index"3157
checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"3158
dependencies = [3159
"cc",3160
"cfg-if",3161
"getrandom 0.2.17",3162
"libc",3163
"untrusted",3164
"windows-sys 0.52.0",3165
]3166
3167
[[package]]3218
[[package]]3168
name = "rusb"3219
name = "rusb"3169
version = "0.9.4"3220
version = "0.9.4"@@ -3221,41 +3272,6 @@ dependencies = [3221
"windows-sys 0.61.2",3272
"windows-sys 0.61.2",3222
]3273
]3223
3274
3224
[[package]]3225
name = "rustls"3226
version = "0.23.42"3227
source = "registry+https://github.com/rust-lang/crates.io-index"3228
checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138"3229
dependencies = [3230
"log",3231
"once_cell",3232
"ring",3233
"rustls-pki-types",3234
"rustls-webpki",3235
"subtle",3236
"zeroize",3237
]3238
3239
[[package]]3240
name = "rustls-pki-types"3241
version = "1.15.0"3242
source = "registry+https://github.com/rust-lang/crates.io-index"3243
checksum = "764899a24af3980067ee14bc143654f297b22eaebfe3c7b6b211920a5a59b046"3244
dependencies = [3245
"zeroize",3246
]3247
3248
[[package]]3249
name = "rustls-webpki"3250
version = "0.103.13"3251
source = "registry+https://github.com/rust-lang/crates.io-index"3252
checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"3253
dependencies = [3254
"ring",3255
"rustls-pki-types",3256
"untrusted",3257
]3258
3259
[[package]]3275
[[package]]3260
name = "rustversion"3276
name = "rustversion"3261
version = "1.0.23"3277
version = "1.0.23"@@ -3271,6 +3287,15 @@ dependencies = [3271
"winapi-util",3287
"winapi-util",3272
]3288
]3273
3289
3290
[[package]]3291
name = "schannel"3292
version = "0.1.29"3293
source = "registry+https://github.com/rust-lang/crates.io-index"3294
checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"3295
dependencies = [3296
"windows-sys 0.61.2",3297
]3298
3274
[[package]]3299
[[package]]3275
name = "scoped-tls"3300
name = "scoped-tls"3276
version = "1.0.1"3301
version = "1.0.1"@@ -3283,6 +3308,29 @@ version = "1.2.0"3283
source = "registry+https://github.com/rust-lang/crates.io-index"3308
source = "registry+https://github.com/rust-lang/crates.io-index"3284
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"3309
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"3285
3310
3311
[[package]]3312
name = "security-framework"3313
version = "3.7.0"3314
source = "registry+https://github.com/rust-lang/crates.io-index"3315
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"3316
dependencies = [3317
"bitflags 2.13.1",3318
"core-foundation 0.10.1",3319
"core-foundation-sys",3320
"libc",3321
"security-framework-sys",3322
]3323
3324
[[package]]3325
name = "security-framework-sys"3326
version = "2.17.0"3327
source = "registry+https://github.com/rust-lang/crates.io-index"3328
checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"3329
dependencies = [3330
"core-foundation-sys",3331
"libc",3332
]3333
3286
[[package]]3334
[[package]]3287
name = "semver"3335
name = "semver"3288
version = "1.0.28"3336
version = "1.0.28"@@ -3551,12 +3599,6 @@ dependencies = [3551
"syn 2.0.119",3599
"syn 2.0.119",3552
]3600
]3553
3601
3554
[[package]]3555
name = "subtle"3556
version = "2.6.1"3557
source = "registry+https://github.com/rust-lang/crates.io-index"3558
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"3559
3560
[[package]]3602
[[package]]3561
name = "syn"3603
name = "syn"3562
version = "2.0.119"3604
version = "2.0.119"@@ -3818,12 +3860,6 @@ version = "0.2.6"3818
source = "registry+https://github.com/rust-lang/crates.io-index"3860
source = "registry+https://github.com/rust-lang/crates.io-index"3819
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"3861
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"3820
3862
3821
[[package]]3822
name = "untrusted"3823
version = "0.9.0"3824
source = "registry+https://github.com/rust-lang/crates.io-index"3825
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"3826
3827
[[package]]3863
[[package]]3828
name = "ureq"3864
name = "ureq"3829
version = "2.12.1"3865
version = "2.12.1"@@ -3832,11 +3868,9 @@ checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d"3832
dependencies = [3868
dependencies = [3833
"base64",3869
"base64",3834
"log",3870
"log",3871
"native-tls",3835
"once_cell",3872
"once_cell",3836
"rustls",3837
"rustls-pki-types",3838
"url",3873
"url",3839
"webpki-roots 0.26.11",3840
]3874
]3841
3875
3842
[[package]]3876
[[package]]@@ -3914,12 +3948,6 @@ dependencies = [3914
"winapi-util",3948
"winapi-util",3915
]3949
]3916
3950
3917
[[package]]3918
name = "wasi"3919
version = "0.11.1+wasi-snapshot-preview1"3920
source = "registry+https://github.com/rust-lang/crates.io-index"3921
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"3922
3923
[[package]]3951
[[package]]3924
name = "wasip2"3952
name = "wasip2"3925
version = "1.0.4+wasi-0.2.12"3953
version = "1.0.4+wasi-0.2.12"@@ -4155,24 +4183,6 @@ dependencies = [4155
"web-sys",4183
"web-sys",4156
]4184
]4157
4185
4158
[[package]]4159
name = "webpki-roots"4160
version = "0.26.11"4161
source = "registry+https://github.com/rust-lang/crates.io-index"4162
checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"4163
dependencies = [4164
"webpki-roots 1.0.9",4165
]4166
4167
[[package]]4168
name = "webpki-roots"4169
version = "1.0.9"4170
source = "registry+https://github.com/rust-lang/crates.io-index"4171
checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"4172
dependencies = [4173
"rustls-pki-types",4174
]4175
4176
[[package]]4186
[[package]]4177
name = "weezl"4187
name = "weezl"4178
version = "0.1.12"4188
version = "0.1.12"@@ -4886,12 +4896,6 @@ dependencies = [4886
"synstructure",4896
"synstructure",4887
]4897
]4888
4898
4889
[[package]]4890
name = "zeroize"4891
version = "1.9.0"4892
source = "registry+https://github.com/rust-lang/crates.io-index"4893
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"4894
4895
[[package]]4899
[[package]]4896
name = "zerotrie"4900
name = "zerotrie"4897
version = "0.2.4"4901
version = "0.2.4"@@ -25,7 +25,8 @@ libc = "0.2"
25
25
tempfile = "3"
26
26
flate2 = "1"
27
27
base64 = "0.22"
28
ureq = { version = "2", default-features = false, features = ["tls"] }
28
ureq = { version = "2", default-features = false, features = ["native-tls"] }
29
native-tls = "0.2"
29
30
30
31
[dev-dependencies]
31
32
tempfile = "3"
@@ -25,7 +25,8 @@ libc = "0.2"25
tempfile = "3"
25
tempfile = "3"
26
flate2 = "1"
26
flate2 = "1"
27
base64 = "0.22"
27
base64 = "0.22"
28
ureq = { version = "2", default-features = false, features = ["tls"] }
28
ureq = { version = "2", default-features = false, features = ["native-tls"] }
29
native-tls = "0.2"
29
30
30
[dev-dependencies]
31
[dev-dependencies]
31
tempfile = "3"
32
tempfile = "3"
@@ -168,7 +168,7 @@ Blank lines in the editor also feed one line (same as `@feed 1`).
168
168
@image ${LogoPath} width=50% align=center
169
169
```
170
170
171
Local paths resolve relative to the `.pos` file. `http://` and `https://` URLs are downloaded when preview or print needs the image.
171
Local paths resolve relative to the `.pos` file. `http://` and `https://` URLs are downloaded when preview or print needs the image (TLS certificate errors are ignored so corporate/self-signed hosts still work).
172
172
173
173
### Barcode
174
174
@@ -168,7 +168,7 @@ Blank lines in the editor also feed one line (same as `@feed 1`).168
@image ${LogoPath} width=50% align=center168
@image ${LogoPath} width=50% align=center169
```169
```170
170
171
Local paths resolve relative to the `.pos` file. `http://` and `https://` URLs are downloaded when preview or print needs the image.171
Local paths resolve relative to the `.pos` file. `http://` and `https://` URLs are downloaded when preview or print needs the image (TLS certificate errors are ignored so corporate/self-signed hosts still work).172
172
173
### Barcode173
### Barcode174
174
@@ -147,7 +147,7 @@ Status polling (paper out, cover open) is **not** implemented.
147
147
148
148
## Images and rasters
149
149
150
1. If the path is `http://` or `https://`, download (timeout + size limit, process cache); otherwise resolve relative to the `.pos` file (or absolute).
150
1. If the path is `http://` or `https://`, download (timeout + size limit, process cache; TLS cert verification disabled for remote logos); otherwise resolve relative to the `.pos` file (or absolute).
151
151
2. Decode with `image`, convert to luma, scale to printable width (`chars_per_line × 12` dots).
152
152
3. Threshold to 1-bit; emit `GS v 0` (`1D 76 30 00` + width/height LE + bitmap).
153
153
4. Append **LF** after the raster so following content (including blank-line feeds) advances correctly.
@@ -147,7 +147,7 @@ Status polling (paper out, cover open) is **not** implemented.147
147
148
## Images and rasters148
## Images and rasters149
149
150
1. If the path is `http://` or `https://`, download (timeout + size limit, process cache); otherwise resolve relative to the `.pos` file (or absolute).150
1. If the path is `http://` or `https://`, download (timeout + size limit, process cache; TLS cert verification disabled for remote logos); otherwise resolve relative to the `.pos` file (or absolute).151
2. Decode with `image`, convert to luma, scale to printable width (`chars_per_line × 12` dots).151
2. Decode with `image`, convert to luma, scale to printable width (`chars_per_line × 12` dots).152
3. Threshold to 1-bit; emit `GS v 0` (`1D 76 30 00` + width/height LE + bitmap).152
3. Threshold to 1-bit; emit `GS v 0` (`1D 76 30 00` + width/height LE + bitmap).153
4. Append **LF** after the raster so following content (including blank-line feeds) advances correctly.153
4. Append **LF** after the raster so following content (including blank-line feeds) advances correctly.@@ -76,7 +76,16 @@ fn download_cached(url: &str) -> Result<Vec<u8>, ImageLoadError> {
76
76
}
77
77
78
78
fn download(url: &str) -> Result<Vec<u8>, ImageLoadError> {
79
// Accept certificates the rustls/webpki bundle does not know (corporate CAs,
80
// incomplete chains). Remote logos on POS templates often live on such hosts.
81
let tls = native_tls::TlsConnector::builder()
82
.danger_accept_invalid_certs(true)
83
.danger_accept_invalid_hostnames(true)
84
.build()
85
.map_err(|e| ImageLoadError::Message(format!("tls setup: {e}")))?;
86
79
87
let agent = ureq::AgentBuilder::new()
88
.tls_connector(std::sync::Arc::new(tls))
80
89
.timeout_connect(Duration::from_secs(DOWNLOAD_TIMEOUT_SECS))
81
90
.timeout_read(Duration::from_secs(DOWNLOAD_TIMEOUT_SECS))
82
91
.build();
@@ -76,7 +76,16 @@ fn download_cached(url: &str) -> Result<Vec<u8>, ImageLoadError> {76
}
76
}
77
77
78
fn download(url: &str) -> Result<Vec<u8>, ImageLoadError> {
78
fn download(url: &str) -> Result<Vec<u8>, ImageLoadError> {
79
// Accept certificates the rustls/webpki bundle does not know (corporate CAs,
80
// incomplete chains). Remote logos on POS templates often live on such hosts.
81
let tls = native_tls::TlsConnector::builder()
82
.danger_accept_invalid_certs(true)
83
.danger_accept_invalid_hostnames(true)
84
.build()
85
.map_err(|e| ImageLoadError::Message(format!("tls setup: {e}")))?;
86
79
let agent = ureq::AgentBuilder::new()
87
let agent = ureq::AgentBuilder::new()
88
.tls_connector(std::sync::Arc::new(tls))
80
.timeout_connect(Duration::from_secs(DOWNLOAD_TIMEOUT_SECS))
89
.timeout_connect(Duration::from_secs(DOWNLOAD_TIMEOUT_SECS))
81
.timeout_read(Duration::from_secs(DOWNLOAD_TIMEOUT_SECS))
90
.timeout_read(Duration::from_secs(DOWNLOAD_TIMEOUT_SECS))
82
.build();
91
.build();