-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit fd9c4ea
Procedural macros to derive Identify and Protocol (#77)
* Order workspace members properly
* Implement custom derives for Protocol and Identify
* Move unsafe_guid to MetaNameValue syntax
* Avoid legacy macro_use statement
* Make unsafe_guid an attribute macro
* Apply cargo fmt
* Clean up docs
* Use a more appropriate identity for this hobby project
* Rename uefi-derive to uefi-macros to reflect its new content
* Clean up documentation1 parent 9ae552c commit fd9c4ea
File tree
23 files changed
+364
-263
lines changed- src
- data_types
- error
- proto
- console
- pointer
- text
- debug
- media
- file
- table
- uefi-macros
- src
23 files changed
+364
-263
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | + | ||
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 | - | ||
17 | - | ||
18 | 17 |
| |
19 | - | ||
20 | 18 |
| |
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
|
Lines changed: 54 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | - | ||
3 | + | ||
4 | 4 |
| |
5 | - | ||
5 | + | ||
6 | + | ||
7 | + | ||
6 | 8 |
| |
7 | - | ||
8 | - | ||
9 | - | ||
10 | - | ||
11 | - | ||
9 | + | ||
10 | + | ||
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
| |||
18 | 17 |
| |
19 | 18 |
| |
20 | 19 |
| |
21 | - | ||
20 | + | ||
22 | 21 |
| |
23 | 22 |
| |
24 | - | ||
23 | + | ||
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
28 | 27 |
| |
29 | - | ||
30 | - | ||
31 | - | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
32 | 57 |
| |
33 | 58 |
| |
34 | 59 |
| |
| |||
59 | 84 |
| |
60 | 85 |
| |
61 | 86 |
| |
62 | - | ||
63 | - | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
64 | 93 |
| |
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
65 | 103 |
| |
66 | 104 |
| |
67 | 105 |
| |
68 | 106 |
| |
107 | + | ||
108 | + |
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
18 | + | ||
19 | + | ||
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
|
Lines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | - | ||
21 | - | ||
22 | - | ||
20 | + | ||
21 | + | ||
23 | 22 |
| |
24 | 23 |
| |
25 | 24 |
| |
| |||
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
74 | - | ||
75 | - | ||
76 | - | ||
73 | + | ||
74 | + | ||
77 | 75 |
| |
78 | 76 |
| |
79 | 77 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | - | ||
67 | 66 |
| |
68 | 67 |
| |
69 | 68 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
6 | - | ||
5 | + | ||
6 | + | ||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | - | ||
36 | + | ||
37 | + | ||
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
|
Lines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
26 | + | ||
27 | + | ||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
37 | + | ||
38 | + | ||
36 | 39 |
| |
37 | 40 |
| |
38 | 41 |
| |
| |||
87 | 90 |
| |
88 | 91 |
| |
89 | 92 |
| |
90 | - | ||
93 | + | ||
91 | 94 |
| |
92 | 95 |
| |
93 | 96 |
| |
| |||
282 | 285 |
| |
283 | 286 |
| |
284 | 287 |
| |
285 | - | ||
286 | - | ||
287 | - | ||
288 | - | ||
289 | - | ||
290 | - | ||
291 | 288 |
| |
292 | 289 |
| |
293 | 290 |
| |
|
Lines changed: 7 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | - | ||
3 | + | ||
4 | + | ||
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
9 | + | ||
10 | + | ||
8 | 11 |
| |
9 | 12 |
| |
10 | 13 |
| |
| |||
28 | 31 |
| |
29 | 32 |
| |
30 | 33 |
| |
31 | - | ||
34 | + | ||
32 | 35 |
| |
33 | 36 |
| |
34 | 37 |
| |
| |||
42 | 45 |
| |
43 | 46 |
| |
44 | 47 |
| |
45 | - | ||
46 | - | ||
48 | + | ||
49 | + | ||
47 | 50 |
| |
48 | 51 |
| |
49 | 52 |
| |
| |||
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
57 | - | ||
58 | - | ||
59 | - | ||
60 | - | ||
61 | - | ||
62 | - | ||
63 | 60 |
| |
64 | 61 |
| |
65 | 62 |
| |
|
Lines changed: 4 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | - | ||
3 | + | ||
4 | + | ||
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
| |||
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
15 | + | ||
16 | + | ||
14 | 17 |
| |
15 | 18 |
| |
16 | 19 |
| |
| |||
116 | 119 |
| |
117 | 120 |
| |
118 | 121 |
| |
119 | - | ||
120 | - | ||
121 | - | ||
122 | - | ||
123 | - | ||
124 | - | ||
125 | 122 |
| |
126 | 123 |
| |
127 | 124 |
| |
|
0 commit comments