rune-rs / rune

An embeddable dynamic programming language for Rust.
https://rune-rs.github.io
Apache License 2.0
1.7k stars 85 forks source link

Missing docs for `#[rune::function(keep)]` #754

Closed VorpalBlade closed 1 month ago

VorpalBlade commented 1 month ago

I have been annoyed for a while that I can't call the Rune extension methods from Rust (when I need them from both locations). I was considering filing a feature request on this, but while looking through rune's own HashMap there is a keep attribute that seems to solve this nicely already.

But it is not documented in https://rune-rs.github.io/api/rune/attr.function.html

So: Is the docs missing (in which case I will make a PR) or is it an unstable private API (in which case I propose to stabilise it and document it)?

udoprog commented 1 month ago

It's just not documented for some reason, please fix!

VorpalBlade commented 1 month ago

Will do tomorrow