https://github.com/djdeveloperr/serde-window-handle
Serde-compatible window handle types, inter-convertible with raw-window-handle.
https://github.com/djdeveloperr/serde-window-handle
raw-window-handle rust serde
Last synced: 4 months ago
JSON representation
Serde-compatible window handle types, inter-convertible with raw-window-handle.
- Host: GitHub
- URL: https://github.com/djdeveloperr/serde-window-handle
- Owner: DjDeveloperr
- License: apache-2.0
- Created: 2021-11-29T04:44:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T11:38:38.000Z (about 4 years ago)
- Last Synced: 2025-02-10T11:33:37.593Z (about 1 year ago)
- Topics: raw-window-handle, rust, serde
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serde-window-handle
Serde-compatible window handle types, inter-convertible with `raw-window-handle`.
## Usage
This crate pretty much just replaces the pointer types with `usize`s and derives
`Serialize` and `Deserialize` traits. My use case was passing these window handles
through `deno`'s `serde_v8` layer.
Naming is also same except structs are prefixed with `Serde`, and the
`RawWindowHandle` struct becomes `SerdeWindowHandle`.
All the structs and enums implement `Into` and `From` for conversion
between `raw-window-handle` types.
## License
Check [LICENSE](./LICENSE) for more info.
Copyright 2021 @ DjDeveloperr