Skip to content

Commit

Permalink
instructions for compiling tdlib to wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
jurij-jukic committed Jun 6, 2024
1 parent ef17049 commit b3eac9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions COMPILE_TDLIB_WASM32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Compiling to Wasm

- Follow the [steps](https://github.com/tdlib/td/tree/master/example/web) in the official tdlib repo. If it shows some errors, it's fine, as long as you can find a `libtdjson_static.a` file in the `td/example/web/build/wasm/` directory.
- Run `export LOCAL_TDLIB_PATH=path/to/td/example/web/build/wasm/`. Now `tdjson.rs` will link to this version of Tdlib compiled specifically for Wasm
- Run `cargo build --target wasm32-wasi`

0 comments on commit b3eac9a

Please sign in to comment.