rust_ruby_example 0.1.0-x86_64-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: 323ee7cc0d28d0171d14277b03d4ec6b87b8a07a787a5b99390f96c6c599f265
|
4
|
+
data.tar.gz: bf889dce29ddc3bfb12e2d27daf3bbb965897f99fe59173c124cb565afd06121
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e9756e9c9f07fa12dc953b0ffe7e85e35d09fe8058e94916cc8353a2c43eb0d00b0c876b2bd841032e2c91f204b6204ad84cdfe4d1f11bb8f171d2a24f9f7a96
|
7
|
+
data.tar.gz: 638da7e8bd4fdfd1117c6fee59fb842b9f07b42c4ac57b10cba5084f34bd02ac4b22c07f046fbaad63671348ccb55a47dd98c0a4cb15a6a4e421ad963365bdf8
|
@@ -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: x86_64-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: []
|