rust_ruby_example 0.1.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 452bf8a34e28da34ed5b0139e253ced8c1073f670b4651597c69d0c0f9874154
4
+ data.tar.gz: 834c008b3710c0faf38c114f432db4db01914d87e586a5bab3abf54253796d47
5
+ SHA512:
6
+ metadata.gz: e75851ac27e36b738053f20c7e0d26ef15eb827754e10054cfadd0a44632e727027c85f6176e807c5f9af8b0cac64a29db9a839915052fa4b8e0cd0b8057485c
7
+ data.tar.gz: 15fab0c83a79848e7eecadc41116332295a2337fe5aacbfe4345111c7f124450268a43e731370f4a8dd1f726005ca09a95fe1bc0ee316eccacb28eaabb390998
@@ -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
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rust_ruby_example
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: x64-mingw32
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
+ homepage:
26
+ licenses: []
27
+ metadata:
28
+ github_repo: git@github.com:ianks/rb-rust-gem.git
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '2.4'
38
+ - - "<"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.dev
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 3.4.0.dev
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: Testing
51
+ test_files: []