Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/optimisticpeach/dart_rs
Idiomatic bindings to the dart native extensions api
https://github.com/optimisticpeach/dart_rs
Last synced: 3 months ago
JSON representation
Idiomatic bindings to the dart native extensions api
- Host: GitHub
- URL: https://github.com/optimisticpeach/dart_rs
- Owner: OptimisticPeach
- Created: 2020-03-14T19:45:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T18:56:35.000Z (almost 5 years ago)
- Last Synced: 2024-09-17T22:44:24.998Z (4 months ago)
- Language: Rust
- Size: 73.2 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# `dart`
**Idiomatic Bindings to the Dart Native Extensions API**This crate serves three purposes:
- To provide a kind of "filter" between what's unsafe to do and what is safe to do.
These items are found directly within `/src`, and are essentially light wrappers
around the raw api.
- To provide idiomatic bindings to some core Dart types. These are found under
`/src/dart_types`, and provide rust-like semantics for dart operations, operators,
functions, etc.
- To make integration with the Dart VM easier, by providing macros which generate
functions with the correct names, attributes and boilerplate to create a native
extension function. These macros are the `export_dart_functions` and
`create_init_function`.
Usage of the macros to expose correct functionality can be seen in the examples, with
both the async and sync functions being exposed.Note, that the creation of libraries using this crate must undergo the same process
as described in [`dart_sys`'s readme](https://github.com/optimisticpeach/dart-sys).