Skip to content

Commit

Permalink
Release v1.0.3 - Update to 1.8.29 version
Browse files Browse the repository at this point in the history
Signed-off-by: FedericoBruzzone <federico.bruzzone.i@gmail.com>
  • Loading branch information
FedericoBruzzone committed Jun 14, 2024
1 parent 61f3820 commit 9f9c395
Show file tree
Hide file tree
Showing 8 changed files with 11,466 additions and 624 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-tdlib.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build TDLib

on:
on:
workflow_dispatch:
workflow_call:

env:
TDLIB_VERSION: "1.8.19"
TDLIB_COMMIT: 2589c3fd46925f5d57e4ec79233cd1bd0f5d0c09
TDLIB_VERSION: "1.8.29"
TDLIB_COMMIT: af69dd4397b6dc1bf23ba0fd0bf429fcba6454f6

jobs:
build-linux:
Expand Down Expand Up @@ -124,4 +124,4 @@ jobs:
with:
name: ${{ steps.cache-tdlib-restore.outputs.cache-primary-key }}
path: ./td/tdlib/
overwrite: true
overwrite: true
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![CI macOS](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-macos.yml)

A Rust wrapper around the Telegram Database library. It includes a generator to automatically generate the types and functions from the TDLib's [Type Language](https://core.telegram.org/mtproto/TL) file.
Current version `v1.0.3`.

## Why this fork?

Expand All @@ -28,13 +29,13 @@ We compile it in the CI and we upload the artifacts to the GitHub releases, so w

It's mainly created for using it in the [tgt](https://github.com/FedericoBruzzone/tgt) client, but it should work also for any other Rust project.

Current supported TDLib version: [1.8.19](https://github.com/tdlib/td/commit/2589c3fd46925f5d57e4ec79233cd1bd0f5d0c09).
Current supported TDLib version: [1.8.29](https://github.com/tdlib/td/commit/af69dd4397b6dc1bf23ba0fd0bf429fcba6454f6).

## Cargo features

### default

By default the library require you to have the `tdlib` (version 1.8.19) compiled and installed on your system, and the following variables exported, for example in the `.bashrc` file:
By default the library require you to have the `tdlib` (version 1.8.29) compiled and installed on your system, and the following variables exported, for example in the `.bashrc` file:

```sh
# The path to the tdlib folder
Expand Down Expand Up @@ -65,7 +66,7 @@ If you want to use the `pkg-config` to build this library, you should enable the
tdlib = { version = "1.0.0", features = [ "pkg-config" ] }
```

remember to have the `tdlib` (version 1.8.19) installed on your system, and the following variables exported, for example in the `.bashrc` file:
remember to have the `tdlib` (version 1.8.29) installed on your system, and the following variables exported, for example in the `.bashrc` file:

```sh
# pkg-config configuration
Expand Down
4 changes: 2 additions & 2 deletions tdlib-rs-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tdlib-rs-gen"
version = "1.0.2"
version = "1.0.3"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"Andrea Longoni",
Expand All @@ -20,4 +20,4 @@ keywords = [
description = "Rust code generator from TDLib's API definitions."

[dependencies]
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.2" }
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.3" }
2 changes: 1 addition & 1 deletion tdlib-rs-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tdlib-rs-parser"
version = "1.0.2"
version = "1.0.3"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"Andrea Longoni",
Expand Down
8 changes: 4 additions & 4 deletions tdlib-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tdlib-rs"
version = "1.0.2"
version = "1.0.3"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"Andrea Longoni",
Expand All @@ -18,7 +18,7 @@ readme = "README.md"
features = ["docs", "bots-only-api"]

[package.metadata.system-deps]
tdjson = "1.8.19"
tdjson = "1.8.29"

[features]
# The default feature build the library using the local tdlib library
Expand All @@ -41,8 +41,8 @@ serde_json = "1.0"
serde_with = "3.2"

[build-dependencies]
tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.2" }
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.2" }
tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.3" }
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.3" }
system-deps = { version = "6", optional = true }
reqwest = { version = "0.12.4", features = ["blocking"], optional = true }
zip = { version = "2.0.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion tdlib-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use tdlib_rs_parser::tl::Definition;
#[allow(dead_code)]
#[cfg(not(any(feature = "docs", feature = "pkg-config")))]
/// The version of the TDLib library.
const TDLIB_VERSION: &str = "1.8.19";
const TDLIB_VERSION: &str = "1.8.29";

/// Load the type language definitions from a certain file.
/// Parse errors will be printed to `stderr`, and only the
Expand Down
2,882 changes: 2,273 additions & 609 deletions tdlib-rs/tl/api.tl

Large diffs are not rendered by default.

9,177 changes: 9,177 additions & 0 deletions tdlib-rs/tl/api_1.8.19.tl

Large diffs are not rendered by default.

0 comments on commit 9f9c395

Please sign in to comment.