78e2b8ac
—
Peter John 3 years ago
rustt-2021
- Cargo.lock +84 -84
- render/Cargo.toml +1 -1
- render_macros/Cargo.toml +1 -1
- render_macros/src/function_component.rs +2 -2
- render_tests/Cargo.toml +1 -3
- render_tests/{ui/fail → src}/unclosed-tag.rs +1 -3
Cargo.lock
CHANGED
|
@@ -1,274 +1,274 @@
|
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
|
2
2
|
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
3
5
|
[[package]]
|
|
4
6
|
name = "ansi_term"
|
|
5
7
|
version = "0.11.0"
|
|
6
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
|
|
7
10
|
dependencies = [
|
|
8
|
-
"winapi
|
|
11
|
+
"winapi",
|
|
9
12
|
]
|
|
10
13
|
|
|
11
14
|
[[package]]
|
|
12
15
|
name = "ctor"
|
|
13
16
|
version = "0.1.15"
|
|
14
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "39858aa5bac06462d4dd4b9164848eb81ffc4aa5c479746393598fd193afa227"
|
|
15
19
|
dependencies = [
|
|
16
|
-
"quote
|
|
20
|
+
"quote",
|
|
17
|
-
"syn
|
|
21
|
+
"syn",
|
|
18
22
|
]
|
|
19
23
|
|
|
20
24
|
[[package]]
|
|
21
25
|
name = "difference"
|
|
22
26
|
version = "2.0.0"
|
|
23
27
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
+
checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
|
|
24
29
|
|
|
25
30
|
[[package]]
|
|
26
31
|
name = "glob"
|
|
27
32
|
version = "0.3.0"
|
|
28
33
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
|
+
checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
|
29
35
|
|
|
30
36
|
[[package]]
|
|
31
37
|
name = "itoa"
|
|
32
38
|
version = "0.4.6"
|
|
33
39
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
|
|
34
41
|
|
|
35
42
|
[[package]]
|
|
36
43
|
name = "lazy_static"
|
|
37
44
|
version = "1.4.0"
|
|
38
45
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
|
39
47
|
|
|
40
48
|
[[package]]
|
|
41
49
|
name = "output_vt100"
|
|
42
50
|
version = "0.1.2"
|
|
43
51
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9"
|
|
44
53
|
dependencies = [
|
|
45
|
-
"winapi
|
|
54
|
+
"winapi",
|
|
46
55
|
]
|
|
47
56
|
|
|
48
57
|
[[package]]
|
|
49
58
|
name = "pretty_assertions"
|
|
50
59
|
version = "0.6.1"
|
|
51
60
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
61
|
+
checksum = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427"
|
|
52
62
|
dependencies = [
|
|
53
|
-
"ansi_term
|
|
63
|
+
"ansi_term",
|
|
54
|
-
"ctor
|
|
64
|
+
"ctor",
|
|
55
|
-
"difference
|
|
65
|
+
"difference",
|
|
56
|
-
"output_vt100
|
|
66
|
+
"output_vt100",
|
|
57
67
|
]
|
|
58
68
|
|
|
59
69
|
[[package]]
|
|
60
70
|
name = "proc-macro-error"
|
|
61
71
|
version = "1.0.3"
|
|
62
72
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "fc175e9777c3116627248584e8f8b3e2987405cabe1c0adf7d1dd28f09dc7880"
|
|
63
74
|
dependencies = [
|
|
64
|
-
"proc-macro-error-attr 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
65
|
-
"proc-
|
|
75
|
+
"proc-macro-error-attr",
|
|
66
|
-
"quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
67
|
-
"
|
|
76
|
+
"proc-macro2",
|
|
77
|
+
"quote",
|
|
78
|
+
"syn",
|
|
68
|
-
"version_check
|
|
79
|
+
"version_check",
|
|
69
80
|
]
|
|
70
81
|
|
|
71
82
|
[[package]]
|
|
72
83
|
name = "proc-macro-error-attr"
|
|
73
84
|
version = "1.0.3"
|
|
74
85
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
86
|
+
checksum = "3cc9795ca17eb581285ec44936da7fc2335a3f34f2ddd13118b6f4d515435c50"
|
|
75
87
|
dependencies = [
|
|
76
|
-
"proc-macro2
|
|
88
|
+
"proc-macro2",
|
|
77
|
-
"quote
|
|
89
|
+
"quote",
|
|
78
|
-
"syn
|
|
90
|
+
"syn",
|
|
79
|
-
"syn-mid
|
|
91
|
+
"syn-mid",
|
|
80
|
-
"version_check
|
|
92
|
+
"version_check",
|
|
81
93
|
]
|
|
82
94
|
|
|
83
95
|
[[package]]
|
|
84
96
|
name = "proc-macro2"
|
|
85
97
|
version = "1.0.19"
|
|
86
98
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12"
|
|
87
100
|
dependencies = [
|
|
88
|
-
"unicode-xid
|
|
101
|
+
"unicode-xid",
|
|
89
102
|
]
|
|
90
103
|
|
|
91
104
|
[[package]]
|
|
92
105
|
name = "quote"
|
|
93
106
|
version = "1.0.7"
|
|
94
107
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
|
|
95
109
|
dependencies = [
|
|
96
|
-
"proc-macro2
|
|
110
|
+
"proc-macro2",
|
|
97
111
|
]
|
|
98
112
|
|
|
99
113
|
[[package]]
|
|
100
114
|
name = "render"
|
|
101
115
|
version = "0.3.1"
|
|
102
116
|
dependencies = [
|
|
103
|
-
"pretty_assertions
|
|
117
|
+
"pretty_assertions",
|
|
104
|
-
"render_macros
|
|
118
|
+
"render_macros",
|
|
105
119
|
]
|
|
106
120
|
|
|
107
121
|
[[package]]
|
|
108
122
|
name = "render_macros"
|
|
109
123
|
version = "0.3.1"
|
|
110
124
|
dependencies = [
|
|
111
|
-
"pretty_assertions
|
|
125
|
+
"pretty_assertions",
|
|
112
|
-
"proc-macro-error
|
|
126
|
+
"proc-macro-error",
|
|
113
|
-
"proc-macro2
|
|
127
|
+
"proc-macro2",
|
|
114
|
-
"quote
|
|
128
|
+
"quote",
|
|
115
|
-
"render
|
|
129
|
+
"render",
|
|
116
|
-
"syn
|
|
130
|
+
"syn",
|
|
117
131
|
]
|
|
118
132
|
|
|
119
133
|
[[package]]
|
|
120
134
|
name = "render_tests"
|
|
121
135
|
version = "0.3.1"
|
|
122
136
|
dependencies = [
|
|
123
|
-
"pretty_assertions
|
|
137
|
+
"pretty_assertions",
|
|
124
|
-
"render
|
|
138
|
+
"render",
|
|
125
|
-
"trybuild
|
|
139
|
+
"trybuild",
|
|
126
140
|
]
|
|
127
141
|
|
|
128
142
|
[[package]]
|
|
129
143
|
name = "ryu"
|
|
130
144
|
version = "1.0.5"
|
|
131
145
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
+
checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
|
132
147
|
|
|
133
148
|
[[package]]
|
|
134
149
|
name = "serde"
|
|
135
150
|
version = "1.0.114"
|
|
136
151
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
152
|
+
checksum = "5317f7588f0a5078ee60ef675ef96735a1442132dc645eb1d12c018620ed8cd3"
|
|
137
153
|
dependencies = [
|
|
138
|
-
"serde_derive
|
|
154
|
+
"serde_derive",
|
|
139
155
|
]
|
|
140
156
|
|
|
141
157
|
[[package]]
|
|
142
158
|
name = "serde_derive"
|
|
143
159
|
version = "1.0.114"
|
|
144
160
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "2a0be94b04690fbaed37cddffc5c134bf537c8e3329d53e982fe04c374978f8e"
|
|
145
162
|
dependencies = [
|
|
146
|
-
"proc-macro2
|
|
163
|
+
"proc-macro2",
|
|
147
|
-
"quote
|
|
164
|
+
"quote",
|
|
148
|
-
"syn
|
|
165
|
+
"syn",
|
|
149
166
|
]
|
|
150
167
|
|
|
151
168
|
[[package]]
|
|
152
169
|
name = "serde_json"
|
|
153
170
|
version = "1.0.56"
|
|
154
171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
+
checksum = "3433e879a558dde8b5e8feb2a04899cf34fdde1fafb894687e52105fc1162ac3"
|
|
155
173
|
dependencies = [
|
|
156
|
-
"itoa
|
|
174
|
+
"itoa",
|
|
175
|
+
"ryu",
|
|
157
|
-
"
|
|
176
|
+
"serde",
|
|
158
|
-
"serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
159
177
|
]
|
|
160
178
|
|
|
161
179
|
[[package]]
|
|
162
180
|
name = "syn"
|
|
163
181
|
version = "1.0.35"
|
|
164
182
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
|
+
checksum = "fb7f4c519df8c117855e19dd8cc851e89eb746fe7a73f0157e0d95fdec5369b0"
|
|
165
184
|
dependencies = [
|
|
166
|
-
"proc-macro2
|
|
185
|
+
"proc-macro2",
|
|
167
|
-
"quote
|
|
186
|
+
"quote",
|
|
168
|
-
"unicode-xid
|
|
187
|
+
"unicode-xid",
|
|
169
188
|
]
|
|
170
189
|
|
|
171
190
|
[[package]]
|
|
172
191
|
name = "syn-mid"
|
|
173
192
|
version = "0.5.0"
|
|
174
193
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
194
|
+
checksum = "7be3539f6c128a931cf19dcee741c1af532c7fd387baa739c03dd2e96479338a"
|
|
175
195
|
dependencies = [
|
|
176
|
-
"proc-macro2
|
|
196
|
+
"proc-macro2",
|
|
177
|
-
"quote
|
|
197
|
+
"quote",
|
|
178
|
-
"syn
|
|
198
|
+
"syn",
|
|
179
199
|
]
|
|
180
200
|
|
|
181
201
|
[[package]]
|
|
182
202
|
name = "termcolor"
|
|
183
203
|
version = "1.1.0"
|
|
184
204
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
205
|
+
checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f"
|
|
185
206
|
dependencies = [
|
|
186
|
-
"winapi-util
|
|
207
|
+
"winapi-util",
|
|
187
208
|
]
|
|
188
209
|
|
|
189
210
|
[[package]]
|
|
190
211
|
name = "toml"
|
|
191
212
|
version = "0.5.6"
|
|
192
213
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "ffc92d160b1eef40665be3a05630d003936a3bc7da7421277846c2613e92c71a"
|
|
193
215
|
dependencies = [
|
|
194
|
-
"serde
|
|
216
|
+
"serde",
|
|
195
217
|
]
|
|
196
218
|
|
|
197
219
|
[[package]]
|
|
198
220
|
name = "trybuild"
|
|
199
221
|
version = "1.0.30"
|
|
200
222
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "bbe777c4e2060f44d83892be1189f96200be8ed3d99569d5c2d5ee26e62c0ea9"
|
|
201
224
|
dependencies = [
|
|
202
|
-
"glob
|
|
225
|
+
"glob",
|
|
203
|
-
"lazy_static
|
|
226
|
+
"lazy_static",
|
|
204
|
-
"serde
|
|
227
|
+
"serde",
|
|
205
|
-
"serde_json
|
|
228
|
+
"serde_json",
|
|
206
|
-
"termcolor
|
|
229
|
+
"termcolor",
|
|
207
|
-
"toml
|
|
230
|
+
"toml",
|
|
208
231
|
]
|
|
209
232
|
|
|
210
233
|
[[package]]
|
|
211
234
|
name = "unicode-xid"
|
|
212
235
|
version = "0.2.1"
|
|
213
236
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
+
checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
|
|
214
238
|
|
|
215
239
|
[[package]]
|
|
216
240
|
name = "version_check"
|
|
217
241
|
version = "0.9.2"
|
|
218
242
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
243
|
+
checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
|
|
219
244
|
|
|
220
245
|
[[package]]
|
|
221
246
|
name = "winapi"
|
|
222
247
|
version = "0.3.9"
|
|
223
248
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
249
|
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
224
250
|
dependencies = [
|
|
225
|
-
"winapi-i686-pc-windows-gnu
|
|
251
|
+
"winapi-i686-pc-windows-gnu",
|
|
226
|
-
"winapi-x86_64-pc-windows-gnu
|
|
252
|
+
"winapi-x86_64-pc-windows-gnu",
|
|
227
253
|
]
|
|
228
254
|
|
|
229
255
|
[[package]]
|
|
230
256
|
name = "winapi-i686-pc-windows-gnu"
|
|
231
257
|
version = "0.4.0"
|
|
232
258
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
233
260
|
|
|
234
261
|
[[package]]
|
|
235
262
|
name = "winapi-util"
|
|
236
263
|
version = "0.1.5"
|
|
237
264
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
265
|
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
|
238
266
|
dependencies = [
|
|
239
|
-
"winapi
|
|
267
|
+
"winapi",
|
|
240
268
|
]
|
|
241
269
|
|
|
242
270
|
[[package]]
|
|
243
271
|
name = "winapi-x86_64-pc-windows-gnu"
|
|
244
272
|
version = "0.4.0"
|
|
245
273
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
-
|
|
247
|
-
[metadata]
|
|
248
|
-
"checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
|
|
249
|
-
"checksum ctor 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "39858aa5bac06462d4dd4b9164848eb81ffc4aa5c479746393598fd193afa227"
|
|
250
|
-
"checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
|
|
251
|
-
"checksum glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
|
252
|
-
"checksum itoa 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
|
|
253
|
-
"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
|
254
|
-
"checksum output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9"
|
|
255
|
-
"checksum pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427"
|
|
256
|
-
"checksum proc-macro-error 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "fc175e9777c3116627248584e8f8b3e2987405cabe1c0adf7d1dd28f09dc7880"
|
|
257
|
-
"checksum proc-macro-error-attr 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3cc9795ca17eb581285ec44936da7fc2335a3f34f2ddd13118b6f4d515435c50"
|
|
258
|
-
"checksum proc-macro2 1.0.19 (registry+https://github.com/rust-lang/crates.io-index)" = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12"
|
|
259
|
-
"checksum quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
|
|
260
|
-
"checksum ryu 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e"
|
|
261
|
-
"checksum serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)" = "5317f7588f0a5078ee60ef675ef96735a1442132dc645eb1d12c018620ed8cd3"
|
|
262
|
-
"checksum serde_derive 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)" = "2a0be94b04690fbaed37cddffc5c134bf537c8e3329d53e982fe04c374978f8e"
|
|
263
|
-
"checksum serde_json 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)" = "3433e879a558dde8b5e8feb2a04899cf34fdde1fafb894687e52105fc1162ac3"
|
|
264
|
-
"checksum syn 1.0.35 (registry+https://github.com/rust-lang/crates.io-index)" = "fb7f4c519df8c117855e19dd8cc851e89eb746fe7a73f0157e0d95fdec5369b0"
|
|
265
|
-
"checksum syn-mid 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7be3539f6c128a931cf19dcee741c1af532c7fd387baa739c03dd2e96479338a"
|
|
266
|
-
"checksum termcolor 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f"
|
|
267
|
-
"checksum toml 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ffc92d160b1eef40665be3a05630d003936a3bc7da7421277846c2613e92c71a"
|
|
268
|
-
"checksum trybuild 1.0.30 (registry+https://github.com/rust-lang/crates.io-index)" = "bbe777c4e2060f44d83892be1189f96200be8ed3d99569d5c2d5ee26e62c0ea9"
|
|
269
|
-
"checksum unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
|
|
270
|
-
"checksum version_check 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
|
|
271
|
-
"checksum winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
272
|
-
"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
273
|
-
"checksum winapi-util 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
|
274
|
-
|
|
274
|
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
render/Cargo.toml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name = "render"
|
|
3
3
|
version = "0.3.1"
|
|
4
4
|
authors = ["Gal Schlezinger <gal@spitfire.co.il>"]
|
|
5
|
-
edition = "
|
|
5
|
+
edition = "2021"
|
|
6
6
|
description = "A safe and simple template engine with the ergonomics of JSX"
|
|
7
7
|
readme = "../README.md"
|
|
8
8
|
repository = "https://github.com/Schniz/render.rs"
|
render_macros/Cargo.toml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name = "render_macros"
|
|
3
3
|
version = "0.3.1"
|
|
4
4
|
authors = ["Gal Schlezinger <gal@spitfire.co.il>"]
|
|
5
|
-
edition = "
|
|
5
|
+
edition = "2021"
|
|
6
6
|
description = "The macros needed for `render`"
|
|
7
7
|
readme = "../README.md"
|
|
8
8
|
repository = "https://github.com/Schniz/render.rs"
|
render_macros/src/function_component.rs
CHANGED
|
@@ -42,9 +42,9 @@ pub fn create_function_component(f: syn::ItemFn) -> TokenStream {
|
|
|
42
42
|
|
|
43
43
|
TokenStream::from(quote! {
|
|
44
44
|
#[derive(Debug)]
|
|
45
|
-
#vis struct #struct_name#impl_generics #inputs_block
|
|
45
|
+
#vis struct #struct_name #impl_generics #inputs_block
|
|
46
46
|
|
|
47
|
-
impl#impl_generics ::render::Render for #struct_name #ty_generics #where_clause {
|
|
47
|
+
impl #impl_generics ::render::Render for #struct_name #ty_generics #where_clause {
|
|
48
48
|
fn render_into<W: std::fmt::Write>(self, w: &mut W) -> std::fmt::Result {
|
|
49
49
|
let result = {
|
|
50
50
|
#inputs_reading
|
render_tests/Cargo.toml
CHANGED
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
name = "render_tests"
|
|
3
3
|
version = "0.3.1"
|
|
4
4
|
authors = ["Gal Schlezinger <gal@spitfire.co.il>"]
|
|
5
|
-
edition = "
|
|
5
|
+
edition = "2021"
|
|
6
6
|
publish = false
|
|
7
7
|
repository = "https://github.com/Schniz/render.rs"
|
|
8
8
|
|
|
9
|
-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
10
|
-
|
|
11
9
|
[dependencies]
|
|
12
10
|
render = { path = "../render" }
|
|
13
11
|
|
render_tests/{ui/fail → src}/unclosed-tag.rs
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
use render::html;
|
|
2
|
-
|
|
3
1
|
fn main() {
|
|
4
|
-
html! {
|
|
2
|
+
render::html! {
|
|
5
3
|
<ul>
|
|
6
4
|
<li>
|
|
7
5
|
</ul>
|