tauri-apps / javascriptcore-rs

JavaScriptCore bindings and wrappers for Rust
MIT License
92 stars 20 forks source link

How to use `Value` #42

Closed wusyong closed 2 years ago

wusyong commented 3 years ago

Hello, I updated the version flag on webkit2gtk recently and found webkit2gtk::JavascriptResult deprecated its previous 2 method and now suggest using get_js_value which return Option<javascriptcore::Value>. But after I searching its doc, it doesn't have any method at all. Whats the proper way to use it? Should I recast it to ValueRef? image

antoyo commented 3 years ago

It seems like the gir file of this library could now be used to auto-generate the Rust code using gir as it seems to contain everything needed.

I don't have much time to do this right now, but if somewant wants to make a PR, I'll accept it!