Debian Codegraph @

debian/patches/zerocopy-0.8.patch

raw
1 --- a/Cargo.toml
2 +++ b/Cargo.toml
3 @@ -30,5 +30,5 @@ repository = "https://github.com/jadijad
4 version = "1.0.0"
5
6 [dependencies.zerocopy]
7 -version = "0.7.34"
8 +version = "0.8"
9 features = ["derive"]
10 --- a/src/x32.rs
11 +++ b/src/x32.rs
12 @@ -1,8 +1,8 @@
13 use super::{cstr_from_bytes, UT_HOSTSIZE, UT_LINESIZE, UT_NAMESIZE};
14 use std::fmt;
15 -use zerocopy::{FromZeroes, FromBytes};
16 +use zerocopy::{FromBytes, Immutable, KnownLayout};
17
18 -#[derive(FromZeroes, FromBytes, Clone, Copy, Debug)]
19 +#[derive(FromBytes, Immutable, KnownLayout, Clone, Copy, Debug)]
20 #[repr(C)]
21 pub struct timeval {
22 /// Seconds
23 @@ -12,7 +12,7 @@ pub struct timeval {
24 }
25
26
27 -#[derive(FromZeroes, Clone, Copy, FromBytes)]
28 +#[derive(Clone, Copy, FromBytes, Immutable, KnownLayout)]
29 #[repr(C)]
30 pub struct utmp {
31 /// Device name of tty - `"/dev/"`
32 --- a/src/x64.rs
33 +++ b/src/x64.rs
34 @@ -1,9 +1,9 @@
35 use super::{cstr_from_bytes, UT_HOSTSIZE, UT_LINESIZE, UT_NAMESIZE};
36 use std::fmt;
37 -use zerocopy::{FromZeroes, FromBytes};
38 +use zerocopy::{FromBytes, Immutable, KnownLayout};
39
40 #[repr(C)]
41 -#[derive(Clone, Copy, Debug, FromZeroes, FromBytes)]
42 +#[derive(Clone, Copy, Debug, FromBytes, Immutable, KnownLayout)]
43 pub struct timeval {
44 /// Seconds
45 pub tv_sec: i64,
46 @@ -12,7 +12,7 @@ pub struct timeval {
47 }
48
49 #[repr(C)]
50 -#[derive(Clone, Copy, FromZeroes, FromBytes)]
51 +#[derive(Clone, Copy, FromBytes, Immutable, KnownLayout)]
52 pub struct utmp {
53 /// Device name of tty - `"/dev/"`
54 pub ut_line: [u8; UT_LINESIZE],