Skip to content

Commit 89651c6

Browse files
committed
fix: resolve CI failures across WASM, Rust, Elixir, and Validate workflows
- Update getrandom backend config from "js" to "wasm_js" for getrandom 0.3.x - Add getrandom dependency with wasm_js feature to WASM crate - Update stale issue #139 regression test (truncation was removed in #199) - Add ahash workspace replacement to Elixir and Ruby vendor scripts
1 parent 2bbe36a commit 89651c6

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[target.wasm32-unknown-unknown]
2-
rustflags = ["--cfg", "getrandom_backend=\"js\""]
2+
rustflags = ["--cfg", "getrandom_backend=\"wasm_js\""]

crates/html-to-markdown-wasm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ serde_json = "1.0"
4848
serde-wasm-bindgen = { version = "0.6", optional = true }
4949
console_error_panic_hook = { version = "0.1", optional = true }
5050
js-sys = { version = "0.3", optional = true }
51+
getrandom = { version = "0.3", features = ["wasm_js"] }
5152

5253
[dev-dependencies]
5354
wasm-bindgen-test = "0.3"

crates/html-to-markdown/tests/issue_139_regressions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ fn long_multibyte_link_label_does_not_panic() {
1010
html.push_str("</a>");
1111

1212
let markdown = convert(&html, Some(ConversionOptions::default())).unwrap();
13-
let expected_label = format!("{}", "a".repeat(511));
13+
let expected_label = format!("{}👍", "a".repeat(511));
1414

1515
assert!(
1616
markdown.contains(&format!("[{}]", expected_label)),
17-
"expected truncated label to appear in markdown output; got: {markdown}"
17+
"expected full label to appear in markdown output; got: {markdown}"
1818
);
1919
}

scripts/publish/elixir/stage-rust-core.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ replacements = {
6868
r"^once_cell\.workspace\s*=\s*true\s*$": 'once_cell = "1.21"',
6969
r"^thiserror\.workspace\s*=\s*true\s*$": 'thiserror = "2.0"',
7070
r"^base64\.workspace\s*=\s*true\s*$": 'base64 = "0.22"',
71+
r"^ahash\.workspace\s*=\s*true\s*$": 'ahash = "0.8"',
7172
r"^html5ever\.workspace\s*=\s*true\s*$": 'html5ever = "0.36"',
7273
r"^markup5ever_rcdom\.workspace\s*=\s*true\s*$": 'markup5ever_rcdom = "0.36"',
7374
r"^async-trait\s*=\s*{\s*workspace\s*=\s*true,\s*optional\s*=\s*true\s*}\s*$": 'async-trait = { version = "0.1", optional = true }',

scripts/publish/ruby/vendor-dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ replacements = {
6262
r"^once_cell\.workspace\s*=\s*true\s*$": 'once_cell = "1.21"',
6363
r"^thiserror\.workspace\s*=\s*true\s*$": 'thiserror = "2.0"',
6464
r"^base64\.workspace\s*=\s*true\s*$": 'base64 = "0.22"',
65+
r"^ahash\.workspace\s*=\s*true\s*$": 'ahash = "0.8"',
6566
r"^html5ever\.workspace\s*=\s*true\s*$": 'html5ever = "0.36"',
6667
r"^markup5ever_rcdom\.workspace\s*=\s*true\s*$": 'markup5ever_rcdom = "0.36"',
6768
r"^async-trait\s*=\s*\{\s*workspace\s*=\s*true,\s*optional\s*=\s*true\s*\}\s*$": 'async-trait = { version = "0.1", optional = true }',

0 commit comments

Comments
 (0)