-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
CargoBuilder JRuby support #285
Comments
I’m not opposed to the idea, the patch is hard to review though. If you can make a prototype PR with the code that would be great! If that looks solid, we can polish it up to ship. |
I need your help, I updated UPD: Just I tried to debug: File.write 'tmp1', response.body.bytes.inspect
File.write 'tmp2', pipe_command("#{RbConfig.ruby} -e 'puts STDIN.read.bytes.inspect'", stdin: response.body) and appears it can't handle long stdins: 3.0.2 :002 > arr1 = eval(File.read 'tmp1'); nil
=> nil
3.0.2 :003 > arr2 = eval(File.read 'tmp2'); nil
3.0.2 :006 > arr1.size
=> 6290974
3.0.2 :007 > arr2.size
=> 98304
3.0.2 :010 > arr1[0...arr2.size] == arr2
=> true And this problem reproduces only from time to time |
rb_sys/mkmf
can be used to compile not onlyrb_sys
-based gems, but any gem that contains Rust code. I've found it useful to compile rust code used in JRuby through JNI, but it can also be used to compile Rust libraries called through FFI in both MRI and JRuby. However, I needed to make a small patch to make it compile on JRuby. So, the question is: would you accept a PR with these changes? It actually can require more patches as I only tested them on Ubuntu, dynamically linked Ruby 3.2.The text was updated successfully, but these errors were encountered: