@@ -105,19 +105,19 @@ json = ["dep:serde_json", "alloc"]
105
105
# #
106
106
# # This pulls in `serde_with_macros` as a dependency.
107
107
macros = [" dep:serde_with_macros" ]
108
- # # The feature enables integration of `time` v0.3 specific conversions.
109
- # # This includes support for the timestamp and duration types.
110
- # #
111
- # # This pulls in `time` v0.3 as a dependency.
112
- # # Some functionality is only available when `alloc` or `std` is enabled too.
113
- time_0_3 = [" dep:time_0_3" ]
114
108
# # This feature enables integration with `schemars` 0.8.
115
109
# # This makes `#[derive(JsonSchema)]` pick up the correct schema for the type
116
110
# # used within `#[serde_as(as = ...)]`.
117
111
# #
118
112
# # This pulls in `schemars` v0.8 as a dependency. It will also implicitly enable
119
113
# # the `std` feature as `schemars` is not `#[no_std]`.
120
114
schemars_0_8 = [" dep:schemars_0_8" , " std" , " serde_with_macros?/schemars_0_8" ]
115
+ # # The feature enables integration of `time` v0.3 specific conversions.
116
+ # # This includes support for the timestamp and duration types.
117
+ # #
118
+ # # This pulls in `time` v0.3 as a dependency.
119
+ # # Some functionality is only available when `alloc` or `std` is enabled too.
120
+ time_0_3 = [" dep:time_0_3" ]
121
121
122
122
# When adding new optional dependencies update the documentation in feature-flags.md
123
123
[dependencies ]
@@ -129,13 +129,13 @@ hashbrown_0_14 = {package = "hashbrown", version = "0.14.0", optional = true, de
129
129
hex = {version = " 0.4.3" , optional = true , default-features = false }
130
130
indexmap_1 = {package = " indexmap" , version = " 1.8" , optional = true , default-features = false , features = [" serde-1" ]}
131
131
indexmap_2 = {package = " indexmap" , version = " 2.0" , optional = true , default-features = false , features = [" serde" ]}
132
+ schemars_0_8 = {package = " schemars" , version = " 0.8.16" , optional = true , default-features = false }
132
133
# The derive feature is needed for the flattened_maybe macro.
133
134
# https://github.com/jonasbb/serde_with/blob/eb1965a74a3be073ecd13ec05f02a01bc1c44309/serde_with/src/flatten_maybe.rs#L67
134
135
serde = {version = " 1.0.152" , default-features = false , features = [" derive" ] }
135
136
serde_json = {version = " 1.0.45" , optional = true , default-features = false }
136
137
serde_with_macros = {path = " ../serde_with_macros" , version = " =3.4.0" , optional = true }
137
138
time_0_3 = {package = " time" , version = " ~0.3.11" , optional = true , default-features = false }
138
- schemars_0_8 = {package = " schemars" , version = " 0.8.16" , optional = true , default-features = false }
139
139
140
140
[dev-dependencies ]
141
141
expect-test = " 1.3.0"
0 commit comments