rusty_racer 0.1.10 → 0.1.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7df2aeec586e04d155d2635f6df9b51e219b31108fad5829e7a5ed5eb8a784a3
4
- data.tar.gz: '099e1e39f64e041d082fb86269ae4265406e4f05279e3d24909a9e6f4fa89de0'
3
+ metadata.gz: 895932416f172914a42904dd40f7d831dfc4db64bbc10273d8d1155a7e11e447
4
+ data.tar.gz: 462425835fd9f5968bd6793d65b72f43d1ecd23a20dae78a6cba4477c72caa88
5
5
  SHA512:
6
- metadata.gz: 5d8f2b15aca012b8c3933b960009e1d248cf2284774eff23c4740688796dfff97d4fe647fc0792f68e70fe4a66aa4fb4cdb7869451a82fac625178f57b8f56d2
7
- data.tar.gz: c66d30a7c1bfd8d00f62c7ee99e6356f1f9f6c4a8aeebab9e05552a945c51d54f4dd31f3787fa95bd60e425e1dae3240fdb90186c9c2bb87a7b945a0b55b06cd
6
+ metadata.gz: 459411e726623eca6320aa93e71a85193c12dbe9343520320c7754b514efaf3bdceacac545a6d99c0533d67fdfcaa5a1be6ea306d78faf6006ef082b51ee4c48
7
+ data.tar.gz: 4f4b91ff5287375a01ee3fb3bd87bf5fc82ff130c22654ad732021395c46c57b096290da2caaa9b49f411c706e2ec6fb36b1aeecc281a9a65d9a4fd6d6b9c792
data/README.md CHANGED
@@ -278,13 +278,12 @@ builds the extension at install time — see below.
278
278
 
279
279
  ## Building from source
280
280
 
281
- The stock `v8` crate prebuilt links as a binary (initial-exec TLS), which a Ruby
282
- extension's shared object can't use. A source build therefore needs a
283
- **library-TLS** `librusty_v8.a`. Either:
284
-
285
- - point `RUSTY_V8_ARCHIVE` at a prebuilt library-TLS archive, or
286
- - set `V8_FROM_SOURCE=1` to build V8 from the `denoland/rusty_v8` git tree
287
- (large: lots of disk, RAM, and time).
281
+ Building the source gem needs only a Rust toolchain the `v8` crate downloads
282
+ Deno's stock prebuilt `rusty_v8` archive and links it statically. Since rusty_v8
283
+ 150.1.0 that archive is shared-library-safe on Linux too (it no longer emits the
284
+ `R_X86_64_TPOFF32`-under-`-shared` relocation that used to block linking V8 into
285
+ an extension's shared object), so no `RUSTY_V8_ARCHIVE` override or from-source V8
286
+ build is required on any supported platform.
288
287
 
289
288
  ## License
290
289
 
@@ -1,11 +1,12 @@
1
1
  # Standalone (detached from the spike workspace) so it builds as a normal gem
2
- # extension. The cdylib is the Ruby extension; V8 is baked in (a from-source V8
3
- # build links library-TLS on linux, so the .so loads fine — no separate
4
- # libv8-rusty needed under the cibuildgem native-per-platform model).
2
+ # extension. The cdylib is the Ruby extension; V8 is baked in the v8 crate
3
+ # downloads Deno's stock prebuilt rusty_v8 archive and links it statically. Since
4
+ # rusty_v8 150.1.0 that archive is shared-library-safe on linux too, so the .so
5
+ # links and loads with no custom archive.
5
6
  [package]
6
7
  name = "rusty_racer"
7
- version = "0.1.10"
8
- edition = "2021"
8
+ version = "0.1.11"
9
+ edition = "2024"
9
10
  publish = false
10
11
 
11
12
  [lib]
@@ -20,9 +21,9 @@ rb-sys = "0.9"
20
21
  # simdutf: SIMD-accelerated UTF-8/UTF-16 transcoding in rusty_v8's String
21
22
  # conversion (to_rust_string_lossy etc.), the path every V8->Ruby string crosses.
22
23
  # ~6-8x faster marshalling for non-ASCII results (measured); ASCII is unaffected.
23
- # Needs the linked archive built with rusty_v8_enable_simdutf=true (libv8-rusty.yml
24
- # for linux; the v8 crate auto-fetches Deno's _simdutf prebuilt on macOS).
25
- v8 = { version = "150.0.0", features = ["simdutf"] }
24
+ # The feature makes the v8 crate fetch Deno's _simdutf prebuilt archive variant
25
+ # (which is built with rusty_v8_enable_simdutf=true) on every platform.
26
+ v8 = { version = "150.1.0", features = ["simdutf"] }
26
27
  # pthread stack-bounds query, to set V8's stack limit per op relative to the
27
28
  # current native thread (in-thread V8 runs on the Ruby thread's stack).
28
29
  libc = "0.2"
@@ -1,11 +1,10 @@
1
1
  require "mkmf"
2
2
  require "rb_sys/mkmf"
3
3
 
4
- # NOTE: V8 must be built from source so the extension links the library-TLS V8
5
- # a cdylib needs (the prebuilt librusty_v8 is initial-exec TLS -> R_X86_64_TPOFF32
6
- # under -shared). V8_FROM_SOURCE has to be in the *process environment* of the
7
- # `cargo` invocation, which make spawns separately from this extconf — so it is
8
- # set in the CI workflow env (and must be exported in the shell for local
9
- # `rake compile`), NOT here, where it would not propagate.
4
+ # The v8 crate downloads Deno's stock prebuilt rusty_v8 archive and links it
5
+ # statically no build config needed here. As of rusty_v8 150.1.0 (PR #2008) the
6
+ # Linux archive is built shared-library-safe (v8_monolithic_for_shared_library),
7
+ # so it links into the extension cdylib without the R_X86_64_TPOFF32-under-shared
8
+ # error that used to force a from-source library-TLS build on linux.
10
9
 
11
10
  create_rust_makefile("rusty_racer/rusty_racer")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RustyRacer
4
- VERSION = "0.1.10"
4
+ VERSION = "0.1.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rusty_racer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keita Urashima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-19 00:00:00.000000000 Z
11
+ date: 2026-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys