mingyang91 commited on
Commit
26d4ce5
·
verified ·
1 Parent(s): 1e346b2

upgrade aws-sdk version

Browse files
Files changed (5) hide show
  1. .cargo/config.toml +4 -0
  2. Cargo.lock +104 -262
  3. Cargo.toml +4 -4
  4. Dockerfile +1 -1
  5. src/lesson.rs +2 -4
.cargo/config.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+
2
+ [target.aarch64-apple-darwin]
3
+ rustflags = "-lc++ -l framework=Accelerate"
4
+
Cargo.lock CHANGED
@@ -84,19 +84,21 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
84
 
85
  [[package]]
86
  name = "aws-config"
87
- version = "0.56.1"
88
  source = "registry+https://github.com/rust-lang/crates.io-index"
89
- checksum = "fc6b3804dca60326e07205179847f17a4fce45af3a1106939177ad41ac08a6de"
90
  dependencies = [
91
  "aws-credential-types",
92
  "aws-http",
 
93
  "aws-sdk-sso",
 
94
  "aws-sdk-sts",
95
  "aws-smithy-async",
96
- "aws-smithy-client",
97
  "aws-smithy-http",
98
- "aws-smithy-http-tower",
99
  "aws-smithy-json",
 
 
100
  "aws-smithy-types",
101
  "aws-types",
102
  "bytes",
@@ -104,52 +106,47 @@ dependencies = [
104
  "hex",
105
  "http",
106
  "hyper",
107
- "ring 0.16.20",
108
  "time",
109
  "tokio",
110
- "tower",
111
  "tracing",
112
  "zeroize",
113
  ]
114
 
115
  [[package]]
116
  name = "aws-credential-types"
117
- version = "0.56.1"
118
  source = "registry+https://github.com/rust-lang/crates.io-index"
119
- checksum = "70a66ac8ef5fa9cf01c2d999f39d16812e90ec1467bd382cbbb74ba23ea86201"
120
  dependencies = [
121
  "aws-smithy-async",
 
122
  "aws-smithy-types",
123
- "fastrand",
124
- "tokio",
125
- "tracing",
126
  "zeroize",
127
  ]
128
 
129
  [[package]]
130
  name = "aws-http"
131
- version = "0.56.1"
132
  source = "registry+https://github.com/rust-lang/crates.io-index"
133
- checksum = "3e626370f9ba806ae4c439e49675fd871f5767b093075cdf4fef16cac42ba900"
134
  dependencies = [
135
- "aws-credential-types",
136
  "aws-smithy-http",
 
137
  "aws-smithy-types",
138
  "aws-types",
139
  "bytes",
140
  "http",
141
  "http-body",
142
- "lazy_static",
143
- "percent-encoding",
144
  "pin-project-lite",
145
  "tracing",
146
  ]
147
 
148
  [[package]]
149
  name = "aws-runtime"
150
- version = "0.56.1"
151
  source = "registry+https://github.com/rust-lang/crates.io-index"
152
- checksum = "07ac5cf0ff19c1bca0cea7932e11b239d1025a45696a4f44f72ea86e2b8bdd07"
153
  dependencies = [
154
  "aws-credential-types",
155
  "aws-http",
@@ -169,16 +166,15 @@ dependencies = [
169
 
170
  [[package]]
171
  name = "aws-sdk-polly"
172
- version = "0.34.0"
173
  source = "registry+https://github.com/rust-lang/crates.io-index"
174
- checksum = "6950a413936042ea34341331eb2fe7635f33d760ffff3dd11afa4ad35d5151a5"
175
  dependencies = [
176
  "aws-credential-types",
177
  "aws-http",
178
  "aws-runtime",
179
  "aws-sigv4",
180
  "aws-smithy-async",
181
- "aws-smithy-client",
182
  "aws-smithy-http",
183
  "aws-smithy-json",
184
  "aws-smithy-runtime",
@@ -188,21 +184,41 @@ dependencies = [
188
  "bytes",
189
  "http",
190
  "regex",
191
- "tokio-stream",
192
  "tracing",
193
  ]
194
 
195
  [[package]]
196
  name = "aws-sdk-sso"
197
- version = "0.30.0"
198
  source = "registry+https://github.com/rust-lang/crates.io-index"
199
- checksum = "903f888ff190e64f6f5c83fb0f8d54f9c20481f1dc26359bb8896f5d99908949"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  dependencies = [
201
  "aws-credential-types",
202
  "aws-http",
203
  "aws-runtime",
204
  "aws-smithy-async",
205
- "aws-smithy-client",
206
  "aws-smithy-http",
207
  "aws-smithy-json",
208
  "aws-smithy-runtime",
@@ -212,21 +228,19 @@ dependencies = [
212
  "bytes",
213
  "http",
214
  "regex",
215
- "tokio-stream",
216
  "tracing",
217
  ]
218
 
219
  [[package]]
220
  name = "aws-sdk-sts"
221
- version = "0.30.0"
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
223
- checksum = "a47ad6bf01afc00423d781d464220bf69fb6a674ad6629cbbcb06d88cdc2be82"
224
  dependencies = [
225
  "aws-credential-types",
226
  "aws-http",
227
  "aws-runtime",
228
  "aws-smithy-async",
229
- "aws-smithy-client",
230
  "aws-smithy-http",
231
  "aws-smithy-json",
232
  "aws-smithy-query",
@@ -242,16 +256,15 @@ dependencies = [
242
 
243
  [[package]]
244
  name = "aws-sdk-transcribestreaming"
245
- version = "0.34.0"
246
  source = "registry+https://github.com/rust-lang/crates.io-index"
247
- checksum = "bf1b3a068ad56440585dccc3210a537bbe9653b07897698339e0d04c234463d2"
248
  dependencies = [
249
  "aws-credential-types",
250
  "aws-http",
251
  "aws-runtime",
252
  "aws-sigv4",
253
  "aws-smithy-async",
254
- "aws-smithy-client",
255
  "aws-smithy-eventstream",
256
  "aws-smithy-http",
257
  "aws-smithy-json",
@@ -268,15 +281,14 @@ dependencies = [
268
 
269
  [[package]]
270
  name = "aws-sdk-translate"
271
- version = "0.34.0"
272
  source = "registry+https://github.com/rust-lang/crates.io-index"
273
- checksum = "23f27dd4ee2f7aeb6736cb24bad9f0ef0bb08194bd598d8fa8e96261c6689409"
274
  dependencies = [
275
  "aws-credential-types",
276
  "aws-http",
277
  "aws-runtime",
278
  "aws-smithy-async",
279
- "aws-smithy-client",
280
  "aws-smithy-http",
281
  "aws-smithy-json",
282
  "aws-smithy-runtime",
@@ -287,18 +299,19 @@ dependencies = [
287
  "fastrand",
288
  "http",
289
  "regex",
290
- "tokio-stream",
291
  "tracing",
292
  ]
293
 
294
  [[package]]
295
  name = "aws-sigv4"
296
- version = "0.56.1"
297
  source = "registry+https://github.com/rust-lang/crates.io-index"
298
- checksum = "b7b28f4910bb956b7ab320b62e98096402354eca976c587d1eeccd523d9bac03"
299
  dependencies = [
 
300
  "aws-smithy-eventstream",
301
  "aws-smithy-http",
 
302
  "bytes",
303
  "form_urlencoded",
304
  "hex",
@@ -314,45 +327,20 @@ dependencies = [
314
 
315
  [[package]]
316
  name = "aws-smithy-async"
317
- version = "0.56.1"
318
  source = "registry+https://github.com/rust-lang/crates.io-index"
319
- checksum = "2cdb73f85528b9d19c23a496034ac53703955a59323d581c06aa27b4e4e247af"
320
  dependencies = [
321
  "futures-util",
322
  "pin-project-lite",
323
  "tokio",
324
- "tokio-stream",
325
- ]
326
-
327
- [[package]]
328
- name = "aws-smithy-client"
329
- version = "0.56.1"
330
- source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "c27b2756264c82f830a91cb4d2d485b2d19ad5bea476d9a966e03d27f27ba59a"
332
- dependencies = [
333
- "aws-smithy-async",
334
- "aws-smithy-http",
335
- "aws-smithy-http-tower",
336
- "aws-smithy-types",
337
- "bytes",
338
- "fastrand",
339
- "http",
340
- "http-body",
341
- "hyper",
342
- "hyper-rustls",
343
- "lazy_static",
344
- "pin-project-lite",
345
- "rustls",
346
- "tokio",
347
- "tower",
348
- "tracing",
349
  ]
350
 
351
  [[package]]
352
  name = "aws-smithy-eventstream"
353
- version = "0.56.1"
354
  source = "registry+https://github.com/rust-lang/crates.io-index"
355
- checksum = "850233feab37b591b7377fd52063aa37af615687f5896807abe7f49bd4e1d25b"
356
  dependencies = [
357
  "aws-smithy-types",
358
  "bytes",
@@ -361,57 +349,39 @@ dependencies = [
361
 
362
  [[package]]
363
  name = "aws-smithy-http"
364
- version = "0.56.1"
365
  source = "registry+https://github.com/rust-lang/crates.io-index"
366
- checksum = "54cdcf365d8eee60686885f750a34c190e513677db58bbc466c44c588abf4199"
367
  dependencies = [
368
  "aws-smithy-eventstream",
 
369
  "aws-smithy-types",
370
  "bytes",
371
  "bytes-utils",
372
  "futures-core",
373
  "http",
374
  "http-body",
375
- "hyper",
376
  "once_cell",
377
  "percent-encoding",
378
  "pin-project-lite",
379
  "pin-utils",
380
- "tokio",
381
- "tokio-util",
382
- "tracing",
383
- ]
384
-
385
- [[package]]
386
- name = "aws-smithy-http-tower"
387
- version = "0.56.1"
388
- source = "registry+https://github.com/rust-lang/crates.io-index"
389
- checksum = "822de399d0ce62829a69dfa8c5cd08efdbe61a7426b953e2268f8b8b52a607bd"
390
- dependencies = [
391
- "aws-smithy-http",
392
- "aws-smithy-types",
393
- "bytes",
394
- "http",
395
- "http-body",
396
- "pin-project-lite",
397
- "tower",
398
  "tracing",
399
  ]
400
 
401
  [[package]]
402
  name = "aws-smithy-json"
403
- version = "0.56.1"
404
  source = "registry+https://github.com/rust-lang/crates.io-index"
405
- checksum = "4fb1e7ab8fa7ad10c193af7ae56d2420989e9f4758bf03601a342573333ea34f"
406
  dependencies = [
407
  "aws-smithy-types",
408
  ]
409
 
410
  [[package]]
411
  name = "aws-smithy-query"
412
- version = "0.56.1"
413
  source = "registry+https://github.com/rust-lang/crates.io-index"
414
- checksum = "28556a3902091c1f768a34f6c998028921bdab8d47d92586f363f14a4a32d047"
415
  dependencies = [
416
  "aws-smithy-types",
417
  "urlencoding",
@@ -419,12 +389,11 @@ dependencies = [
419
 
420
  [[package]]
421
  name = "aws-smithy-runtime"
422
- version = "0.56.1"
423
  source = "registry+https://github.com/rust-lang/crates.io-index"
424
- checksum = "745e096b3553e7e0f40622aa04971ce52765af82bebdeeac53aa6fc82fe801e6"
425
  dependencies = [
426
  "aws-smithy-async",
427
- "aws-smithy-client",
428
  "aws-smithy-http",
429
  "aws-smithy-runtime-api",
430
  "aws-smithy-types",
@@ -432,61 +401,73 @@ dependencies = [
432
  "fastrand",
433
  "http",
434
  "http-body",
 
 
435
  "once_cell",
436
  "pin-project-lite",
437
  "pin-utils",
 
438
  "tokio",
439
  "tracing",
440
  ]
441
 
442
  [[package]]
443
  name = "aws-smithy-runtime-api"
444
- version = "0.56.1"
445
  source = "registry+https://github.com/rust-lang/crates.io-index"
446
- checksum = "93d0ae0c9cfd57944e9711ea610b48a963fb174a53aabacc08c5794a594b1d02"
447
  dependencies = [
448
  "aws-smithy-async",
449
- "aws-smithy-http",
450
  "aws-smithy-types",
451
  "bytes",
452
  "http",
 
453
  "tokio",
454
  "tracing",
 
455
  ]
456
 
457
  [[package]]
458
  name = "aws-smithy-types"
459
- version = "0.56.1"
460
  source = "registry+https://github.com/rust-lang/crates.io-index"
461
- checksum = "d90dbc8da2f6be461fa3c1906b20af8f79d14968fe47f2b7d29d086f62a51728"
462
  dependencies = [
463
  "base64-simd",
 
 
 
 
 
464
  "itoa",
465
  "num-integer",
 
 
466
  "ryu",
467
  "serde",
468
  "time",
 
 
469
  ]
470
 
471
  [[package]]
472
  name = "aws-smithy-xml"
473
- version = "0.56.1"
474
  source = "registry+https://github.com/rust-lang/crates.io-index"
475
- checksum = "e01d2dedcdd8023043716cfeeb3c6c59f2d447fce365d8e194838891794b23b6"
476
  dependencies = [
477
  "xmlparser",
478
  ]
479
 
480
  [[package]]
481
  name = "aws-types"
482
- version = "0.56.1"
483
  source = "registry+https://github.com/rust-lang/crates.io-index"
484
- checksum = "85aa0451bf8af1bf22a4f028d5d28054507a14be43cb8ac0597a8471fba9edfe"
485
  dependencies = [
486
  "aws-credential-types",
487
  "aws-smithy-async",
488
- "aws-smithy-client",
489
- "aws-smithy-http",
490
  "aws-smithy-types",
491
  "http",
492
  "rustc_version",
@@ -573,12 +554,6 @@ dependencies = [
573
  "generic-array",
574
  ]
575
 
576
- [[package]]
577
- name = "bumpalo"
578
- version = "3.14.0"
579
- source = "registry+https://github.com/rust-lang/crates.io-index"
580
- checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
581
-
582
  [[package]]
583
  name = "byteorder"
584
  version = "1.5.0"
@@ -1058,15 +1033,6 @@ version = "1.0.9"
1058
  source = "registry+https://github.com/rust-lang/crates.io-index"
1059
  checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
1060
 
1061
- [[package]]
1062
- name = "js-sys"
1063
- version = "0.3.65"
1064
- source = "registry+https://github.com/rust-lang/crates.io-index"
1065
- checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8"
1066
- dependencies = [
1067
- "wasm-bindgen",
1068
- ]
1069
-
1070
  [[package]]
1071
  name = "json5"
1072
  version = "0.4.1"
@@ -1360,26 +1326,6 @@ dependencies = [
1360
  "sha2",
1361
  ]
1362
 
1363
- [[package]]
1364
- name = "pin-project"
1365
- version = "1.1.3"
1366
- source = "registry+https://github.com/rust-lang/crates.io-index"
1367
- checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422"
1368
- dependencies = [
1369
- "pin-project-internal",
1370
- ]
1371
-
1372
- [[package]]
1373
- name = "pin-project-internal"
1374
- version = "1.1.3"
1375
- source = "registry+https://github.com/rust-lang/crates.io-index"
1376
- checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405"
1377
- dependencies = [
1378
- "proc-macro2",
1379
- "quote",
1380
- "syn 2.0.39",
1381
- ]
1382
-
1383
  [[package]]
1384
  name = "pin-project-lite"
1385
  version = "0.2.13"
@@ -1579,21 +1525,6 @@ dependencies = [
1579
  "uncased",
1580
  ]
1581
 
1582
- [[package]]
1583
- name = "ring"
1584
- version = "0.16.20"
1585
- source = "registry+https://github.com/rust-lang/crates.io-index"
1586
- checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
1587
- dependencies = [
1588
- "cc",
1589
- "libc",
1590
- "once_cell",
1591
- "spin 0.5.2",
1592
- "untrusted 0.7.1",
1593
- "web-sys",
1594
- "winapi",
1595
- ]
1596
-
1597
  [[package]]
1598
  name = "ring"
1599
  version = "0.17.5"
@@ -1603,8 +1534,8 @@ dependencies = [
1603
  "cc",
1604
  "getrandom",
1605
  "libc",
1606
- "spin 0.9.8",
1607
- "untrusted 0.9.0",
1608
  "windows-sys",
1609
  ]
1610
 
@@ -1670,7 +1601,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1670
  checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c"
1671
  dependencies = [
1672
  "log",
1673
- "ring 0.17.5",
1674
  "rustls-webpki",
1675
  "sct",
1676
  ]
@@ -1702,8 +1633,8 @@ version = "0.101.7"
1702
  source = "registry+https://github.com/rust-lang/crates.io-index"
1703
  checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
1704
  dependencies = [
1705
- "ring 0.17.5",
1706
- "untrusted 0.9.0",
1707
  ]
1708
 
1709
  [[package]]
@@ -1733,8 +1664,8 @@ version = "0.7.1"
1733
  source = "registry+https://github.com/rust-lang/crates.io-index"
1734
  checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
1735
  dependencies = [
1736
- "ring 0.17.5",
1737
- "untrusted 0.9.0",
1738
  ]
1739
 
1740
  [[package]]
@@ -1859,6 +1790,15 @@ version = "1.2.0"
1859
  source = "registry+https://github.com/rust-lang/crates.io-index"
1860
  checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
1861
 
 
 
 
 
 
 
 
 
 
1862
  [[package]]
1863
  name = "slab"
1864
  version = "0.4.9"
@@ -1894,12 +1834,6 @@ dependencies = [
1894
  "windows-sys",
1895
  ]
1896
 
1897
- [[package]]
1898
- name = "spin"
1899
- version = "0.5.2"
1900
- source = "registry+https://github.com/rust-lang/crates.io-index"
1901
- checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
1902
-
1903
  [[package]]
1904
  name = "spin"
1905
  version = "0.9.8"
@@ -2019,6 +1953,7 @@ dependencies = [
2019
  "mio",
2020
  "num_cpus",
2021
  "pin-project-lite",
 
2022
  "socket2 0.5.5",
2023
  "tokio-macros",
2024
  "windows-sys",
@@ -2108,28 +2043,6 @@ dependencies = [
2108
  "winnow",
2109
  ]
2110
 
2111
- [[package]]
2112
- name = "tower"
2113
- version = "0.4.13"
2114
- source = "registry+https://github.com/rust-lang/crates.io-index"
2115
- checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
2116
- dependencies = [
2117
- "futures-core",
2118
- "futures-util",
2119
- "pin-project",
2120
- "pin-project-lite",
2121
- "tokio",
2122
- "tower-layer",
2123
- "tower-service",
2124
- "tracing",
2125
- ]
2126
-
2127
- [[package]]
2128
- name = "tower-layer"
2129
- version = "0.3.2"
2130
- source = "registry+https://github.com/rust-lang/crates.io-index"
2131
- checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0"
2132
-
2133
  [[package]]
2134
  name = "tower-service"
2135
  version = "0.3.2"
@@ -2142,7 +2055,6 @@ version = "0.1.40"
2142
  source = "registry+https://github.com/rust-lang/crates.io-index"
2143
  checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
2144
  dependencies = [
2145
- "log",
2146
  "pin-project-lite",
2147
  "tracing-attributes",
2148
  "tracing-core",
@@ -2276,12 +2188,6 @@ version = "0.2.9"
2276
  source = "registry+https://github.com/rust-lang/crates.io-index"
2277
  checksum = "f28467d3e1d3c6586d8f25fa243f544f5800fec42d97032474e17222c2b75cfa"
2278
 
2279
- [[package]]
2280
- name = "untrusted"
2281
- version = "0.7.1"
2282
- source = "registry+https://github.com/rust-lang/crates.io-index"
2283
- checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
2284
-
2285
  [[package]]
2286
  name = "untrusted"
2287
  version = "0.9.0"
@@ -2350,70 +2256,6 @@ version = "0.11.0+wasi-snapshot-preview1"
2350
  source = "registry+https://github.com/rust-lang/crates.io-index"
2351
  checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
2352
 
2353
- [[package]]
2354
- name = "wasm-bindgen"
2355
- version = "0.2.88"
2356
- source = "registry+https://github.com/rust-lang/crates.io-index"
2357
- checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce"
2358
- dependencies = [
2359
- "cfg-if",
2360
- "wasm-bindgen-macro",
2361
- ]
2362
-
2363
- [[package]]
2364
- name = "wasm-bindgen-backend"
2365
- version = "0.2.88"
2366
- source = "registry+https://github.com/rust-lang/crates.io-index"
2367
- checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217"
2368
- dependencies = [
2369
- "bumpalo",
2370
- "log",
2371
- "once_cell",
2372
- "proc-macro2",
2373
- "quote",
2374
- "syn 2.0.39",
2375
- "wasm-bindgen-shared",
2376
- ]
2377
-
2378
- [[package]]
2379
- name = "wasm-bindgen-macro"
2380
- version = "0.2.88"
2381
- source = "registry+https://github.com/rust-lang/crates.io-index"
2382
- checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2"
2383
- dependencies = [
2384
- "quote",
2385
- "wasm-bindgen-macro-support",
2386
- ]
2387
-
2388
- [[package]]
2389
- name = "wasm-bindgen-macro-support"
2390
- version = "0.2.88"
2391
- source = "registry+https://github.com/rust-lang/crates.io-index"
2392
- checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907"
2393
- dependencies = [
2394
- "proc-macro2",
2395
- "quote",
2396
- "syn 2.0.39",
2397
- "wasm-bindgen-backend",
2398
- "wasm-bindgen-shared",
2399
- ]
2400
-
2401
- [[package]]
2402
- name = "wasm-bindgen-shared"
2403
- version = "0.2.88"
2404
- source = "registry+https://github.com/rust-lang/crates.io-index"
2405
- checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b"
2406
-
2407
- [[package]]
2408
- name = "web-sys"
2409
- version = "0.3.65"
2410
- source = "registry+https://github.com/rust-lang/crates.io-index"
2411
- checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85"
2412
- dependencies = [
2413
- "js-sys",
2414
- "wasm-bindgen",
2415
- ]
2416
-
2417
  [[package]]
2418
  name = "which"
2419
  version = "4.4.2"
 
84
 
85
  [[package]]
86
  name = "aws-config"
87
+ version = "0.57.1"
88
  source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "7489a72550db3712fe3a0a92068f832d6270ff82f518b84a800af131f99570d7"
90
  dependencies = [
91
  "aws-credential-types",
92
  "aws-http",
93
+ "aws-runtime",
94
  "aws-sdk-sso",
95
+ "aws-sdk-ssooidc",
96
  "aws-sdk-sts",
97
  "aws-smithy-async",
 
98
  "aws-smithy-http",
 
99
  "aws-smithy-json",
100
+ "aws-smithy-runtime",
101
+ "aws-smithy-runtime-api",
102
  "aws-smithy-types",
103
  "aws-types",
104
  "bytes",
 
106
  "hex",
107
  "http",
108
  "hyper",
109
+ "ring",
110
  "time",
111
  "tokio",
 
112
  "tracing",
113
  "zeroize",
114
  ]
115
 
116
  [[package]]
117
  name = "aws-credential-types"
118
+ version = "0.57.1"
119
  source = "registry+https://github.com/rust-lang/crates.io-index"
120
+ checksum = "80009846d61a0a4f9070d789cf0e64db284cba6984fae3871050d044e6569cd2"
121
  dependencies = [
122
  "aws-smithy-async",
123
+ "aws-smithy-runtime-api",
124
  "aws-smithy-types",
 
 
 
125
  "zeroize",
126
  ]
127
 
128
  [[package]]
129
  name = "aws-http"
130
+ version = "0.57.1"
131
  source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "1e65730b741a5f6422fd338bf6f76b7956b090affeaa045e78fca8c4186e0fd5"
133
  dependencies = [
 
134
  "aws-smithy-http",
135
+ "aws-smithy-runtime-api",
136
  "aws-smithy-types",
137
  "aws-types",
138
  "bytes",
139
  "http",
140
  "http-body",
 
 
141
  "pin-project-lite",
142
  "tracing",
143
  ]
144
 
145
  [[package]]
146
  name = "aws-runtime"
147
+ version = "0.57.1"
148
  source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "1d2414b96071ae840b97c0cc1d44b248d5607d648593cdf474f3fb5465572898"
150
  dependencies = [
151
  "aws-credential-types",
152
  "aws-http",
 
166
 
167
  [[package]]
168
  name = "aws-sdk-polly"
169
+ version = "0.35.0"
170
  source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "32082cb1ca1714be4430a4f1f81cfb815598d80938ef2b2b6cdbe3192a4cbd7f"
172
  dependencies = [
173
  "aws-credential-types",
174
  "aws-http",
175
  "aws-runtime",
176
  "aws-sigv4",
177
  "aws-smithy-async",
 
178
  "aws-smithy-http",
179
  "aws-smithy-json",
180
  "aws-smithy-runtime",
 
184
  "bytes",
185
  "http",
186
  "regex",
 
187
  "tracing",
188
  ]
189
 
190
  [[package]]
191
  name = "aws-sdk-sso"
192
+ version = "0.35.0"
193
  source = "registry+https://github.com/rust-lang/crates.io-index"
194
+ checksum = "341a5b00567d0f350025501c8fd36e1ca8055744a2d17e351f0b254f84eba48a"
195
+ dependencies = [
196
+ "aws-credential-types",
197
+ "aws-http",
198
+ "aws-runtime",
199
+ "aws-smithy-async",
200
+ "aws-smithy-http",
201
+ "aws-smithy-json",
202
+ "aws-smithy-runtime",
203
+ "aws-smithy-runtime-api",
204
+ "aws-smithy-types",
205
+ "aws-types",
206
+ "bytes",
207
+ "http",
208
+ "regex",
209
+ "tracing",
210
+ ]
211
+
212
+ [[package]]
213
+ name = "aws-sdk-ssooidc"
214
+ version = "0.35.0"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "dbd4bffbd26f66269933bcd26123f2d6860769c0f769b6d3fc10eda025d287d8"
217
  dependencies = [
218
  "aws-credential-types",
219
  "aws-http",
220
  "aws-runtime",
221
  "aws-smithy-async",
 
222
  "aws-smithy-http",
223
  "aws-smithy-json",
224
  "aws-smithy-runtime",
 
228
  "bytes",
229
  "http",
230
  "regex",
 
231
  "tracing",
232
  ]
233
 
234
  [[package]]
235
  name = "aws-sdk-sts"
236
+ version = "0.35.0"
237
  source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "51b1a8ae5c7098502a3e6d4130dbee1e1d3fcb8dc5d65cecab39e01d595f90f6"
239
  dependencies = [
240
  "aws-credential-types",
241
  "aws-http",
242
  "aws-runtime",
243
  "aws-smithy-async",
 
244
  "aws-smithy-http",
245
  "aws-smithy-json",
246
  "aws-smithy-query",
 
256
 
257
  [[package]]
258
  name = "aws-sdk-transcribestreaming"
259
+ version = "0.35.0"
260
  source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "8cc5f2feaaf9ae77128ce79a840c8a7dadc85b1aca14da5436bdfe659f2924df"
262
  dependencies = [
263
  "aws-credential-types",
264
  "aws-http",
265
  "aws-runtime",
266
  "aws-sigv4",
267
  "aws-smithy-async",
 
268
  "aws-smithy-eventstream",
269
  "aws-smithy-http",
270
  "aws-smithy-json",
 
281
 
282
  [[package]]
283
  name = "aws-sdk-translate"
284
+ version = "0.35.0"
285
  source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "7b271c642b5b2516c7a7220f4649ebfdfc252e3b55be053c121bc60bc76beefb"
287
  dependencies = [
288
  "aws-credential-types",
289
  "aws-http",
290
  "aws-runtime",
291
  "aws-smithy-async",
 
292
  "aws-smithy-http",
293
  "aws-smithy-json",
294
  "aws-smithy-runtime",
 
299
  "fastrand",
300
  "http",
301
  "regex",
 
302
  "tracing",
303
  ]
304
 
305
  [[package]]
306
  name = "aws-sigv4"
307
+ version = "0.57.1"
308
  source = "registry+https://github.com/rust-lang/crates.io-index"
309
+ checksum = "3347c738e0a8449020877d319cda56da74d6e8aba9fff210720fac66cae3c7f4"
310
  dependencies = [
311
+ "aws-credential-types",
312
  "aws-smithy-eventstream",
313
  "aws-smithy-http",
314
+ "aws-smithy-runtime-api",
315
  "bytes",
316
  "form_urlencoded",
317
  "hex",
 
327
 
328
  [[package]]
329
  name = "aws-smithy-async"
330
+ version = "0.57.1"
331
  source = "registry+https://github.com/rust-lang/crates.io-index"
332
+ checksum = "b4b65a284265d3eec6cc9f1daef2d0cc3b78684b712cb6c7f1d0f665456b7604"
333
  dependencies = [
334
  "futures-util",
335
  "pin-project-lite",
336
  "tokio",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  ]
338
 
339
  [[package]]
340
  name = "aws-smithy-eventstream"
341
+ version = "0.57.1"
342
  source = "registry+https://github.com/rust-lang/crates.io-index"
343
+ checksum = "b16e7ecebc2b083a1b138868a46a343204a6097f343c4830a8b22b3a0d30013e"
344
  dependencies = [
345
  "aws-smithy-types",
346
  "bytes",
 
349
 
350
  [[package]]
351
  name = "aws-smithy-http"
352
+ version = "0.57.1"
353
  source = "registry+https://github.com/rust-lang/crates.io-index"
354
+ checksum = "715aeb61fb743848d5d398ce6fb1259f5eba5e13dceec5d5064cada1a181d38d"
355
  dependencies = [
356
  "aws-smithy-eventstream",
357
+ "aws-smithy-runtime-api",
358
  "aws-smithy-types",
359
  "bytes",
360
  "bytes-utils",
361
  "futures-core",
362
  "http",
363
  "http-body",
 
364
  "once_cell",
365
  "percent-encoding",
366
  "pin-project-lite",
367
  "pin-utils",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  "tracing",
369
  ]
370
 
371
  [[package]]
372
  name = "aws-smithy-json"
373
+ version = "0.57.1"
374
  source = "registry+https://github.com/rust-lang/crates.io-index"
375
+ checksum = "de21d368dcd5cab17033406ea6e7351b091164b208381de837510bd7558c0f30"
376
  dependencies = [
377
  "aws-smithy-types",
378
  ]
379
 
380
  [[package]]
381
  name = "aws-smithy-query"
382
+ version = "0.57.1"
383
  source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "9e5ace389c7e4def130bff7275647481c8d49b867909ca61d5dc9a809b3632f3"
385
  dependencies = [
386
  "aws-smithy-types",
387
  "urlencoding",
 
389
 
390
  [[package]]
391
  name = "aws-smithy-runtime"
392
+ version = "0.57.1"
393
  source = "registry+https://github.com/rust-lang/crates.io-index"
394
+ checksum = "fb4395310662d10f1847324af5fe43e621922cba03b1aa6d26c21096e18a4e79"
395
  dependencies = [
396
  "aws-smithy-async",
 
397
  "aws-smithy-http",
398
  "aws-smithy-runtime-api",
399
  "aws-smithy-types",
 
401
  "fastrand",
402
  "http",
403
  "http-body",
404
+ "hyper",
405
+ "hyper-rustls",
406
  "once_cell",
407
  "pin-project-lite",
408
  "pin-utils",
409
+ "rustls",
410
  "tokio",
411
  "tracing",
412
  ]
413
 
414
  [[package]]
415
  name = "aws-smithy-runtime-api"
416
+ version = "0.57.1"
417
  source = "registry+https://github.com/rust-lang/crates.io-index"
418
+ checksum = "30e27594c06f5b36e97d18ef26ed693f1d4c7167b9bbb544b3a9bb653f9f7035"
419
  dependencies = [
420
  "aws-smithy-async",
 
421
  "aws-smithy-types",
422
  "bytes",
423
  "http",
424
+ "pin-project-lite",
425
  "tokio",
426
  "tracing",
427
+ "zeroize",
428
  ]
429
 
430
  [[package]]
431
  name = "aws-smithy-types"
432
+ version = "0.57.1"
433
  source = "registry+https://github.com/rust-lang/crates.io-index"
434
+ checksum = "5d36f1723ed61e82094498e7283510fe21484b73c215c33874c81a84411b5bdc"
435
  dependencies = [
436
  "base64-simd",
437
+ "bytes",
438
+ "bytes-utils",
439
+ "futures-core",
440
+ "http",
441
+ "http-body",
442
  "itoa",
443
  "num-integer",
444
+ "pin-project-lite",
445
+ "pin-utils",
446
  "ryu",
447
  "serde",
448
  "time",
449
+ "tokio",
450
+ "tokio-util",
451
  ]
452
 
453
  [[package]]
454
  name = "aws-smithy-xml"
455
+ version = "0.57.1"
456
  source = "registry+https://github.com/rust-lang/crates.io-index"
457
+ checksum = "68225c8d3e3e6c565a3cf764aa82440837ef15c33d1dd7205e15715444e4b4ad"
458
  dependencies = [
459
  "xmlparser",
460
  ]
461
 
462
  [[package]]
463
  name = "aws-types"
464
+ version = "0.57.1"
465
  source = "registry+https://github.com/rust-lang/crates.io-index"
466
+ checksum = "acdc27aac60f715bab25f5d758ba5651b80aae791c48e9871ffe298683f00a2b"
467
  dependencies = [
468
  "aws-credential-types",
469
  "aws-smithy-async",
470
+ "aws-smithy-runtime-api",
 
471
  "aws-smithy-types",
472
  "http",
473
  "rustc_version",
 
554
  "generic-array",
555
  ]
556
 
 
 
 
 
 
 
557
  [[package]]
558
  name = "byteorder"
559
  version = "1.5.0"
 
1033
  source = "registry+https://github.com/rust-lang/crates.io-index"
1034
  checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
1035
 
 
 
 
 
 
 
 
 
 
1036
  [[package]]
1037
  name = "json5"
1038
  version = "0.4.1"
 
1326
  "sha2",
1327
  ]
1328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1329
  [[package]]
1330
  name = "pin-project-lite"
1331
  version = "0.2.13"
 
1525
  "uncased",
1526
  ]
1527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1528
  [[package]]
1529
  name = "ring"
1530
  version = "0.17.5"
 
1534
  "cc",
1535
  "getrandom",
1536
  "libc",
1537
+ "spin",
1538
+ "untrusted",
1539
  "windows-sys",
1540
  ]
1541
 
 
1601
  checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c"
1602
  dependencies = [
1603
  "log",
1604
+ "ring",
1605
  "rustls-webpki",
1606
  "sct",
1607
  ]
 
1633
  source = "registry+https://github.com/rust-lang/crates.io-index"
1634
  checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
1635
  dependencies = [
1636
+ "ring",
1637
+ "untrusted",
1638
  ]
1639
 
1640
  [[package]]
 
1664
  source = "registry+https://github.com/rust-lang/crates.io-index"
1665
  checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
1666
  dependencies = [
1667
+ "ring",
1668
+ "untrusted",
1669
  ]
1670
 
1671
  [[package]]
 
1790
  source = "registry+https://github.com/rust-lang/crates.io-index"
1791
  checksum = "a7cee0529a6d40f580e7a5e6c495c8fbfe21b7b52795ed4bb5e62cdf92bc6380"
1792
 
1793
+ [[package]]
1794
+ name = "signal-hook-registry"
1795
+ version = "1.4.1"
1796
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1797
+ checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
1798
+ dependencies = [
1799
+ "libc",
1800
+ ]
1801
+
1802
  [[package]]
1803
  name = "slab"
1804
  version = "0.4.9"
 
1834
  "windows-sys",
1835
  ]
1836
 
 
 
 
 
 
 
1837
  [[package]]
1838
  name = "spin"
1839
  version = "0.9.8"
 
1953
  "mio",
1954
  "num_cpus",
1955
  "pin-project-lite",
1956
+ "signal-hook-registry",
1957
  "socket2 0.5.5",
1958
  "tokio-macros",
1959
  "windows-sys",
 
2043
  "winnow",
2044
  ]
2045
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2046
  [[package]]
2047
  name = "tower-service"
2048
  version = "0.3.2"
 
2055
  source = "registry+https://github.com/rust-lang/crates.io-index"
2056
  checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
2057
  dependencies = [
 
2058
  "pin-project-lite",
2059
  "tracing-attributes",
2060
  "tracing-core",
 
2188
  source = "registry+https://github.com/rust-lang/crates.io-index"
2189
  checksum = "f28467d3e1d3c6586d8f25fa243f544f5800fec42d97032474e17222c2b75cfa"
2190
 
 
 
 
 
 
 
2191
  [[package]]
2192
  name = "untrusted"
2193
  version = "0.9.0"
 
2256
  source = "registry+https://github.com/rust-lang/crates.io-index"
2257
  checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
2258
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2259
  [[package]]
2260
  name = "which"
2261
  version = "4.4.2"
Cargo.toml CHANGED
@@ -6,10 +6,10 @@ edition = "2021"
6
  [dependencies]
7
  anyhow = "1.0"
8
  async-stream = "0.3"
9
- aws-config = "0.56"
10
- aws-sdk-transcribestreaming = "0.34"
11
- aws-sdk-translate = "0.34"
12
- aws-sdk-polly = "0.34"
13
  config = "0.13"
14
  futures-util = "0.3"
15
  once_cell = "1.18"
 
6
  [dependencies]
7
  anyhow = "1.0"
8
  async-stream = "0.3"
9
+ aws-config = "0.57.1"
10
+ aws-sdk-transcribestreaming = "0.35.0"
11
+ aws-sdk-translate = "0.35.0"
12
+ aws-sdk-polly = "0.35.0"
13
  config = "0.13"
14
  futures-util = "0.3"
15
  once_cell = "1.18"
Dockerfile CHANGED
@@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y ca-certificates python3-dev && rm -rf /
39
  COPY --from=builder /target/release/polyhedron /usr/local/bin/polyhedron
40
  COPY ./models/ggml-large-encoder.mlmodelc ./models/ggml-large-encoder.mlmodelc
41
  COPY ./models/ggml-large.bin ./models/ggml-large.bin
42
- COPY config.yaml config.yaml
43
  COPY ./static ./static
44
 
45
  # Run the binary
 
39
  COPY --from=builder /target/release/polyhedron /usr/local/bin/polyhedron
40
  COPY ./models/ggml-large-encoder.mlmodelc ./models/ggml-large-encoder.mlmodelc
41
  COPY ./models/ggml-large.bin ./models/ggml-large.bin
42
+ COPY ./config/dev.yaml ./config/dev.yaml
43
  COPY ./static ./static
44
 
45
  # Run the binary
src/lesson.rs CHANGED
@@ -8,7 +8,7 @@ use aws_sdk_transcribestreaming::types::{
8
  AudioEvent, AudioStream, LanguageCode, MediaEncoding, TranscriptResultStream,
9
  };
10
  use futures_util::future::try_join;
11
- use futures_util::{Stream, StreamExt, TryStreamExt};
12
  use serde::{Deserialize, Serialize};
13
  use std::collections::BTreeMap;
14
  use std::error::Error;
@@ -230,9 +230,7 @@ impl LangLesson {
230
  .await;
231
  match output {
232
  Ok(res) => {
233
- if let Some(translated) = res.translated_text {
234
- let _ = shared_translated_tx.send(translated);
235
- }
236
  }
237
  Err(e) => {
238
  return Err(e);
 
8
  AudioEvent, AudioStream, LanguageCode, MediaEncoding, TranscriptResultStream,
9
  };
10
  use futures_util::future::try_join;
11
+ use futures_util::{Stream, TryStreamExt};
12
  use serde::{Deserialize, Serialize};
13
  use std::collections::BTreeMap;
14
  use std::error::Error;
 
230
  .await;
231
  match output {
232
  Ok(res) => {
233
+ let _ = shared_translated_tx.send(res.translated_text);
 
 
234
  }
235
  Err(e) => {
236
  return Err(e);