@@ -17,26 +17,25 @@ categories = ["web-programming", "encoding", "data-structures"]
1717name = " cloudevents"
1818
1919[features ]
20- default = [" std" ]
20+ default = [" no_std" ]
21+ std = [" no_std_compat_bypass" ," snafu/std" , " snafu/guide" , " serde/std" , " serde_json/std" , " chrono/std" , " base64/std" , " url" ]
22+ no_std = [" no_std_compat_bypass" , " serde_no_std" , " chrono_no_std" , " base64/alloc" ]
23+
24+ no_std_compat_bypass =[" no-std-compat/std" ]
25+ no_std_compat_layer =[" no-std-compat/alloc" , " no-std-compat/compat_hash" , " no-std-compat/compat_sync" ]
2126chrono_no_std = [" chrono/serde" , " chrono/alloc" , " chrono/clock" ]
22- no_std = [" no-std-compat" , " serde_no_std" , " chrono_no_std" , " base64/alloc" ]
2327serde_no_std = [" serde/derive" , " serde/alloc" , " serde_json/alloc" ]
24- std = [" snafu/std" , " snafu/guide" , " serde/std" , " serde_json/std" , " chrono/std" , " base64/std" , " url" ]
2528
2629[dependencies ]
2730base64 = { version = " ^0.12" , default-features = false }
28- chrono = { version = " ^0.4" , default-features = false }
31+ chrono = { version = " ^0.4" , default-features = false , features = [ " serde " , " clock " ] }
2932delegate-attr = " ^0.2"
3033serde = { version = " ^1.0" , default-features =false }
3134serde_json = { version = " ^1.0" , default-features = false , features = [" alloc" ] }
32- serde-value = " ^0.7"
33- snafu = { version = " ^0.6" ,default-features = false }
35+ snafu = { version = " ^0.6" , default-features = false }
3436url = { version = " ^2.1" , features = [" serde" ], optional =true }
3537
36- [dependencies .no-std-compat ]
37- version = " ^0.4.1"
38- features = [" alloc" , " compat_hash" , " compat_sync" , " compat_macros" ]
39- optional =true
38+ no-std-compat = { version = " ^0.4.1" , features = [" alloc" , " compat_hash" , " compat_sync" ], optional =true }
4039
4140[target ."cfg(not(target_arch = \"wasm32\"))" .dependencies ]
4241hostname = " ^0.3"
0 commit comments