Stream: beginners

Topic: multiple glue files


view this post on Zulip Pearce Keesling (May 31 2023 at 12:57):

Is it possible to generate multiple glue files? I'm thinking of building something like appium that generates xcuitests and espresso tests that call out to a zig platform and has actual test steps written in roc. It'd be awesome if I could just declare the roc tests and then glue generate both the relevant zig code but also the actual stub test suites. I could probably do something in the zig build file if needed, but glue seems more elegant. However from what I remember I have to specify an output file so I'm thinking I can only have one file atm? Am I barking up the wrong tree?

view this post on Zulip Brendan Hansknecht (May 31 2023 at 13:02):

It is an output folder now

view this post on Zulip Brendan Hansknecht (May 31 2023 at 13:02):

So that works

view this post on Zulip Pearce Keesling (May 31 2023 at 13:20):

Oh awesome thanks! I guess I need to get up to date on the new glue changes. Is it all in a usable state in zig or should I wait until v0.11 and some more stabilization?

view this post on Zulip Brendan Hansknecht (May 31 2023 at 13:20):

No one has worked on zig glue yet.

view this post on Zulip Pearce Keesling (May 31 2023 at 13:23):

:+1: I'll see if I can take a look. I might also wait until v0.11 comes out since I don't think you guys track master atm, right?

view this post on Zulip Pearce Keesling (May 31 2023 at 13:23):

But maybe it doesn't matter since roc is just c abi

view this post on Zulip Brendan Hansknecht (May 31 2023 at 13:24):

No. We currently are still at 0.9.1

That said, zig glue version technically doesn't have to match roc internal zig version

view this post on Zulip Brendan Hansknecht (May 31 2023 at 13:24):

Yeah, exactly, c abi

view this post on Zulip Pearce Keesling (May 31 2023 at 13:27):

Ah okay that's good to know. Thanks!

view this post on Zulip Luke Boswell (May 31 2023 at 19:58):

Zig glue would be cool. :grinning:


Last updated: Jul 05 2025 at 12:14 UTC