rust_ruby_example 0.1.0-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/rust_ruby_example/extconf.rb +34 -0
- data/lib/2.4/rust_ruby_example.bundle +0 -0
- data/lib/2.5/rust_ruby_example.bundle +0 -0
- data/lib/2.6/rust_ruby_example.bundle +0 -0
- data/lib/2.7/rust_ruby_example.bundle +0 -0
- data/lib/3.0/rust_ruby_example.bundle +0 -0
- data/lib/3.1/rust_ruby_example.bundle +0 -0
- metadata +52 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dbf0a81327883c5b05d2ff4f90bf992f81dc7af2837b985317e981b085e4924d
|
4
|
+
data.tar.gz: 33c0538b765f317b0f441d08b37b4ef419db8af2beeac1ca6e46ece8da4bb044
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0cc4e4e64bb5519dca48de699e35d7b4e0c34e6ada8c7f75bc1a6ea523d0b98b6059d9c0826f1bda563687659135fbef4320e9bc7e81e63452f5d8e2a5f9765c
|
7
|
+
data.tar.gz: 8be450cf02820a7059f158281f0f59808e4252a0bb5c5d06608963d93c852e5d5354014bb08a084cfc5800993b339ca421f8ea5af216d0015f9e2c5af1f85c04
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "mkmf"
|
2
|
+
require "rubygems/ext"
|
3
|
+
require "rubygems/ext/cargo_builder"
|
4
|
+
|
5
|
+
target = "rust_ruby_example"
|
6
|
+
dest_path = File.join(Dir.pwd, "target")
|
7
|
+
results = []
|
8
|
+
args = []
|
9
|
+
lib_dir = Dir.pwd
|
10
|
+
cargo_dir = File.expand_path("../..", __dir__)
|
11
|
+
spec = Struct.new(:name, :metadata).new(target, {})
|
12
|
+
|
13
|
+
make_install = <<~EOF
|
14
|
+
target_prefix = /#{target}
|
15
|
+
|
16
|
+
TARGET = #{target}
|
17
|
+
DLLIB = $(TARGET).#{RbConfig::CONFIG["DLEXT"]}
|
18
|
+
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
19
|
+
CLEANLIBS = release/
|
20
|
+
|
21
|
+
#{dummy_makefile(__dir__).join("\n").gsub("all install static install-so install-rb", "all static install-so install-rb")}
|
22
|
+
|
23
|
+
install: $(DLLIB)
|
24
|
+
\t$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
25
|
+
EOF
|
26
|
+
|
27
|
+
File.write("Makefile", make_install)
|
28
|
+
|
29
|
+
begin
|
30
|
+
Gem::Ext::CargoBuilder.new(spec).build(nil, dest_path, results, args, lib_dir, cargo_dir)
|
31
|
+
rescue
|
32
|
+
puts results
|
33
|
+
raise
|
34
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rust_ruby_example
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: arm64-darwin
|
6
|
+
authors:
|
7
|
+
- Ian Ker-Seymer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- ext/rust_ruby_example/extconf.rb
|
20
|
+
- lib/2.4/rust_ruby_example.bundle
|
21
|
+
- lib/2.5/rust_ruby_example.bundle
|
22
|
+
- lib/2.6/rust_ruby_example.bundle
|
23
|
+
- lib/2.7/rust_ruby_example.bundle
|
24
|
+
- lib/3.0/rust_ruby_example.bundle
|
25
|
+
- lib/3.1/rust_ruby_example.bundle
|
26
|
+
homepage:
|
27
|
+
licenses: []
|
28
|
+
metadata:
|
29
|
+
github_repo: git@github.com:ianks/rb-rust-gem.git
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '2.4'
|
39
|
+
- - "<"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 3.2.dev
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
requirements: []
|
48
|
+
rubygems_version: 3.4.0.dev
|
49
|
+
signing_key:
|
50
|
+
specification_version: 4
|
51
|
+
summary: Testing
|
52
|
+
test_files: []
|