Commit 7f2810f
committed
Rewrite std_links
This rewrites std_links for two major changes:
- Uses pulldown_cmark to parse the markdown instead of using regular
expressions. The RegEx approach was just too unreliable.
- Call rustdoc only once, instead of once per chapter. The overhead of
calling rustdoc is significant, and calling it for each chapter was
extremely slow.
Unfortunately the error messages are a little worse now, since it
doesn't show which chapter a bad link came from. I'm uncertain how to
make that better.1 parent ecf7600 commit 7f2810f
4 files changed
+246
-120
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
| |||
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
0 commit comments