File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 75
75
--extern-html-root-url=gl=https://docs.rs/gl/latest/
76
76
--cfg docsrs
77
77
-Zunstable-options --generate-link-to-definition
78
+
79
+ - name : Get features excluding some
80
+ run : |
81
+ FEATURES=$(cargo metadata --no-deps --format-version=1 | jq -r '
82
+ [
83
+ .packages[]
84
+ | select(.manifest_path | test("book/listings|examples") | not)
85
+ | {
86
+ features: (.features | keys),
87
+ optional_deps: [.dependencies[] | select(.optional == true) | .name]
88
+ }
89
+ ]
90
+ | map(.features - .optional_deps)
91
+ | add
92
+ | unique
93
+ | map(select(. != "win32" and . != "default" and . != "unsafe-assume-initialized"))
94
+ | join(",")')
95
+
96
+ echo "FEATURES=$FEATURES" >> $GITHUB_ENV
97
+
78
98
- uses : actions-rs/cargo@v1
79
99
with :
80
100
command : doc
87
107
-p gtk4 -p gtk4-sys
88
108
-p gdk4-macos -p gdk4-macos-sys
89
109
-p gtk4-macros
90
- --all- features
110
+ --no-default- features --features "$FEATURES"
91
111
--no-deps
92
112
93
113
- name : Fix broken URLs
You can’t perform that action at this time.
0 commit comments