File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ difference = "2.0"
1919encoding_rs = " 0.8"
2020
2121[dependencies ]
22- cssparser-macros = {path = " ./macros" , version = " 0.3.3 " }
22+ cssparser-macros = {path = " ./macros" , version = " 0.4 " }
2323dtoa-short = " 0.3"
2424heapsize = {version = " >= 0.3, < 0.5" , optional = true }
2525itoa = " 0.4"
2626matches = " 0.1"
27- phf = " 0.7 "
27+ phf = " 0.8 "
2828procedural-masquerade = {path = " ./procedural-masquerade" , version = " 0.1" }
2929serde = {version = " 1.0" , optional = true }
3030smallvec = " 0.6"
Original file line number Diff line number Diff line change 11[package ]
22name = " cssparser-macros"
3- version = " 0.3.6 "
3+ version = " 0.4.0 "
44authors = [" Simon Sapin <simon.sapin@exyr.org>" ]
55description = " Procedural macros for cssparser"
66documentation = " https://docs.rs/cssparser-macros/"
@@ -13,7 +13,7 @@ proc-macro = true
1313
1414[dependencies ]
1515procedural-masquerade = {path = " ../procedural-masquerade" , version = " 0.1" }
16- phf_codegen = " 0.7 "
16+ phf_codegen = " 0.8 "
1717quote = " 1"
1818syn = {version = " 1" , features = [" full" , " extra-traits" ]}
1919proc-macro2 = " 1"
Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ define_proc_macros! {
8686 let mut tokens = quote! {
8787 static MAP : :: cssparser:: _internal__phf:: Map <& ' static str , #value_type> =
8888 } ;
89- let mut initializer_bytes = Vec :: new( ) ;
90- map. build( & mut initializer_bytes) . unwrap( ) ;
91- tokens. append_all( syn:: parse_str:: <syn:: Expr >( :: std:: str :: from_utf8( & initializer_bytes) . unwrap( ) ) ) ;
89+ tokens. append_all( syn:: parse_str:: <proc_macro2:: TokenStream >( & map. build( ) . to_string( ) ) ) ;
9290 tokens. append_all( quote!( ; ) ) ;
9391 tokens. to_string( )
9492 }
You can’t perform that action at this time.
0 commit comments