-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rust bindgen and publish flow #1507
Conversation
f6748f2
to
da1f96f
Compare
for define in target['defines']: | ||
args.append(f'-D{define}') | ||
|
||
print('\0'.join(args), end="") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The null delimiter makes it not very human readable. What about \n
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it turns out that using \n
makes msvc very unhappy for some reason. \0
works so i think its ok to leave for now.
f65963b
to
58c2ba1
Compare
Adds bindgen, which is a little bit complex due to build being inside
gn
. I moved asizeof
definition over just as a basic test but we should be able to migrate the entire struct definition and others in the future.