rust_ruby_example 0.1.0-x64-mingw-ucrt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6cf9357c1f82d5ba6a3133794d2ad93d1f453f028e864b6530e08b71b671a615
4
+ data.tar.gz: 5289c834327b1eba9fe8a23c6675d62d59418beba7973f928176cc3c539e1dec
5
+ SHA512:
6
+ metadata.gz: d5dc5d41042e9053562fd9a43dd8083f2af5e781302235d65c63787d84f34679bd326fb838233ca7ec9e80d1759e245af0ea6cfc19ff0599affbe2b02a708d79
7
+ data.tar.gz: 3e79382b811204d51119795812b02537e95ce182ca18497878a35eec364fe4fc46247342aa0d197e85f768002fdebf24ec3a60bfc258f472445bbfaca858cb70
@@ -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
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rust_ruby_example
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: x64-mingw-ucrt
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/3.1/rust_ruby_example.so
21
+ homepage:
22
+ licenses: []
23
+ metadata:
24
+ github_repo: git@github.com:ianks/rb-rust-gem.git
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '2.4'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: 3.2.dev
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.4.0.dev
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Testing
47
+ test_files: []