Skip to content

Commit bae8b9d

Browse files
committed
refactor(embedded): Switch to syn for parsing doc comments
The hope is this will result in more resilient comment handling, being more consistent with rustdoc. I also hoped for less code but `syn` is doing less than I had expected, requiring us to copy code over from other parts of rust. It seems every proc macro has to do this but there is no guide to it, so they all do it differently, only covering the cases they thought to test for. Note that this still won't support `include_str!()`.
1 parent 0c14026 commit bae8b9d

File tree

3 files changed

+302
-146
lines changed

3 files changed

+302
-146
lines changed

Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ pretty_env_logger = "0.4"
6767
proptest = "1.1.0"
6868
pulldown-cmark = { version = "0.9.2", default-features = false }
6969
rand = "0.8.5"
70-
regex = "1.8.3"
7170
rustfix = "0.6.0"
7271
same-file = "1.0.6"
7372
security-framework = "2.0.0"
@@ -153,7 +152,6 @@ pathdiff.workspace = true
153152
pretty_env_logger = { workspace = true, optional = true }
154153
pulldown-cmark.workspace = true
155154
rand.workspace = true
156-
regex.workspace = true
157155
rustfix.workspace = true
158156
semver.workspace = true
159157
serde = { workspace = true, features = ["derive"] }

0 commit comments

Comments
 (0)