rscarson / rustyscript

Effortless JS integration for rust
MIT License
186 stars 23 forks source link

Deprecate old approach for argument encoding, with faster alternative #172

Closed rscarson closed 4 months ago

rscarson commented 4 months ago

Arguments used to be encoded as an array ref of serde_json::Value, which was inefficient Now, function calls accept a single &impl Serialize argument, which is decoded directly by v8

The old macro is left in place for compatibility, and a new big_json_args is now available that uses the old method to bypass serde's 16 arg tuple limit.