Wire local TDLib into iOS FFI build

This commit is contained in:
Mikhail Kilin
2026-05-21 15:27:59 +03:00
parent aec3678bd6
commit 217328505c
34 changed files with 24460 additions and 28 deletions

133
crates/vendor/tdlib-rs/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,133 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
name = "tdlib-rs"
version = "1.2.0"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"Andrea Longoni",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust wrapper around the Telegram Database Library."
homepage = "https://github.com/FedericoBruzzone/tdlib-rs"
documentation = "https://docs.rs/tdlib-rs"
readme = "README.md"
keywords = [
"telegram",
"tdlib",
"tdjson",
"tdlib-rs",
"telegram-api",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/FedericoBruzzone/tdlib-rs"
[package.metadata.docs.rs]
features = [
"docs",
"bots-only-api",
]
[package.metadata.system-deps]
tdjson = "1.8.29"
[features]
bots-only-api = []
default = []
docs = []
download-tdlib = [
"dep:reqwest",
"dep:zip",
]
local-tdlib = []
pkg-config = ["dep:system-deps"]
[lib]
name = "tdlib_rs"
path = "src/lib.rs"
[[example]]
name = "get_me"
path = "examples/get_me.rs"
[[example]]
name = "test_ci"
path = "examples/test_ci.rs"
[dependencies.dirs]
version = "6.0.0"
[dependencies.futures-channel]
version = "0.3"
[dependencies.log]
version = "0.4"
[dependencies.once_cell]
version = "1.18"
[dependencies.reqwest]
version = "0.12.4"
features = ["blocking"]
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_with]
version = "3.2"
[dependencies.system-deps]
version = "7"
optional = true
[dependencies.zip]
version = "2.0.0"
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"sync",
"time",
]
[build-dependencies.reqwest]
version = "0.12.4"
features = ["blocking"]
optional = true
[build-dependencies.system-deps]
version = "7"
optional = true
[build-dependencies.tdlib-rs-gen]
version = "1.2.0"
[build-dependencies.tdlib-rs-parser]
version = "1.2.0"
[build-dependencies.zip]
version = "2.0.0"
optional = true