@@ -17,26 +17,25 @@ categories = ["web-programming", "encoding", "data-structures"]
17
17
name = " cloudevents"
18
18
19
19
[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" ]
21
26
chrono_no_std = [" chrono/serde" , " chrono/alloc" , " chrono/clock" ]
22
- no_std = [" no-std-compat" , " serde_no_std" , " chrono_no_std" , " base64/alloc" ]
23
27
serde_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" ]
25
28
26
29
[dependencies ]
27
30
base64 = { 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 " ] }
29
32
delegate-attr = " ^0.2"
30
33
serde = { version = " ^1.0" , default-features =false }
31
34
serde_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 }
34
36
url = { version = " ^2.1" , features = [" serde" ], optional =true }
35
37
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 }
40
39
41
40
[target ."cfg(not(target_arch = \"wasm32\"))" .dependencies ]
42
41
hostname = " ^0.3"
0 commit comments