Skip to content

Commit

Permalink
Add all serde to all crates that depended on tl_types.
Browse files Browse the repository at this point in the history
  • Loading branch information
RuofengX committed Oct 18, 2024
1 parent 8cbf8b1 commit 7f2ba9e
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 72 deletions.
68 changes: 35 additions & 33 deletions lib/grammers-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,55 +1,57 @@
[package]
name = "grammers-client"
version = "0.7.0"
authors = ["Lonami Exo <totufals@hotmail.com>"]
license = "MIT OR Apache-2.0"
categories = ["api-bindings"]
description = """
A high level client to interact with Telegram's API.
"""
homepage = "https://github.com/Lonami/grammers"
documentation = "https://docs.rs/grammers-client"
repository = "https://github.com/Lonami/grammers"
keywords = ["mtproto", "telegram", "tl"]
categories = ["api-bindings"]
edition = "2021"
homepage = "https://github.com/Lonami/grammers"
keywords = ["mtproto", "telegram", "tl"]
license = "MIT OR Apache-2.0"
name = "grammers-client"
repository = "https://github.com/Lonami/grammers"
version = "0.7.0"

[features]
markdown = ["pulldown-cmark"]
html = ["html5ever"]
proxy = ["grammers-mtsender/proxy"]
markdown = ["pulldown-cmark"]
parse_invite_link = ["url"]
proxy = ["grammers-mtsender/proxy"]

[dependencies]
chrono = "0.4.38"
futures-util = { version = "0.3.30", default-features = false, features = [
"alloc"
] }
grammers-crypto = { path = "../grammers-crypto", version = "0.7.0" }
grammers-mtproto = { path = "../grammers-mtproto", version = "0.7.0" }
grammers-mtsender = { path = "../grammers-mtsender", version = "0.7.0" }
grammers-session = { path = "../grammers-session", version = "0.7.0" }
grammers-tl-types = { path = "../grammers-tl-types", version = "0.7.0", features = [
"tl-mtproto",
] }
html5ever = { version = "0.29.0", optional = true }
futures-util = {version = "0.3.30", default-features = false, features = [
"alloc",
]}
grammers-crypto = {path = "../grammers-crypto", version = "0.7.0"}
grammers-mtproto = {path = "../grammers-mtproto", version = "0.7.0"}
grammers-mtsender = {path = "../grammers-mtsender", version = "0.7.0"}
grammers-session = {path = "../grammers-session", version = "0.7.0"}
grammers-tl-types = {path = "../grammers-tl-types", version = "0.7.0", features = [
"tl-mtproto",
]}
html5ever = {version = "0.29.0", optional = true}
locate-locale = "0.2.0"
log = "0.4.22"
md5 = "0.7.0"
mime_guess = "2.0.5"
os_info = { version = "3.8.2", default-features = false }
os_info = {version = "3.8.2", default-features = false}
pin-project-lite = "0.2"
pulldown-cmark = { version = "0.12.1", default-features = false, optional = true }
tokio = { version = "1.40.0", default-features = false, features = [
"fs",
"rt",
] }
url = { version = "2.5.2", optional = true }
pulldown-cmark = {version = "0.12.1", default-features = false, optional = true}
serde = "1.0.210"
serde_derive = "1.0.210"
tokio = {version = "1.40.0", default-features = false, features = [
"fs",
"rt",
]}
url = {version = "2.5.2", optional = true}

[dev-dependencies]
tokio = { version = "1.40.0", default-features = false, features = [
"signal",
] }
simple_logger = { version = "5.0.0", default-features = false, features = [
"colors",
] }
simple_logger = {version = "5.0.0", default-features = false, features = [
"colors",
]}
tokio = {version = "1.40.0", default-features = false, features = [
"signal",
]}
toml = "0.8.19"
8 changes: 8 additions & 0 deletions lib/grammers-client/DEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,11 @@ Provides useful functions for working with futures/tasks.
## url

Used to parse certain URLs to offer features such as joining private chats via their invite link.

## serde

Support serde ecosystem.

## serde_derive

Macros that auto generate serde code.
20 changes: 11 additions & 9 deletions lib/grammers-mtproto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
[package]
name = "grammers-mtproto"
version = "0.7.0"
authors = ["Lonami Exo <totufals@hotmail.com>"]
license = "MIT OR Apache-2.0"
categories = ["network-programming"]
description = """
An implementation of the Mobile Transport Protocol.
"""
homepage = "https://github.com/Lonami/grammers"
documentation = "https://docs.rs/grammers-mtproto"
repository = "https://github.com/Lonami/grammers"
keywords = ["mtproto", "telegram", "tl"]
categories = ["network-programming"]
edition = "2021"
homepage = "https://github.com/Lonami/grammers"
keywords = ["mtproto", "telegram", "tl"]
license = "MIT OR Apache-2.0"
name = "grammers-mtproto"
repository = "https://github.com/Lonami/grammers"
version = "0.7.0"

[dependencies]
bytes = "1.7.1"
crc32fast = "1.4.2"
flate2 = "1.0.33"
getrandom = "0.2.15"
grammers-crypto = { path = "../grammers-crypto", version = "0.7.0" }
grammers-tl-types = { path = "../grammers-tl-types", version = "0.7.0", features = ["tl-mtproto"] }
grammers-crypto = {path = "../grammers-crypto", version = "0.7.0"}
grammers-tl-types = {path = "../grammers-tl-types", version = "0.7.0", features = ["tl-mtproto"]}
log = "0.4.22"
num-bigint = "0.4.6"
serde = "1.0.210"
serde_derive = "1.0.210"
sha1 = "0.10.6"

[dev-dependencies]
Expand Down
8 changes: 8 additions & 0 deletions lib/grammers-mtproto/DEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ Used to test that this file lists all dependencies from `Cargo.toml`.
## log

Used to help debug what's going on at the MTP level (such as when future salts are asked for).

## serde

Support serde ecosystem.

## serde_derive

Macros that auto generate serde code.
40 changes: 21 additions & 19 deletions lib/grammers-mtsender/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
[package]
name = "grammers-mtsender"
version = "0.7.0"
authors = ["Lonami Exo <totufals@hotmail.com>"]
license = "MIT OR Apache-2.0"
categories = ["api-bindings", "network-programming"]
description = """
A sender implementation using the Mobile Transport Protocol.
"""
homepage = "https://github.com/Lonami/grammers"
documentation = "https://docs.rs/grammers-mtsender"
repository = "https://github.com/Lonami/grammers"
keywords = ["api", "mtproto", "telegram", "tl"]
categories = ["api-bindings", "network-programming"]
edition = "2021"
homepage = "https://github.com/Lonami/grammers"
keywords = ["api", "mtproto", "telegram", "tl"]
license = "MIT OR Apache-2.0"
name = "grammers-mtsender"
repository = "https://github.com/Lonami/grammers"
version = "0.7.0"

[features]
proxy = ["tokio-socks", "trust-dns-resolver", "url"]

[dependencies]
bytes = "1.7.1"
futures-util = { version = "0.3.30", default-features = false, features = [
"alloc"
] }
grammers-crypto = { path = "../grammers-crypto", version = "0.7.0" }
grammers-mtproto = { path = "../grammers-mtproto", version = "0.7.0" }
grammers-tl-types = { path = "../grammers-tl-types", version = "0.7.0", features = [ "tl-mtproto" ] }
futures-util = {version = "0.3.30", default-features = false, features = [
"alloc",
]}
grammers-crypto = {path = "../grammers-crypto", version = "0.7.0"}
grammers-mtproto = {path = "../grammers-mtproto", version = "0.7.0"}
grammers-tl-types = {path = "../grammers-tl-types", version = "0.7.0", features = ["tl-mtproto"]}
log = "0.4.22"
tokio = { version = "1.40.0", default-features = false, features = ["net", "io-util", "sync", "time"] }
tokio-socks = { version = "0.5.2", optional = true }
trust-dns-resolver = { version = "0.23.2", optional = true }
url = { version = "2.5.2", optional = true }
serde = "1.0.210"
serde_derive = "1.0.210"
tokio = {version = "1.40.0", default-features = false, features = ["net", "io-util", "sync", "time"]}
tokio-socks = {version = "0.5.2", optional = true}
trust-dns-resolver = {version = "0.23.2", optional = true}
url = {version = "2.5.2", optional = true}

[dev-dependencies]
simple_logger = { version = "5.0.0", default-features = false, features = ["colors"] }
tokio = { version = "1.40.0", features = ["rt"] }
simple_logger = {version = "5.0.0", default-features = false, features = ["colors"]}
tokio = {version = "1.40.0", features = ["rt"]}
toml = "0.8.19"
8 changes: 8 additions & 0 deletions lib/grammers-mtsender/DEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,11 @@ Provides useful functions for working with futures/tasks.
## tokio-socks

SOCKS5 proxy support.

## serde

Support serde ecosystem.

## serde_derive

Macros that auto generate serde code.
22 changes: 11 additions & 11 deletions lib/grammers-session/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
[package]
name = "grammers-session"
version = "0.7.0"
authors = ["Lonami Exo <totufals@hotmail.com>"]
license = "MIT OR Apache-2.0"
categories = []
description = """
Different session storages for Telegram data.
"""
homepage = "https://github.com/Lonami/grammers"
documentation = "https://docs.rs/grammers-session"
repository = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
categories = []
edition = "2021"
homepage = "https://github.com/Lonami/grammers"
keywords = ["telegram", "tl"]
license = "MIT OR Apache-2.0"
name = "grammers-session"
repository = "https://github.com/Lonami/grammers"
version = "0.7.0"

[dependencies]
grammers-tl-types = { path = "../grammers-tl-types", version = "0.7.0" }
grammers-crypto = { path = "../grammers-crypto", version = "0.7.0" }
grammers-crypto = {path = "../grammers-crypto", version = "0.7.0"}
grammers-tl-types = {path = "../grammers-tl-types", version = "0.7.0"}
log = "0.4.22"
serde = "1.0.210"
serde_derive = "1.0.210"

[build-dependencies]
grammers-tl-gen = { path = "../grammers-tl-gen", version = "0.7.0" }
grammers-tl-parser = { path = "../grammers-tl-parser", version = "1.1.2" }
grammers-tl-gen = {path = "../grammers-tl-gen", version = "0.7.0"}
grammers-tl-parser = {path = "../grammers-tl-parser", version = "1.1.2"}

[dev-dependencies]
toml = "0.8.19"

0 comments on commit 7f2ba9e

Please sign in to comment.