NEW: Rebuild artifacts section in README.md.
@@ -44,7 +44,7 @@ a client library and an application code written on that language.
Platforms: Node.js, Web, React-Native for IOS/Android
- [ton-client-js](https://github.com/tonlabs/ton-client-js)
-## Communinty bindings
+## Community bindings
Language | Repo
-------- | --------------
@@ -124,7 +124,7 @@ From the perspective of JSON-interface it isn't breaking change because the new
4) To avoid such problems we recommend to use default implementation inside structure initialisation:
```rust
-oo(ParamsOfFoo {
+foo(ParamsOfFoo {
foo: "foo".into(),
..Default::default(),
});
@@ -132,9 +132,6 @@ oo(ParamsOfFoo {
For all Ton Client API structures `Default` trait is implemented.
-
-
-
# Build client library
The best way to build client libraries is to use build scripts from this repo.
@@ -151,6 +148,33 @@ Note that the build script generates binaries compatible with the platform used
**Note**: You need latest version of rust. Upgrade it with `rustup update` command. Check version with `rustc --version`, it should be above or equal to `1.47.0`.
+# Build artifacts
+
+Rebuild `api.json`:
+
+```shell
+cd toncli
+cargo run api -o ../tools
+```
+
+Rebuild `docs`:
+
+```shell
+cd tools
+npm i
+tsc
+node index docs -o ../docs
+```
+
+Rebuild `modules.ts`:
+
+```shell
+cd tools
+npm i
+tsc
+node index binding -l ts -o ../ton-client-js/packages/core/src
+```
+
# Download precompiled binaries
Instead of building library yourself, you can download the __latest__ precompiled binaries from
