DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
434 stars 59 forks source link

Exposing bridged APIs #252

Closed BodaciousPie closed 2 months ago

BodaciousPie commented 5 months ago

Hello,

I'm building a command line executable which exposes many rust APIs using the binding macros. I'd like the CLI app users to invoke custom scripts to utilise these APIs.

Is there an easy way for me to generate a companion file or module which details the bridged APIs? This would enable IDEs to aid script authors with code hints, autocomplete, etc.

Thanks!

PS: awesome crate!

DelSkayn commented 5 months ago

Hi! Glad you like the crate.

Unfortunately there is no such method in rquicks or the library it builds upon Quickjs. You will have to create such files manually.

DelSkayn commented 2 months ago

Closing as this question should be answered.