File tree Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ ron = "0.7.0"
22
22
serde = " 1.0.130"
23
23
serde_json = " 1.0.68"
24
24
bincode = " 1.3.3"
25
- serde_cbor = " 0.11.2"
26
25
serde_yaml = " 0.8.21"
27
26
rmp-serde = " 0.15.5"
28
27
futures = " 0.3.17"
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ pub(crate) fn run_tests() -> bool {
16
16
status &= test_ron ( ) ;
17
17
status &= test_json ( ) ;
18
18
status &= test_yaml ( ) ;
19
- status &= test_cbor ( ) ;
20
19
status &= test_msgpack ( ) ;
21
20
status &= test_bincode ( ) ;
22
21
@@ -232,32 +231,6 @@ fn test_yaml() -> bool {
232
231
ok
233
232
}
234
233
235
- fn test_cbor ( ) -> bool {
236
- println ! ( " -- test_cbor" ) ;
237
-
238
- let ok = std:: panic:: catch_unwind ( || {
239
- let foo = Foo :: new ( ) ;
240
-
241
- let cbor_bytes = serde_cbor:: to_vec ( & foo) . expect ( "Foo to CBOR" ) ;
242
- let result = serde_cbor:: from_slice :: < Foo > ( & cbor_bytes) . expect ( "Foo from CBOR" ) ;
243
- assert_eq ! ( foo, result) ;
244
-
245
- let cbor_bytes =
246
- serde_cbor:: to_vec ( & foo. to_variant ( ) . dispatch ( ) ) . expect ( "Dispatch to CBOR" ) ;
247
- let disp =
248
- serde_cbor:: from_slice :: < VariantDispatch > ( & cbor_bytes) . expect ( "Dispatch from CBOR" ) ;
249
- let result = Foo :: from_variant ( & Variant :: from ( & disp) ) . expect ( "Foo from Dispatch from CBOR" ) ;
250
- assert_eq ! ( foo, result) ;
251
- } )
252
- . is_ok ( ) ;
253
-
254
- if !ok {
255
- godot_error ! ( " !! Test test_cbor failed" ) ;
256
- }
257
-
258
- ok
259
- }
260
-
261
234
fn test_msgpack ( ) -> bool {
262
235
println ! ( " -- test_msgpack" ) ;
263
236
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ notice = "warn"
48
48
# A list of advisory IDs to ignore. Note that ignored advisories will still
49
49
# output a note when they are encountered.
50
50
ignore = [
51
- " RUSTSEC-2021-0127 " , # serde_cbor unmaintained; only used in tests
51
+ # "RUSTSEC-0000-0000",
52
52
]
53
53
# Threshold for security vulnerabilities, any vulnerability with a CVSS score
54
54
# lower than the range specified will be ignored. Note that ignored advisories
You can’t perform that action at this time.
0 commit comments