rhaiscript / rhai

Rhai - An embedded scripting language for Rust.
https://crates.io/crates/rhai
Apache License 2.0
3.81k stars 179 forks source link

Consider `document-features` #683

Closed Mathieu-Lala closed 1 year ago

Mathieu-Lala commented 1 year ago

The documentation produced by document-features can be great to enhance the rhai feature flags documentation :book: !

schungx commented 1 year ago

Interesting... but I'd rather not pull in yet another crate simply to get feature documentation.

Mathieu-Lala commented 1 year ago

We can set optional = true and use it with a feature flags, so it won't affect downstream crates depending on rhai.

schungx commented 1 year ago

We can set optional = true and use it with a feature flags, so it won't affect downstream crates depending on rhai.

Is it possible to set it just when generating docs?

schungx commented 1 year ago

Alright looks like it works. I'll add it. The generated docs look quite nice.

Thanks!