Ross Savage

Results 50 comments of Ross Savage

**Current WASIX Progress** Patching the following dependencies: ```rust [patch.crates-io] sct = { git = "https://github.com/dangeross/sct", branch = "v0.7.0" } h2 = { git = "https://github.com/wasix-org/h2" } rustls = { git...

**Current WASIX Progress** Patching the following dependencies: ```rust [patch.crates-io] sct = { git = "https://github.com/dangeross/sct", branch = "v0.7.0" } h2 = { git = "https://github.com/wasix-org/h2" } rustls = { git...

**Current WASIX Progress** Patching the following dependencies: ```rust [patch.crates-io] sct = { git = "https://github.com/dangeross/sct", branch = "v0.7.0" } h2 = { git = "https://github.com/wasix-org/h2" } rustls = { git...

I setup a Github CI job running on ubuntu-22.04 to build WASIX to see if the build issues were related to my local environment. It seems to be failing with...

Maybe time to start having features. Maybe "std" / "no-std" features to select dependency features correctly. ``` Running `/Users/rosssavage/.rustup/toolchains/wasix/bin/rustc --crate-name bitcoinconsensus --edition=2018 /Users/rosssavage/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitcoinconsensus-0.20.2-0.5.0/src/lib.rs --error- format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=159 --crate-type lib --...

Seems that no matter if you build for release or dev, the dev-dependencies are compiled. This was causing the above error, where the bitcoinconsensus dev-dependency is being compiled and failing...

Next error is related to rusqlite ``` = note: rust-lld: error: --shared-memory is disallowed by sqlite3.o because it was not compiled with 'atomics' or 'bulk-memory' features. error: could not compile...

``` Finished release [optimized] target(s) in 2m 33s info: Post-processing WebAssembly files Processing /Users/rosssavage/Source/Projects/breez-sdk-review/libs/sdk-wasm/target/wasm32-wasmer-wasi/release/deps/breez_sdk_core.rustc.wasm Optimizing with wasm-opt Running "/Users/rosssavage/Library/Caches/cargo-wasix/0.1.23/wasm-opt/bin/wasm-opt" "/Users/rosssavage/Source/Projects/breez-sdk-review/libs/sdk-wasm/target/wasm32-wasmer-wasi/release/deps/.tmpFoD01q/input.wasm" "-O3" "-o" "/Users/rosssavage/Source/Projects/breez-sdk-review/libs/sdk-wasm/target/wasm32-wasmer-wasi/release/deps/breez_sdk_core.wasi.wasm" "--enable-bulk-memory" "--enable-threads" "--enable-reference-types" "--no-validation" "--asyncify" "--debuginfo" Processing...

We were having issues compiling WASM using a WAI (WebAssembly Interface) to expose an ABI exporting (and importing) SDK functions usable in javascript. This is because the WAI-bindgen is written...

Diesel ORM for sqlite and WASM: https://github.com/xmtp/libxmtp/tree/wasm-backend/diesel-wasm-sqlite