Giter Club home page Giter Club logo

tdlib-sys's Introduction

tdlib-sys

build macOS windows bindgen crates.io

Rust sys crate for Telegram's TDLib client library.

Requires the gperf tool to be installed to build, and the following development libraries:

  • libssl
  • zlib

Standard build tools are required, and additionally:

  • cmake

All build instructions below for OSX and Windows are currently only tested on Github workflows, if you find something more accurate for a normal system, please feel free to send a PR!

Dynamically linked builds

Get source

git clone https://github.com/nuxeh/tdlib-sys.git
cd tdlib-sys

Linux

sudo apt install gperf perl build-essential cmake libssl-dev libz3-dev
cargo build

It should be possible to dynamically link on other platforms, but this is currently untested.

Statically linked builds

The crate feature bundled_deps can be used on any platform to use zlib and openssl built statically by their respective sys crates.

This does not require the installation of either of the dependencies on the host system, so is an easy solution for building on Windows and OSX.

This still requires standard build tools, and additionally the following to be installed:

  • perl

Get source

git clone https://github.com/nuxeh/tdlib-sys.git
cd tdlib-sys

Linux

sudo apt install gperf perl build-essential cmake
cargo build --features bundled_deps

OSX

brew install gperf perl
cargo build --features bundled_deps

Windows

vcpkg.exe install gperf:x86-windows
cargo build --features bundled_deps

tdlib-sys's People

Contributors

nuxeh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.