A collection of secure, browser-based, client-side tools running in high-performance WebAssembly. No data leaves your machine. tools.sandbanks.tech/
2

Configure Feed

Select the types of activity you want to include in your feed.

Update getrandom to 0.4 with wasm_js feature

- Upgraded getrandom from 0.2 to 0.4
- Changed feature from 'js' to 'wasm_js' (required for 0.4+)
- Fixed sqlformat 0.5.0 API compatibility
- uppercase field is now Option<bool>
- Using Default::default() for FormatOptions
- Passing &options instead of options to format()

Richard Scorer (Jun 17, 2026, 11:49 AM +0100) 6c2bb552 108495fb

+9 -29
+3 -22
Cargo.lock
··· 288 288 dependencies = [ 289 289 "base64", 290 290 "console_error_panic_hook", 291 - "getrandom 0.2.17", 291 + "getrandom", 292 292 "js-sys", 293 293 "leptos", 294 294 "leptos_router", ··· 490 490 dependencies = [ 491 491 "typenum", 492 492 "version_check", 493 - ] 494 - 495 - [[package]] 496 - name = "getrandom" 497 - version = "0.2.17" 498 - source = "registry+https://github.com/rust-lang/crates.io-index" 499 - checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" 500 - dependencies = [ 501 - "cfg-if", 502 - "js-sys", 503 - "libc", 504 - "wasi", 505 - "wasm-bindgen", 506 493 ] 507 494 508 495 [[package]] ··· 799 786 "cfg-if", 800 787 "either_of", 801 788 "futures", 802 - "getrandom 0.4.2", 789 + "getrandom", 803 790 "hydration_context", 804 791 "leptos_config", 805 792 "leptos_dom", ··· 1770 1757 source = "registry+https://github.com/rust-lang/crates.io-index" 1771 1758 checksum = "144d6b123cef80b301b8f72a9e2ca4370ddec21950d0a103dd22c437006d2db7" 1772 1759 dependencies = [ 1773 - "getrandom 0.4.2", 1760 + "getrandom", 1774 1761 "js-sys", 1775 1762 "wasm-bindgen", 1776 1763 ] ··· 1790 1777 "same-file", 1791 1778 "winapi-util", 1792 1779 ] 1793 - 1794 - [[package]] 1795 - name = "wasi" 1796 - version = "0.11.1+wasi-snapshot-preview1" 1797 - source = "registry+https://github.com/rust-lang/crates.io-index" 1798 - checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" 1799 1780 1800 1781 [[package]] 1801 1782 name = "wasip2"
+1 -1
Cargo.toml
··· 12 12 sqlformat = "0.5" 13 13 serde_yaml = "0.9" 14 14 base64 = "0.22" 15 - getrandom = { version = "0.2", features = ["js"] } 15 + getrandom = { version = "0.4", features = ["wasm_js"] } 16 16 uuid = { version = "1.10", features = ["v4", "v7", "js"] } 17 17 wasm-bindgen = "0.2" 18 18 wasm-bindgen-futures = "0.4"
+5 -6
src/sql_fmt.rs
··· 25 25 26 26 let uppercase = keyword_case.get() == "uppercase"; 27 27 28 - let options = FormatOptions { 29 - indent, 30 - uppercase, 31 - lines_between_queries: 2, 32 - }; 28 + let mut options = FormatOptions::default(); 29 + options.indent = indent; 30 + options.uppercase = Some(uppercase); 31 + options.lines_between_queries = 2; 33 32 34 - format(&sql, &QueryParams::None, options) 33 + format(&sql, &QueryParams::None, &options) 35 34 }); 36 35 37 36 let output_text = Memo::new(move |_| conversion_result.get());