v0.0.14 #116
keynmol
announced in
Announcements
v0.0.14
#116
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Very excited about this release.
Detection of system header paths was moved entirely into the bindgen binary
This means that for the most part all you need to do is run
bindgen --header <header-file> --package <packagename>
,and bindgen will interrogate your global
clang
and ask it for system headers.You can control the path to clang using the
--no-clang-path
flag, or you can pass a LLVM'sbin
directory using--llvm-bin
, or youcan just say
--no-system
and no headers will be added from clang.More types from Scala Native's posixlib are used
Instead of generating things like ptrdiff_t and ssize_t from scratch in each binding, we attempt to match them to the known posixlib type.
This should help dramatically with portability of generated bindings, but there are still caveats:
size_t
as a type not coming from system headers and as such the bindgen doesn't attempt to fill it with posixlib version - nothing stops you from defining your own types with same name and different meaning, so we err on the side of cautionGenerate
.value
and.apply
extension methods even for non-opaque type aliasesThis should help keeping the code uniform if the library in question uses a lot of aliases.
(SBT plugin) allow generating bindings in a custom folder
This closely mirrors similar facility from ScalablyTyped: https://scalablytyped.org/docs/library-developer#two-different-modes-stsourcegenmode
Snapshot version of this release was tested in the following projects:
PRs
Full Changelog: v0.0.13...v0.0.14
This discussion was created from the release v0.0.14.
Beta Was this translation helpful? Give feedback.
All reactions