Sha256: 8936027778c798e0e74ae14fca3f07ae09e52c3c2d122469b0107af6f92f4441
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
require "ruuid/version" require "ffi" module Ruuid def self.generate Rust.generate_uuid end module Rust extend FFI::Library ffi_lib begin prefix = Gem.win_platform? ? "" : "lib" "#{File.expand_path("../target/release/", __dir__)}/#{prefix}ruuid.#{FFI::Platform::LIBSUFFIX}" end attach_function :generate_uuid, [], :string end private_constant :Rust end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rust_uuid-0.1 | lib/ruuid.rb |