Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewithmirza/sample
C Header to Dart:ffi Bindings Generator
https://github.com/codewithmirza/sample
c dart dart-bindings dart-ffi web-application
Last synced: 5 days ago
JSON representation
C Header to Dart:ffi Bindings Generator
- Host: GitHub
- URL: https://github.com/codewithmirza/sample
- Owner: codewithmirza
- Created: 2024-03-21T13:44:36.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-21T14:10:00.000Z (10 months ago)
- Last Synced: 2024-11-16T12:27:01.493Z (2 months ago)
- Topics: c, dart, dart-bindings, dart-ffi, web-application
- Language: Dart
- Homepage:
- Size: 451 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C Header to Dart:ffi Bindings Generator
This web application provides a convenient interface for generating Dart:ffi bindings from C headers using the `package:ffigen` library. Simply paste your C header into the left textbox, and the corresponding Dart:ffi bindings will be displayed in the right textbox.
![Interface](images/interface.png)
## Features
- **Simple Interface:** Easy-to-use web interface for generating Dart:ffi bindings.
- **Real-time Updates:** See the Dart:ffi bindings update in real-time as you paste your C header.
- **Copy-Paste Ready:** Copy the generated Dart:ffi bindings with a single click.## Usage
1. Paste your C header into the textbox on the left.
![Interface](images/pastingCcode.png)
2. Wait for the Dart:ffi bindings to be generated and displayed on the right.
![Generating Bindings](images/generating_bindings.png)
3. Copy the generated Dart:ffi bindings and use them in your Dart projects.
## How to Run Locally
1. Clone this repository to your local machine
2. Navigate to the project directory
3. Install dependencies by running `flutter pub get`
4. Run server.dart and main.dart with `flutter run lib/server.dart` and `flutter run lib/main.dart` respectively
5. See the Dart:ffi bindings update in real-time as you paste your C header