rb_sys 0.9.79 → 0.9.81

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63c63786ecd9f735f17132c8f772cb145d0c4107052d482ea5cff7084f30a7c5
4
- data.tar.gz: 5d2f9d6e902e855805367f7cdba4a80953693c7a979b58593eca572d310c0cf6
3
+ metadata.gz: e03b52a0133fca3f16a8614c77d582ba2cd82a91cb383c5066cba1ef4e22e49b
4
+ data.tar.gz: 82dd02bc346faeef784fea046b329162d0e3145aa6f8b57cbca3cb5b2afdf9e9
5
5
  SHA512:
6
- metadata.gz: 1653a68b2336d328c855c0ce972668d67461b3c5aeb4d15f76a69377f72ff76b21f85b0fc1da73ce491fff4965b6378ac7c7742018b9263a91ec40f34719bda3
7
- data.tar.gz: 8cbae235b072bd6a68980a4159fd13ea8f7168b4fc760d834371a62bfb1677ded0e1932334204b97ed45004d9baba1c3f0364ae671c5b4f9ceb012fd03bd3237
6
+ metadata.gz: 80fa9f01a3201773188eabb0b2022e36cf15d940195ead2595dcc7e4852e1cf195d2f628ca0bbc12432c6a52bc79c08b3afe8d12252882241d8d970cdfc4d030
7
+ data.tar.gz: cb1211eae42b9575d5062ebb34dca1c9728f8369b1dc297b4eaae4417e5fd24c713d25ee130b403e5ccda52e35e537fc376e45e3f184c08bc5f0887b643c1e5c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -45,6 +45,7 @@ module RbSys
45
45
  gemspec.files.reject! { |f| f.end_with?(".rs") }
46
46
  gemspec.files.reject! { |f| f.match?(/Cargo.(toml|lock)$/) }
47
47
  gemspec.files.reject! { |f| extconf.end_with?(f) }
48
+ gemspec.extensions.reject! { |f| f.end_with?("Cargo.toml") }
48
49
  end
49
50
  end
50
51
 
@@ -22,10 +22,14 @@ module RbSys
22
22
  # Extra targets to install
23
23
  attr_accessor :extra_rustup_targets
24
24
 
25
+ # Use compiled C code fallback for stable API for ruby-head (default: false)
26
+ attr_accessor :use_stable_api_compiled_fallback
27
+
25
28
  def initialize(builder)
26
29
  @builder = builder
27
30
  @force_install_rust_toolchain = false
28
31
  @auto_install_rust_toolchain = true
32
+ @use_stable_api_compiled_fallback = false
29
33
  @clean_after_install = rubygems_invoked?
30
34
  @rubygems_clean_dirs = ["./cargo-vendor"]
31
35
  @extra_rustup_targets = []
@@ -53,6 +57,10 @@ module RbSys
53
57
  def rubygems_invoked?
54
58
  ENV.key?("SOURCE_DATE_EPOCH")
55
59
  end
60
+
61
+ def use_stable_api_compiled_fallback?
62
+ @use_stable_api_compiled_fallback
63
+ end
56
64
  end
57
65
  end
58
66
  end
data/lib/rb_sys/mkmf.rb CHANGED
@@ -53,6 +53,8 @@ module RbSys
53
53
  RbConfig.expand(srcdir = srcprefix.dup)
54
54
 
55
55
  full_cargo_command = cargo_command(srcdir, builder)
56
+ global_rustflags = GLOBAL_RUSTFLAGS.dup
57
+ global_rustflags << "--cfg=rb_sys_use_stable_api_compiled_fallback" if builder.use_stable_api_compiled_fallback?
56
58
 
57
59
  make_install = +<<~MAKE
58
60
  #{conditional_assign("RB_SYS_BUILD_DIR", File.join(Dir.pwd, ".rb-sys"))}
@@ -68,7 +70,7 @@ module RbSys
68
70
 
69
71
  #{set_cargo_profile(builder)}
70
72
  #{conditional_assign("RB_SYS_CARGO_FEATURES", builder.features.join(","))}
71
- #{conditional_assign("RB_SYS_GLOBAL_RUSTFLAGS", GLOBAL_RUSTFLAGS.join(" "))}
73
+ #{conditional_assign("RB_SYS_GLOBAL_RUSTFLAGS", global_rustflags.join(" "))}
72
74
  #{conditional_assign("RB_SYS_EXTRA_RUSTFLAGS", builder.extra_rustflags.join(" "))}
73
75
  #{conditional_assign("RB_SYS_EXTRA_CARGO_ARGS", builder.extra_cargo_args.join(" "))}
74
76
  #{conditional_assign("RB_SYS_CARGO_MANIFEST_DIR", builder.manifest_dir)}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbSys
4
- VERSION = "0.9.79"
4
+ VERSION = "0.9.81"
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_sys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.79
4
+ version: 0.9.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
@@ -30,7 +30,7 @@ cert_chain:
30
30
  DIZ6NVmpBvohJVCCCDxQQxFKLXZp1ivoxjN+m7eJSW7yzIz062pH4u8pPNQsiVSb
31
31
  I5rgRPbDr2rAFGXKoQ0+u6CLkRxqrVsITl/OPfZhBQI=
32
32
  -----END CERTIFICATE-----
33
- date: 2023-06-13 00:00:00.000000000 Z
33
+ date: 2023-08-03 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email:
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.4.10
85
+ rubygems_version: 3.4.6
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Helpers for compiling Rust extensions for ruby
metadata.gz.sig CHANGED
Binary file