Stream: git-wasmtime

Topic: wasmtime / issue #13611 Include `pkg-config` support


view this post on Zulip Wasmtime GitHub notifications bot (Jun 11 2026 at 10:23):

gor-gyolchanyan opened issue #13611:

I propose including pkg-config support.

Many software repositories vending C libraries have support for pkg-config by generating a *.pc file (during the build configuration phase, when installation paths become known), which significantly improves discoverability of the C library, as well as improves interoperability with other build systems.

Feature

Including pkg-config support means producing a wasmtime.pc file as part of each release. The wasmtime.pc would be used in conjunction with the pkg-config tool to streamline C API usage and would contain all necessary information like the include path, the library path, and the library to be linked with.

Benefit

Implementation

I created a separate homebrew formula that depends on the existing wasmtime formula and generates the wasmtime.pc file. I was going to create a pull request for homebrew-core.git, but having the build process generate the wasmtime.pc file seems like a better approach.

Alternatives

Alternatively, the ruby code that generates the wasmtime.pc file inside the install function of my homebrew formula could be copied into wasmtime.rb, making the existing wasmtime homebrew formula install the wasmtime.pc file.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 11 2026 at 10:26):

gor-gyolchanyan edited issue #13611:

I propose including pkg-config support.

Many software repositories vending C libraries have support for pkg-config by generating a *.pc file (during the build configuration phase, when installation paths become known), which significantly improves discoverability of the C library, as well as improves interoperability with other build systems.

Feature

Including pkg-config support means producing a wasmtime.pc file as part of each release. The wasmtime.pc would be used in conjunction with the pkg-config tool to streamline C API usage and would contain all necessary information like the include path, the library path, and the library to be linked with.

Benefit

Implementation

I created a separate homebrew formula that depends on the existing wasmtime formula and generates the wasmtime.pc file. I was going to create a pull request for homebrew-core.git, but having the build process generate the wasmtime.pc file seems like a better approach.

Alternatives

Alternatively, the ruby code that generates the wasmtime.pc file inside the install function of my homebrew formula could be copied into wasmtime.rb, making the existing wasmtime homebrew formula install the wasmtime.pc file.

Notes

I included the source code of my homebrew formula for reference (I tentatively named it libwasmtime for disambiguation purposes).

libwasmtime.rb.txt

view this post on Zulip Wasmtime GitHub notifications bot (Jun 11 2026 at 10:29):

gor-gyolchanyan edited issue #13611:

I propose including pkg-config support.

Many software repositories vending C libraries have support for pkg-config by generating a *.pc file (during the build configuration phase, when installation paths become known), which significantly improves discoverability of the C library, as well as improves interoperability with other build systems.

Feature

Including pkg-config support means producing a wasmtime.pc file as part of each release. The wasmtime.pc would be used in conjunction with the pkg-config tool to streamline C API usage and would contain all necessary information like the include path, the library path, and the library to be linked with.

Benefit

Implementation

I created a separate homebrew formula that depends on the existing wasmtime formula and generates the wasmtime.pc file. I was going to create a pull request for homebrew-core.git, but having the build process generate the wasmtime.pc file seems like a better approach.

Here's the source code of my homebrew formula for reference (I tentatively named it libwasmtime for disambiguation purposes).

libwasmtime.rb.txt

Alternatives

Alternatively, the ruby code that generates the wasmtime.pc file inside the install function of my homebrew formula could be copied into wasmtime.rb, making the existing wasmtime homebrew formula install the wasmtime.pc file.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 11 2026 at 13:54):

alexcrichton commented on issue #13611:

Thanks for the report, and seems reasonable to me to add, yeah. Would you be up for sending a PR for this?

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2026 at 15:22):

gor-gyolchanyan commented on issue #13611:

I haven't contributed to wasmtime before and my knowledge of rust build process is limited, but I'll look into it and see if I can get it done. I'll ask for an extra careful code review when I'm done, because I can't vouch for how idiomatic my solution will be.


Last updated: Jul 29 2026 at 05:03 UTC