Codebase list rust-libslirp / 886dacb
Updated zvariant and zvariant-derive to 3.9.0 Matthias Geiger 1 year, 4 months ago
11 changed file(s) with 22 addition(s) and 565 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 rust-zvariant (3.9.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package zvariant 3.9.0 from crates.io using debcargo 2.6.0
4
5 -- Matthias Geiger <matthias.geiger1024@tutanota.de> Mon, 02 Jan 2023 01:24:26 +0100
6
07 rust-zvariant (2.10.0-1) unstable; urgency=medium
18
29 * Package zvariant 2.10.0 from crates.io using debcargo 2.5.0
00 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
11 Upstream-Name: zvariant
2 Upstream-Contact: Zeeshan Ali <zeeshanak@gnome.org>
2 Upstream-Contact: Zeeshan Ali Khan <zeeshanak@gnome.org>
33 Source: https://gitlab.freedesktop.org/dbus/zbus/
44
55 Files: *
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Zeeshan Ali <zeeshanak@gnome.org>
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Zeeshan Ali Khan <zeeshanak@gnome.org>
77 License: MIT
88 Comment:
99 FIXME (overlay): Since upstream copyright years are not available in
1313
1414 Files: debian/*
1515 Copyright:
16 2020-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
17 2020-2021 Andrej Shadura <andrewsh@debian.org>
16 2020-2023 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
17 2020-2023 Andrej Shadura <andrewsh@debian.org>
1818 License: MIT
1919
2020 License: MIT
+0
-15
src/zvariant/debian/patches/disable-arrayvec.patch less more
0 Index: zvariant/Cargo.toml
1 ===================================================================
2 --- zvariant.orig/Cargo.toml
3 +++ zvariant/Cargo.toml
4 @@ -28,10 +28,6 @@ bench = false
5 [[bench]]
6 name = "benchmarks"
7 harness = false
8 -[dependencies.arrayvec]
9 -version = "0.5.1"
10 -features = ["serde"]
11 -optional = true
12
13 [dependencies.byteorder]
14 version = "1.3.1"
+0
-65
src/zvariant/debian/patches/disable-criterion.patch less more
0 Description: Disable benches that use criterion so the rest of the testsuite can run.
1 Author: Peter Michael Green <plugwash@debian.org>
2
3 Index: zvariant/Cargo.toml
4 ===================================================================
5 --- zvariant.orig/Cargo.toml
6 +++ zvariant/Cargo.toml
7 @@ -53,8 +53,6 @@ version = "1.1.0"
8
9 [dependencies.zvariant_derive]
10 version = "=2.10.0"
11 -[dev-dependencies.criterion]
12 -version = "0.3"
13
14 [dev-dependencies.rand]
15 version = "0.8.3"
16 Index: zvariant/benches/benchmarks.rs
17 ===================================================================
18 --- zvariant.orig/benches/benchmarks.rs
19 +++ zvariant/benches/benchmarks.rs
20 @@ -2,14 +2,14 @@ use byteorder::LE;
21 use serde::{Deserialize, Serialize};
22 use std::collections::HashMap;
23
24 -use criterion::{black_box, criterion_group, criterion_main, Criterion};
25 +//use criterion::{black_box, criterion_group, criterion_main, Criterion};
26
27 use zvariant::{
28 from_slice_for_signature, to_bytes_for_signature, EncodingContext as Context, Type, Value,
29 };
30 use zvariant_derive::Type;
31
32 -fn fixed_size_array(c: &mut Criterion) {
33 +/*fn fixed_size_array(c: &mut Criterion) {
34 let ay = vec![77u8; 100_000];
35 let ctxt = Context::<LE>::new_dbus(0);
36 let signature = Vec::<u8>::signature();
37 @@ -26,9 +26,9 @@ fn fixed_size_array(c: &mut Criterion) {
38 .unwrap();
39 })
40 });
41 -}
42 +}*/
43
44 -fn big_array_ser_and_de(c: &mut Criterion) {
45 +/*fn big_array_ser_and_de(c: &mut Criterion) {
46 #[derive(Deserialize, Serialize, Type, PartialEq, Debug, Clone)]
47 struct ZVField<'f> {
48 int2: u64,
49 @@ -123,7 +123,11 @@ fn big_array_ser_and_de(c: &mut Criterio
50 black_box(s);
51 })
52 });
53 -}
54 +}*/
55
56 -criterion_group!(benches, big_array_ser_and_de, fixed_size_array);
57 -criterion_main!(benches);
58 +//criterion_group!(benches, big_array_ser_and_de, fixed_size_array);
59 +//criterion_main!(benches);
60 +
61 +fn main() {
62 + println!("Benchmarks disabled because criterion is not in Debian");
63 +}
64 \ No newline at end of file
+0
-20
src/zvariant/debian/patches/disable-test-missing-testdata.patch less more
0 Index: zvariant/src/lib.rs
1 ===================================================================
2 --- zvariant.orig/src/lib.rs
3 +++ zvariant/src/lib.rs
4 @@ -1704,7 +1704,7 @@ mod tests {
5 let _: ZVStruct<'_> = from_slice_for_signature(&encoded, ctxt, &signature).unwrap();
6 }
7
8 - #[cfg(feature = "ostree-tests")]
9 + /*#[cfg(feature = "ostree-tests")]
10 #[test]
11 fn ostree_de() {
12 #[derive(Deserialize, Serialize, Type, PartialEq, Debug)]
13 @@ -1720,5 +1720,5 @@ mod tests {
14 let ctxt = Context::<LE>::new_gvariant(0);
15 let _: Summary<'_> = from_slice(&encoded, ctxt).unwrap();
16 // If we're able to deserialize all the data successfully, don't bother checking the summary data.
17 - }
18 + }*/
19 }
+0
-439
src/zvariant/debian/patches/disable-tests-missing-glib-imports.patch less more
0 Description: Disable a test that fails with a missing import error.
1 Index: zvariant/src/lib.rs
2 ===================================================================
3 --- zvariant.orig/src/lib.rs
4 +++ zvariant/src/lib.rs
5 @@ -227,8 +227,8 @@ mod tests {
6 #[cfg(feature = "arrayvec")]
7 use std::str::FromStr;
8
9 - #[cfg(feature = "gvariant")]
10 - use glib::{Bytes, FromVariant, Variant};
11 + //#[cfg(feature = "gvariant")]
12 + //use glib::{Bytes, FromVariant, Variant};
13 use serde::{Deserialize, Serialize};
14
15 use zvariant_derive::{DeserializeDict, SerializeDict, Type, TypeDict};
16 @@ -370,7 +370,7 @@ mod tests {
17 assert!(decoded == v, "invalid decoding using `from_slice`");
18 }
19
20 - #[cfg(feature = "gvariant")]
21 + /*#[cfg(feature = "gvariant")]
22 fn decode_with_gvariant<B, T>(encoded: B) -> T
23 where
24 B: AsRef<[u8]> + Send + 'static,
25 @@ -379,7 +379,7 @@ mod tests {
26 let bytes = Bytes::from_owned(encoded);
27 let gv = Variant::from_bytes::<T>(&bytes);
28 gv.get::<T>().unwrap()
29 - }
30 + }*/
31
32 // All fixed size types have the same encoding in DBus and GVariant formats.
33 //
34 @@ -389,11 +389,11 @@ mod tests {
35 fn u8_value() {
36 let encoded = basic_type_test!(LE, DBus, 77_u8, 1, u8, 1, U8, 4);
37 assert_eq!(encoded.len(), 1);
38 - #[cfg(feature = "gvariant")]
39 + /*#[cfg(feature = "gvariant")]
40 {
41 assert_eq!(decode_with_gvariant::<_, u8>(encoded), 77u8);
42 basic_type_test!(LE, GVariant, 77_u8, 1, u8, 1, U8, 3);
43 - }
44 + }*/
45 }
46
47 #[test]
48 @@ -414,44 +414,44 @@ mod tests {
49 fn u16_value() {
50 let encoded = basic_type_test!(BE, DBus, 0xABBA_u16, 2, u16, 2, U16, 6);
51 assert_eq!(encoded.len(), 2);
52 - #[cfg(feature = "gvariant")]
53 + /*#[cfg(feature = "gvariant")]
54 {
55 assert_eq!(decode_with_gvariant::<_, u16>(encoded), 0xBAAB_u16);
56 basic_type_test!(BE, GVariant, 0xABBA_u16, 2, u16, 2, U16, 4);
57 - }
58 + }*/
59 }
60
61 #[test]
62 fn i16_value() {
63 let encoded = basic_type_test!(BE, DBus, -0xAB0_i16, 2, i16, 2, I16, 6);
64 assert_eq!(LE::read_i16(&encoded), 0x50F5_i16);
65 - #[cfg(feature = "gvariant")]
66 + /*#[cfg(feature = "gvariant")]
67 {
68 assert_eq!(decode_with_gvariant::<_, i16>(encoded), 0x50F5_i16);
69 basic_type_test!(BE, GVariant, -0xAB0_i16, 2, i16, 2, I16, 4);
70 - }
71 + }*/
72 }
73
74 #[test]
75 fn u32_value() {
76 let encoded = basic_type_test!(BE, DBus, 0xABBA_ABBA_u32, 4, u32, 4, U32, 8);
77 assert_eq!(encoded.len(), 4);
78 - #[cfg(feature = "gvariant")]
79 + /*#[cfg(feature = "gvariant")]
80 {
81 assert_eq!(decode_with_gvariant::<_, u32>(encoded), 0xBAAB_BAAB_u32);
82 basic_type_test!(BE, GVariant, 0xABBA_ABBA_u32, 4, u32, 4, U32, 6);
83 - }
84 + }*/
85 }
86
87 #[test]
88 fn i32_value() {
89 let encoded = basic_type_test!(BE, DBus, -0xABBA_AB0_i32, 4, i32, 4, I32, 8);
90 assert_eq!(LE::read_i32(&encoded), 0x5055_44F5_i32);
91 - #[cfg(feature = "gvariant")]
92 + /*#[cfg(feature = "gvariant")]
93 {
94 assert_eq!(decode_with_gvariant::<_, i32>(encoded), 0x5055_44F5_i32);
95 basic_type_test!(BE, GVariant, -0xABBA_AB0_i32, 4, i32, 4, I32, 6);
96 - }
97 + }*/
98 }
99
100 // u64 is covered by `value_value` test below
101 @@ -462,10 +462,10 @@ mod tests {
102 assert_eq!(LE::read_i64(&encoded), 0x5055_4455_4455_44F5_i64);
103 #[cfg(feature = "gvariant")]
104 {
105 - assert_eq!(
106 + /*assert_eq!(
107 decode_with_gvariant::<_, i64>(encoded),
108 0x5055_4455_4455_44F5_i64
109 - );
110 + );*/
111 basic_type_test!(BE, GVariant, -0xABBA_ABBA_ABBA_AB0_i64, 8, i64, 8, I64, 10);
112 }
113 }
114 @@ -476,10 +476,10 @@ mod tests {
115 assert!((LE::read_f64(&encoded) - -5.759340900185448e-128).abs() < f64::EPSILON);
116 #[cfg(feature = "gvariant")]
117 {
118 - assert!(
119 + /*assert!(
120 (decode_with_gvariant::<_, f64>(encoded) - -5.759340900185448e-128).abs()
121 < f64::EPSILON
122 - );
123 + );*/
124 f64_type_test(EncodingFormat::GVariant, 99999.99999_f64, 8, 10);
125 }
126 }
127 @@ -494,7 +494,7 @@ mod tests {
128 #[cfg(feature = "gvariant")]
129 {
130 let encoded = basic_type_test!(LE, GVariant, string, 12, String, 1);
131 - assert_eq!(decode_with_gvariant::<_, String>(encoded), "hello world");
132 + //assert_eq!(decode_with_gvariant::<_, String>(encoded), "hello world");
133 }
134
135 let string = "hello world";
136 @@ -506,7 +506,7 @@ mod tests {
137 assert_eq!(v.value_signature(), "s");
138 assert_eq!(v, Value::new("hello world"));
139 value_test!(LE, DBus, v, 20);
140 - #[cfg(feature = "gvariant")]
141 + /*#[cfg(feature = "gvariant")]
142 {
143 let encoded = value_test!(LE, GVariant, v, 14);
144
145 @@ -515,7 +515,7 @@ mod tests {
146 let gv = Variant::from_bytes::<Variant>(&bytes);
147 let variant = gv.get_variant().unwrap();
148 assert_eq!(variant.get_str().unwrap(), "hello world");
149 - }
150 + }*/
151
152 let v: String = v.try_into().unwrap();
153 assert_eq!(v, "hello world");
154 @@ -567,7 +567,7 @@ mod tests {
155 #[cfg(feature = "gvariant")]
156 {
157 let encoded = basic_type_test!(LE, GVariant, sig, 4, Signature<'_>, 1);
158 - assert_eq!(decode_with_gvariant::<_, String>(encoded), "yys");
159 + //assert_eq!(decode_with_gvariant::<_, String>(encoded), "yys");
160 }
161
162 // As Value
163 @@ -596,7 +596,7 @@ mod tests {
164 #[cfg(feature = "gvariant")]
165 {
166 let encoded = basic_type_test!(LE, GVariant, o, 13, ObjectPath<'_>, 1);
167 - assert_eq!(decode_with_gvariant::<_, String>(encoded), "/hello/world");
168 + //assert_eq!(decode_with_gvariant::<_, String>(encoded), "/hello/world");
169 }
170
171 // As Value
172 @@ -663,7 +663,7 @@ mod tests {
173 assert_eq!(&decoded.as_slice(), &[77u8, 88]);
174
175 // GVariant format now
176 - #[cfg(feature = "gvariant")]
177 + /*#[cfg(feature = "gvariant")]
178 {
179 let ctxt = Context::<LE>::new_gvariant(0);
180 let gv_encoded = to_bytes(ctxt, &ay).unwrap();
181 @@ -675,7 +675,7 @@ mod tests {
182 assert_eq!(variant.n_children(), 2);
183 assert_eq!(variant.get_child_value(0).get::<u8>().unwrap(), 77);
184 assert_eq!(variant.get_child_value(1).get::<u8>().unwrap(), 88);
185 - }
186 + }*/
187 let ctxt = Context::<LE>::new_dbus(0);
188
189 // As Value
190 @@ -749,9 +749,9 @@ mod tests {
191 }
192
193 // Check encoding against GLib
194 - let bytes = Bytes::from_owned(gv_encoded);
195 + /*let bytes = Bytes::from_owned(gv_encoded);
196 let variant = Variant::from_bytes::<&[&str]>(&bytes);
197 - assert_eq!(variant.n_children(), 0);
198 + assert_eq!(variant.n_children(), 0);*/
199 }
200 let ctxt = Context::<LE>::new_dbus(0);
201
202 @@ -804,12 +804,12 @@ mod tests {
203 assert_eq!(gv_encoded.len(), 28);
204
205 // Check encoding against GLib
206 - let bytes = Bytes::from_owned(gv_encoded);
207 + /*let bytes = Bytes::from_owned(gv_encoded);
208 let variant = Variant::from_bytes::<Variant>(&bytes);
209 - assert_eq!(variant.n_children(), 1);
210 - let decoded: Vec<String> = variant.get_child_value(0).get().unwrap();
211 - assert_eq!(decoded[0], "Hello");
212 - assert_eq!(decoded[1], "World");
213 + assert_eq!(variant.n_children(), 1);*/
214 + //let decoded: Vec<String> = variant.get_child_value(0).get().unwrap();
215 + //assert_eq!(decoded[0], "Hello");
216 + //assert_eq!(decoded[1], "World");
217 }
218
219 // Array of Struct, which in turn containin an Array (We gotta go deeper!)
220 @@ -875,7 +875,7 @@ mod tests {
221 assert_eq!(r.3, "hello");
222
223 // Check encoding against GLib
224 - let bytes = Bytes::from_owned(gv_encoded);
225 + /*let bytes = Bytes::from_owned(gv_encoded);
226 let variant = Variant::from_bytes::<
227 Vec<(u8, u32, (i64, bool, i64, Vec<String>), String)>,
228 >(&bytes);
229 @@ -883,7 +883,7 @@ mod tests {
230 let r: (u8, u32, (i64, bool, i64, Vec<String>), String) =
231 variant.get_child_value(0).get().unwrap();
232 assert_eq!(r.0, u8::max_value());
233 - assert_eq!(r.1, u32::max_value());
234 + assert_eq!(r.1, u32::max_value());*/
235 }
236 let ctxt = Context::<LE>::new_dbus(0);
237
238 @@ -965,14 +965,14 @@ mod tests {
239 }
240
241 // Check encoding against GLib
242 - let bytes = Bytes::from_owned(gv_encoded);
243 + /*let bytes = Bytes::from_owned(gv_encoded);
244 let variant = Variant::from_bytes::<Variant>(&bytes);
245 assert_eq!(variant.n_children(), 1);
246 let child: Variant = variant.get_child_value(0);
247 let r: (u8, u32, (i64, bool, i64, Vec<String>), String) =
248 child.get_child_value(0).get().unwrap();
249 assert_eq!(r.0, u8::max_value());
250 - assert_eq!(r.1, u32::max_value());
251 + assert_eq!(r.1, u32::max_value());*/
252
253 let mut rng = thread_rng();
254 // Let's test GVariant ser/de of a 254 byte array with variable-width elements as to ensure
255 @@ -995,11 +995,11 @@ mod tests {
256 assert_eq!(gv_encoded.len(), 258);
257
258 // Check encoding against GLib
259 - let bytes = Bytes::from_owned(gv_encoded.clone());
260 + /*let bytes = Bytes::from_owned(gv_encoded.clone());
261 let variant = Variant::from_bytes::<Vec<String>>(&bytes);
262 assert_eq!(variant.n_children(), 2);
263 assert_eq!(variant.get_child_value(0).get::<String>().unwrap(), as_[0]);
264 - assert_eq!(variant.get_child_value(1).get::<String>().unwrap(), as_[1]);
265 + assert_eq!(variant.get_child_value(1).get::<String>().unwrap(), as_[1]);*/
266 // Also check if our own deserializer does the right thing
267 let as2 = from_slice::<LE, Vec<String>>(&gv_encoded, ctxt).unwrap();
268 assert_eq!(as2, as_);
269 @@ -1085,7 +1085,7 @@ mod tests {
270 assert_eq!(decoded[&2], "456");
271
272 // GVariant format now
273 - #[cfg(feature = "gvariant")]
274 + /*#[cfg(feature = "gvariant")]
275 {
276 let ctxt = Context::<LE>::new_gvariant(0);
277 let gv_encoded = to_bytes(ctxt, &map).unwrap();
278 @@ -1101,7 +1101,7 @@ mod tests {
279 let map: HashMap<i64, String> = HashMap::from_variant(&variant).unwrap();
280 assert_eq!(map[&1], "123");
281 assert_eq!(map[&2], "456");
282 - }
283 + }*/
284 let ctxt = Context::<LE>::new_dbus(0);
285
286 // As Value
287 @@ -1138,12 +1138,12 @@ mod tests {
288 assert_eq!(map["world"], "561");
289
290 // Check encoding against GLib
291 - let bytes = Bytes::from_owned(gv_encoded);
292 + /*let bytes = Bytes::from_owned(gv_encoded);
293 let variant = Variant::from_bytes::<HashMap<&str, &str>>(&bytes);
294 assert_eq!(variant.n_children(), 2);
295 let map: HashMap<String, String> = HashMap::from_variant(&variant).unwrap();
296 assert_eq!(map["hi"], "1234");
297 - assert_eq!(map["world"], "561");
298 + assert_eq!(map["world"], "561");*/
299
300 // Now the same but empty dict this time
301 let map: HashMap<&str, &str> = HashMap::new();
302 @@ -1513,9 +1513,9 @@ mod tests {
303 assert_eq!(decoded, mn);
304
305 // Check encoding against GLib
306 - let bytes = Bytes::from_owned(encoded);
307 + /*let bytes = Bytes::from_owned(encoded);
308 let variant = Variant::from_bytes::<Option<i16>>(&bytes);
309 - assert_eq!(variant.get::<Option<i16>>().unwrap(), mn);
310 + assert_eq!(variant.get::<Option<i16>>().unwrap(), mn);*/
311
312 // As Value
313 let v: Value<'_> = mn.into();
314 @@ -1529,10 +1529,10 @@ mod tests {
315 }
316
317 // Check encoding against GLib
318 - let bytes = Bytes::from_owned(encoded);
319 + /*let bytes = Bytes::from_owned(encoded);
320 let variant = Variant::from_bytes::<Variant>(&bytes);
321 let decoded = variant.get_child_value(0).get::<Option<i16>>().unwrap();
322 - assert_eq!(decoded, mn);
323 + assert_eq!(decoded, mn);*/
324
325 // Now a None of the same type
326 let mn: Option<i16> = None;
327 @@ -1542,9 +1542,9 @@ mod tests {
328 assert!(decoded.is_none());
329
330 // Check encoding against GLib
331 - let bytes = Bytes::from_owned(encoded);
332 + /*let bytes = Bytes::from_owned(encoded);
333 let variant = Variant::from_bytes::<Option<i16>>(&bytes);
334 - assert!(variant.get::<Option<i16>>().unwrap().is_none());
335 + assert!(variant.get::<Option<i16>>().unwrap().is_none());*/
336
337 // Next a Some variable-sized value
338 let ms = Some("hello world");
339 @@ -1554,12 +1554,12 @@ mod tests {
340 assert_eq!(decoded, ms);
341
342 // Check encoding against GLib
343 - let bytes = Bytes::from_owned(encoded);
344 + /*let bytes = Bytes::from_owned(encoded);
345 let variant = Variant::from_bytes::<Option<String>>(&bytes);
346 assert_eq!(
347 &variant.get::<Option<String>>().unwrap().unwrap(),
348 ms.unwrap()
349 - );
350 + );*/
351
352 // As Value
353 let v: Value<'_> = ms.into();
354 @@ -1573,10 +1573,10 @@ mod tests {
355 }
356
357 // Check encoding against GLib
358 - let bytes = Bytes::from_owned(encoded);
359 + /*let bytes = Bytes::from_owned(encoded);
360 let variant = Variant::from_bytes::<Variant>(&bytes);
361 let decoded = variant.get_child_value(0).get::<Option<String>>().unwrap();
362 - assert_eq!(decoded.as_deref(), ms);
363 + assert_eq!(decoded.as_deref(), ms);*/
364
365 // Now a None of the same type
366 let ms: Option<&str> = None;
367 @@ -1586,9 +1586,9 @@ mod tests {
368 assert!(decoded.is_none());
369
370 // Check encoding against GLib
371 - let bytes = Bytes::from_owned(encoded);
372 + /*let bytes = Bytes::from_owned(encoded);
373 let variant = Variant::from_bytes::<Option<String>>(&bytes);
374 - assert!(variant.get::<Option<String>>().unwrap().is_none());
375 + assert!(variant.get::<Option<String>>().unwrap().is_none());*/
376
377 // In a seq type
378 let ams = vec![
379 @@ -1601,10 +1601,10 @@ mod tests {
380 assert_eq!(decoded, ams);
381
382 // Check encoding against GLib
383 - let bytes = Bytes::from_owned(encoded);
384 + /*let bytes = Bytes::from_owned(encoded);
385 let variant = Variant::from_bytes::<Vec<Option<String>>>(&bytes);
386 let decoded = variant.get::<Vec<Option<String>>>().unwrap();
387 - assert_eq!(decoded, ams);
388 + assert_eq!(decoded, ams);*/
389
390 // As Value
391 let v: Value<'_> = ams.clone().into();
392 @@ -1614,13 +1614,13 @@ mod tests {
393 assert_eq!(v, decoded);
394
395 // Check encoding against GLib
396 - let bytes = Bytes::from_owned(encoded);
397 + /*let bytes = Bytes::from_owned(encoded);
398 let variant = Variant::from_bytes::<Variant>(&bytes);
399 let decoded = variant
400 .get_child_value(0)
401 .get::<Vec<Option<String>>>()
402 .unwrap();
403 - assert_eq!(decoded, ams);
404 + assert_eq!(decoded, ams);*/
405
406 // In a struct
407 let structure: (Option<String>, u64, Option<String>) =
408 @@ -1631,12 +1631,12 @@ mod tests {
409 assert_eq!(decoded, structure);
410
411 // Check encoding against GLib
412 - let bytes = Bytes::from_owned(encoded);
413 + /*let bytes = Bytes::from_owned(encoded);
414 let variant = Variant::from_bytes::<(Option<String>, u64, Option<String>)>(&bytes);
415 let decoded = variant
416 .get::<(Option<String>, u64, Option<String>)>()
417 .unwrap();
418 - assert_eq!(decoded, structure);
419 + assert_eq!(decoded, structure);*/
420
421 // As Value
422 let v: Value<'_> = structure.clone().into();
423 @@ -1646,13 +1646,13 @@ mod tests {
424 assert_eq!(v, decoded);
425
426 // Check encoding against GLib
427 - let bytes = Bytes::from_owned(encoded);
428 + /*let bytes = Bytes::from_owned(encoded);
429 let variant = Variant::from_bytes::<Variant>(&bytes);
430 let decoded = variant
431 .get_child_value(0)
432 .get::<(Option<String>, u64, Option<String>)>()
433 .unwrap();
434 - assert_eq!(decoded, structure);
435 + assert_eq!(decoded, structure);*/
436 }
437
438 #[test]
+0
-13
src/zvariant/debian/patches/relax-dep.diff less more
0 Index: zvariant/Cargo.toml
1 ===================================================================
2 --- zvariant.orig/Cargo.toml
3 +++ zvariant/Cargo.toml
4 @@ -55,7 +55,7 @@ version = "1.1.0"
5 version = "=2.10.0"
6
7 [dev-dependencies.rand]
8 -version = "0.8.3"
9 +version = ">= 0.7, < 0.9"
10
11 [dev-dependencies.serde_json]
12 version = "1.0"
+0
-5
src/zvariant/debian/patches/series less more
0 disable-arrayvec.patch
1 disable-criterion.patch
2 relax-dep.diff
3 disable-tests-missing-glib-imports.patch
4 disable-test-missing-testdata.patch
0 rust-zvariant-derive (3.9.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package zvariant_derive 3.9.0 from crates.io using debcargo 2.6.0
4
5 -- Matthias Geiger <matthias.geiger1024@tutanota.de> Mon, 02 Jan 2023 00:54:42 +0100
6
07 rust-zvariant-derive (2.10.0-1) unstable; urgency=medium
18
29 * Team upload.
00 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
11 Upstream-Name: zvariant_derive
2 Upstream-Contact: Zeeshan Ali <zeeshanak@gnome.org>
2 Upstream-Contact: Zeeshan Ali Khan <zeeshanak@gnome.org>
33 Source: https://gitlab.freedesktop.org/dbus/zbus/
44
55 Files: *
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Zeeshan Ali <zeeshanak@gnome.org>
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Zeeshan Ali Khan <zeeshanak@gnome.org>
77 License: MIT
88 Comment:
99 FIXME (overlay): Since upstream copyright years are not available in
1313
1414 Files: debian/*
1515 Copyright:
16 2020-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
17 2020-2021 Andrej Shadura <andrewsh@debian.org>
16 2020-2023 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
17 2020-2023 Andrej Shadura <andrewsh@debian.org>
1818 License: MIT
1919
2020 License: MIT