Skip to content

A translation of winapi-rs into Zig

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

raphlinus/winapi-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winapi-zig

A port of winapi-rs to Zig. In its current state, it's a sketch, and doesn't actually work.

The theory is that winapi-rs is something of a definitive representation of the winapi surface area in "modern" types, in other words not C/C++ headers. Thus, translating it from Rust sources to Zig makes sense.

What's in this repo now is the beginnings of a translation script, using the syn crate to parse the original Rust, and just printing out translated Zig code. It translates basic structs and function calls, but is missing more sophisticated aspects, and it hasn't yet been run end-to-end.

License

As in winapi-rs itself, the license is MIT or Apache 2.0, at your choice.

About

A translation of winapi-rs into Zig

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages