27 stable releases (3 major)

new 2025.2.1 Feb 21, 2025
2024.10.4 Jan 9, 2025
2024.10.3 Dec 10, 2024
2024.10.2 Nov 25, 2024
0.1.2 Apr 19, 2023

#4 in #ton

Download history 258/week @ 2024-10-29 196/week @ 2024-11-05 160/week @ 2024-11-12 403/week @ 2024-11-19 240/week @ 2024-11-26 161/week @ 2024-12-03 305/week @ 2024-12-10 47/week @ 2024-12-17 20/week @ 2024-12-24 13/week @ 2024-12-31 221/week @ 2025-01-07 83/week @ 2025-01-14 112/week @ 2025-01-21 200/week @ 2025-01-28 231/week @ 2025-02-04 163/week @ 2025-02-11

722 downloads per month
Used in 2 crates

MIT license

125KB
404 lines

Rust Bindings for tonlibjson Library

This repository contains the Rust bindings for tonlib library (https://github.com/ton-blockchain/ton), allowing developers to use tonlib functionality in their Rust applications. Starting from version 2024.6.1, this project depends on a forked version of ton instead of the original (https://github.com/ston-fi/ton). This change was made to address urgent fixes and potential future needs.

Features

  • Uses Cmake to build tonlibjson_static by default.
  • Supports shared tonlib. You can build with --features shared-tonlib.

Usage

This library is used in the tonlib-rs library (https://github.com/ston-fi/tonlib-rs), which provides a higher-level Rust interface to the tonlib functionality.

To use this library in your Rust application, add the following to your Cargo.toml file:

[dependencies]
tonlib-sys = "2025.2"

Then, in your Rust code, you can import the library with:

use tonlib_sys;

Contributing

If you want to contribute to this library, please feel free to open a pull request on GitHub.

License

This library is licensed under the MIT license. See the LICENSE file for details.

No runtime deps

~0–350KB