Skip to content

Automatic binding generator for native libraries in Crystal

Notifications You must be signed in to change notification settings

samis/crystal_lib

This branch is 4 commits ahead of, 63 commits behind crystal-lang/crystal_lib:master.

Repository files navigation

crystal_lib

Automatic binding generator for native libraries in Crystal.

This will eventually be integrated in the compiler itself so you don't have to manually generate these bindings and copy paste them in your project. The advantage of this is that some types and values vary depending on the platform, so generating these as late as possible is the best thing to do.

Status

For now you can use this as tool to generate bindings from a lib declaration. Check the examples directory.

Usage

crystal src/main.cr -- examples/lib_git2.cr

This will write the generate lib definition to standard output.

About

Automatic binding generator for native libraries in Crystal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Crystal 67.3%
  • C 32.6%
  • Makefile 0.1%