Skip to content

Commit 0e663ec

Browse files
committed
Support rustdoc JSON format v56
1 parent b44238e commit 0e663ec

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/yard-rustdoc/statements.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def name
7373
return $1.strip if docstring =~ /^@rename\s*(.+)/
7474

7575
@rustdoc["attrs"].each do |attr|
76+
attr = attr["other"] if attr.is_a?(Hash) # JSON rustdoc FORMAT_VERSION v54
77+
7678
next unless attr.include?("magnus")
7779

7880
# Extract class name from magnus attrs that define classes such as:

test/samples/example-ext/rustdoc/v56.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)