slint-ui / document-features

Extract documentation for the feature flags from comments in Cargo.toml
Apache License 2.0
174 stars 13 forks source link

Features that are transitively enabled by default are not rendered as "(enabled by default)" #19

Closed vi closed 3 days ago

vi commented 1 year ago

With

[features]
default=["qqq"]

## Qqq
qqq=["www"]

## Www
www=[]

I expect

, but get

.

ogoffart commented 1 year ago

Yes, i think you're right and it should probably have (enabled by default) or maybe it should have (enabled through the "qqq" feature) ?

vi commented 1 year ago

Or maybe "(enabled by default, enabled through the "qqq" feature)" where document-features exposes relationship between all documented features (even if it is going through a non-documented feature) even when they are not enabled by default.