llhttp icon indicating copy to clipboard operation
llhttp copied to clipboard

Do not use require_relative with native extension

Open Annih opened this issue 7 months ago • 8 comments

Replace require_relative "../llhttp_ext" by require "llhttp_ext" to load the native extension. This improves compatibility with Bundler and RubyGems, especially in environments using bundle install --standalone or other setups where the extension may not be located relative to the Ruby file.

Using require ensures the extension is loaded from the load path, following RubyGems best practices for native extensions.

Fix #33

Annih avatar Jun 09 '25 12:06 Annih