https://github.com/protryon/rusty_v8_helper
Some helper functions for rusty_v8_protryon.
https://github.com/protryon/rusty_v8_helper
Last synced: 3 months ago
JSON representation
Some helper functions for rusty_v8_protryon.
- Host: GitHub
- URL: https://github.com/protryon/rusty_v8_helper
- Owner: Protryon
- Created: 2020-04-04T12:52:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T13:52:26.000Z (about 6 years ago)
- Last Synced: 2025-02-28T06:56:02.338Z (over 1 year ago)
- Language: Rust
- Size: 39.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rusty V8 Helper
The purpose of this project is to add more complex external functionality to my (Protryon) fork of rusty_v8.
## Exports
* There are some utlity functions like `make_str` and `run_script` in `::util`.
* `::object_wrap` provides `ObjectWrap` which allows the wrapped of an owned rust object inside a V8 object with weak deallocation within V8.
* Importing `::ffi_map::*` Provides the `v8_ffi` macro and `load_v8_ffi` macro. See tests in `::ffi_map` for details.
* In general, the purpose of this module is to allow the near-transparent mapping of idiomatic rust functions to JS code via macro. This drastically cuts down on development overhead for FFI implementations.