I was initially mislead by README content that says: "Building native extensions in gems with Bazel" is not yet supported.
Is non-gem support for native extensions documented somewhere? I eventually found
https://github.com/bazelruby/rules_ruby/blob/master/ruby/tests/BUILD.bazel#L186
so it seems like it is possible to use native extensions in ruby_binary and ruby_library, but I only figured this out because the @org_ruby_lang_ruby_toolchain//:headers rule seems designed to support this use case.
I was initially mislead by README content that says: "Building native extensions in gems with Bazel" is not yet supported.
Is non-gem support for native extensions documented somewhere? I eventually found
https://github.com/bazelruby/rules_ruby/blob/master/ruby/tests/BUILD.bazel#L186
so it seems like it is possible to use native extensions in
ruby_binaryandruby_library, but I only figured this out because the@org_ruby_lang_ruby_toolchain//:headersrule seems designed to support this use case.