rust_ruby_example 0.1.0-aarch64-linux
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.so +0 -0
- data/lib/2.5/rust_ruby_example.so +0 -0
- data/lib/2.6/rust_ruby_example.so +0 -0
- data/lib/2.7/rust_ruby_example.so +0 -0
- data/lib/3.0/rust_ruby_example.so +0 -0
- data/lib/3.1/rust_ruby_example.so +0 -0
- metadata +52 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: febad3c34b8f083759333c79f12e3e1bd78ef9978ca89b2785249ee552746cbf
|
4
|
+
data.tar.gz: 70cbd832582606a46a47d2263a3451426a8172a1ca32b2d26baabf9e7c88a937
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cca3f5aee5852c916f793409a13685f113da6878a3eab78e763ae2dae3720aa3eafaba9cd107cfdc1f682ebd8e06a926f2ffa7eeb8bb595d65afa24fdfdfabb8
|
7
|
+
data.tar.gz: 0d16fdc8ad103becebb747a59a08c9154807c110e0bb3e7a18cff09130a6d3ccf1ef9b16b6cfab29cf7ecf19f7e78bf217ce5b2a2b2d670b7e35587fc4b6ffa0
|
@@ -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: aarch64-linux
|
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.so
|
21
|
+
- lib/2.5/rust_ruby_example.so
|
22
|
+
- lib/2.6/rust_ruby_example.so
|
23
|
+
- lib/2.7/rust_ruby_example.so
|
24
|
+
- lib/3.0/rust_ruby_example.so
|
25
|
+
- lib/3.1/rust_ruby_example.so
|
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: []
|