rust_ruby_example 0.1.0-x86_64-darwin

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: 2b62b9704a63c458ddc21e12da6142af8571026f6c12113faa421e340649f164
4
+ data.tar.gz: c7291f323294c076245945fa779ce751416dfc8e4055e70f8022db46b613bf0d
5
+ SHA512:
6
+ metadata.gz: 160a007a73e7970d106f44a540a927c13f1b65a1a8b5157a55941f7aef9afc3652695c12083b3190def831d754f64901e68ce72766821b4c22fea573aefc14e0
7
+ data.tar.gz: 050422e1f63a1d954ca11bdafcfa31a592793504c570d0cbb133212de472c6b1a643fd6f5eac63dcfd70d4eb4deb02c0831a1a35fedb5c35c959a1c4f5244e74
@@ -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-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: []