parent
092dc17ae4
commit
a479e6cc0e
239 changed files with 5780 additions and 4883 deletions
|
@ -10,7 +10,7 @@ license = "MIT"
|
|||
readme = "README.md"
|
||||
keywords = ["rust", "json-schema", "serde"]
|
||||
categories = ["encoding", "no-std"]
|
||||
rust-version = "1.65"
|
||||
rust-version = "1.70"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
|
|
@ -126,7 +126,10 @@ fn derive_json_schema(mut input: syn::DeriveInput, repr: bool) -> syn::Result<To
|
|||
(
|
||||
quote! {
|
||||
schemars::_private::alloc::borrow::Cow::Owned(
|
||||
schemars::_private::alloc::format!(#schema_name_fmt #(,#type_params=#type_params::schema_name())* #(,#const_params=#const_params)*)
|
||||
schemars::_private::alloc::format!(
|
||||
#schema_name_fmt
|
||||
#(,#type_params=#type_params::schema_name())*
|
||||
#(,#const_params=schemars::_private::alloc::string::ToString::to_string(&#const_params))*)
|
||||
)
|
||||
},
|
||||
quote! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue