Sha256: 848ed5cb1a6a0857e9c709830bc7cd9d000d186a87afabe2a0996e7bfd09c39e
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
require 'ffi' module <%= constant_name %> extend FFI::Library ffi_lib 'rust/target/release/<%= extension_name %>' attach_function :simple_test, [ :string, :uint ], :uint attach_function :hello_world, [ :string, :uint ], :uint end if $0 == __FILE__ json = <<-JSON {"hello":"Hello", "world":"World" } JSON puts <%= constant_name %>::simple_test "Hi there!", 21 puts <%= constant_name %>::hello_world json, 3 end
Version data entries
4 entries across 4 versions & 1 rubygems