rust_ruby_example 0.1.0-arm-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: da1fbc8402ad03680321a238b3d8893219d62dfd19b363e246a7e45cf94c36d6
|
4
|
+
data.tar.gz: 6a49ab66e6dc1533fd4294e23cc254843fbbb8865a4822ed976463122975a4e8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d4f3aeac5d778a7b4c289cf179c63ef403f4067f660302f6ffb6a830fd790cd08b26625d520c3397249516c7314fce889b0d8bf3e91d6713c77d4d855e40f7d0
|
7
|
+
data.tar.gz: 0c8e97244493db843537ee7317897e3d8b8c29335c00cf39939734b0c1ba3b915fbbedb6f8a359e34ad8481c69131608dfdbcd1b26b34e849f32f229dd49d32b
|
@@ -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: arm-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: []
|