Codebase list rust-stfu8 / fc9e5c6
Update darling_core to 0.10.0 and RFS We also have to import a patch from upstream to fix compilation errors for the tests. Robin Krahl 4 years ago
5 changed file(s) with 44 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 rust-darling-core (0.10.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package darling_core 0.10.0 from crates.io using debcargo 2.4.0
3
4 -- Robin Krahl <robin.krahl@ireas.org> Tue, 24 Sep 2019 20:46:38 +0000
5
06 rust-darling-core (0.9.0-2) unstable; urgency=medium
17
28 * Package darling_core 0.9.0 from crates.io using debcargo 2.3.0
0 Merged into upstream, but not yet released, see
1 https://github.com/TedDriggs/darling/commit/ab605ecd7642704f34ab922d091149e498744b25
2 ---
3 --- a/src/from_meta.rs
4 +++ b/src/from_meta.rs
5 @@ -387,7 +387,7 @@ mod tests {
6 /// parse a string as a syn::Meta instance.
7 fn pm(tokens: TokenStream) -> ::std::result::Result<syn::Meta, String> {
8 let attribute: syn::Attribute = parse_quote!(#[#tokens]);
9 - attribute.parse_meta().ok_or("Unable to parse".into())
10 + attribute.parse_meta().map_err(|_| "Unable to parse".into())
11 }
12
13 fn fm<T: FromMeta>(tokens: TokenStream) -> T {
14 --- a/src/util/path_list.rs
15 +++ b/src/util/path_list.rs
16 @@ -70,7 +70,7 @@ mod tests {
17 /// parse a string as a syn::Meta instance.
18 fn pm(tokens: TokenStream) -> ::std::result::Result<Meta, String> {
19 let attribute: Attribute = parse_quote!(#[#tokens]);
20 - attribute.parse_meta().ok_or("Unable to parse".into())
21 + attribute.parse_meta().map_err(|_| "Unable to parse".into())
22 }
23
24 fn fm<T: FromMeta>(tokens: TokenStream) -> T {
25 @@ -82,7 +82,7 @@ mod tests {
26 fn succeeds() {
27 let paths = fm::<PathList>(quote!(ignore(Debug, Clone, Eq)));
28 assert_eq!(
29 - idents.to_strings(),
30 + paths.to_strings(),
31 vec![
32 String::from("Debug"),
33 String::from("Clone"),
34 --
35 2.23.0
36
+0
-13
src/darling-core/debian/patches/relax-dep.diff less more
0 Index: darling-core/Cargo.toml
1 ===================================================================
2 --- darling-core.orig/Cargo.toml
3 +++ darling-core/Cargo.toml
4 @@ -30,7 +30,7 @@ version = "0.4.26"
5 version = "0.6"
6
7 [dependencies.strsim]
8 -version = "0.7.0"
9 +version = ">= 0.7.0, < 0.10.0"
10 optional = true
11
12 [dependencies.syn]
0 relax-dep.diff
0 fix-tests.diff