Debian Codegraph @

debian/patches/port-darling-0.23-syn2.patch

raw symbols SCIP
1 Descriptionscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/patches/`port-darling-0.23-syn2.patch`#Description.: Port to darling >= 0.20, < 0.24 and syn 2
2 AttributeArgs removed in syn 2; use NestedMeta::parse_meta_list.
3 Authorscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/patches/`port-darling-0.23-syn2.patch`#Author.: Simon Quigley <[email protected]scip-debian . . . identity/`[email protected]`.>
4 Forwardedscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/patches/`port-darling-0.23-syn2.patch`#Forwarded.: not-needed
5 Last-Updatescip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/patches/`port-darling-0.23-syn2.patch`#Last-Update.: 2026-07-20
6
7 --- a/Cargo.tomlscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/upstream/`Cargo.toml`:
8 +++ b/Cargo.tomlscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/upstream/`Cargo.toml`:
9 @@ -31,7 +31,7 @@ repository = "https://github.com/stevenl
10 proc-macro = true
11
12 [dependencies.darling]
13 -version = "0.14.2"
14 +version = ">= 0.20, < 0.24"
15
16 [dependencies.log]
17 version = "0.4.17"
18 @@ -44,7 +44,7 @@ version = "1.0.47"
19 version = "1.0.21"
20
21 [dependencies.syn]
22 -version = "1.0.103"
23 +version = "2"
24 features = [
25 "full",
26 "extra-traits",
27 --- a/src/lib.rsscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/upstream/`src/lib.rs`:
28 +++ b/src/lib.rsscip-debian debian rust-fun-time-derive 0.3.4-2 rust-fun-time-derive/upstream/`src/lib.rs`:
29 @@ -1,3 +1,4 @@
30 +use darling::ast::NestedMeta;
31 use darling::FromMeta;
32 use quote::quote;
33 use syn::{parse_macro_input, ReturnType};
34 @@ -194,7 +195,10 @@ pub fn fun_time(
35 args: proc_macro::TokenStream,
36 item: proc_macro::TokenStream,
37 ) -> proc_macro::TokenStream {
38 - let raw_args: syn::AttributeArgs = parse_macro_input!(args as syn::AttributeArgs);
39 + let raw_args = match NestedMeta::parse_meta_list(args.into()) {
40 + Ok(v) => v,
41 + Err(e) => return darling::Error::from(e).write_errors().into(),
42 + };
43 let args: FunTimeArgs = match FunTimeArgs::from_list(&raw_args) {
44 Ok(args) => args,
45 Err(error) => return error.write_errors().into(),