#bindings #build #default #cmake #tonlib #tonlibjson #shared-tonlib

sys tonlib-sys

Rust bindings for tonlibjson library

13 stable releases

new 2024.3.4 May 1, 2024
2024.3.0 Mar 15, 2024
2023.12.0 Jan 17, 2024
2023.11.0 Dec 7, 2023
0.1.2 Apr 19, 2023

#141 in Emulators

Download history 2/week @ 2024-01-07 31/week @ 2024-01-14 25/week @ 2024-02-04 22/week @ 2024-02-11 43/week @ 2024-02-18 69/week @ 2024-02-25 16/week @ 2024-03-03 183/week @ 2024-03-10 62/week @ 2024-03-17 37/week @ 2024-03-24 112/week @ 2024-03-31 81/week @ 2024-04-07 621/week @ 2024-04-14 211/week @ 2024-04-21

1,026 downloads per month
Used in 2 crates (via tonlib)

MIT license

22KB
377 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.

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 = "2024.3"

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

use tonlib_sys;

Cross-compilation

In order to cross-compile for specific cpu microachitecture set environment variable TARGET_CPU_MARCH to the required. Supported values are listen in https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

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

~220KB