mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Refactor Cargo.toml
s
This commit is contained in:
parent
c312523375
commit
dfb22450fc
4 changed files with 90 additions and 60 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -1,2 +1,14 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["crates/*"]
|
members = ["crates/*"]
|
||||||
|
|
||||||
|
|
||||||
|
# The settings below will be applied to all crates in the workspace
|
||||||
|
[workspace.package]
|
||||||
|
# MSRV (minimal supported Rust version).
|
||||||
|
# `1.64` is the version that stabilized `IntoFuture`.
|
||||||
|
rust-version = "1.64"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
license = "MIT"
|
||||||
|
homepage = "https://github.com/teloxide/teloxide"
|
||||||
|
repository = "https://github.com/teloxide/teloxide"
|
||||||
|
|
|
@ -1,64 +1,20 @@
|
||||||
[package]
|
[package]
|
||||||
name = "teloxide-core"
|
name = "teloxide-core"
|
||||||
description = "Core part of the `teloxide` library - telegram bot API client"
|
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
edition = "2021"
|
description = "Core part of the `teloxide` library - telegram bot API client"
|
||||||
|
|
||||||
|
rust-version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
license = "MIT"
|
|
||||||
repository = "https://github.com/teloxide/teloxide-core/"
|
|
||||||
homepage = "https://github.com/teloxide/teloxide-core/"
|
|
||||||
documentation = "https://docs.rs/teloxide-core/"
|
documentation = "https://docs.rs/teloxide-core/"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
keywords = ["telegram", "bot", "tba"]
|
keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api", "bot", "TBA"]
|
||||||
categories = ["api-bindings", "asynchronous"]
|
categories = ["api-bindings", "asynchronous"]
|
||||||
|
|
||||||
exclude = [
|
|
||||||
".github/*",
|
|
||||||
"netlify.toml",
|
|
||||||
]
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
futures = "0.3.5"
|
|
||||||
tokio = { version = "1.12.0", features = ["fs"] }
|
|
||||||
tokio-util = { version = "0.7.0", features = ["codec"] }
|
|
||||||
pin-project = "1.0.12"
|
|
||||||
bytes = "1.0.0"
|
|
||||||
reqwest = { version = "0.11.10", features = ["json", "stream", "multipart"], default-features = false }
|
|
||||||
url = { version = "2", features = ["serde"] }
|
|
||||||
log = "0.4"
|
|
||||||
|
|
||||||
serde = { version = "1.0.114", features = ["derive"] }
|
|
||||||
serde_json = "1.0.55"
|
|
||||||
serde_with_macros = "1.5.2"
|
|
||||||
uuid = { version = "1.1.0", features = ["v4"] } # for attaching input files
|
|
||||||
|
|
||||||
derive_more = "0.99.9"
|
|
||||||
mime = "0.3.16"
|
|
||||||
thiserror = "1.0.20"
|
|
||||||
once_cell = "1.5.0"
|
|
||||||
takecell = "0.1"
|
|
||||||
take_mut = "0.2"
|
|
||||||
rc-box = "1.1.1"
|
|
||||||
never = "0.1.0"
|
|
||||||
chrono = { version = "0.4.19", default-features = false }
|
|
||||||
either = "1.6.1"
|
|
||||||
bitflags = { version = "1.2" }
|
|
||||||
|
|
||||||
vecrem = { version = "0.1", optional = true }
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
pretty_env_logger = "0.4"
|
|
||||||
tokio = { version = "1.8.0", features = ["fs", "macros", "macros", "rt-multi-thread"] }
|
|
||||||
cool_asserts = "2.0.3"
|
|
||||||
|
|
||||||
xshell = "0.2"
|
|
||||||
ron = "0.7"
|
|
||||||
indexmap = { version = "1.9", features = ["serde-1"] }
|
|
||||||
aho-corasick = "0.7"
|
|
||||||
itertools = "0.10"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["native-tls"]
|
default = ["native-tls"]
|
||||||
|
@ -90,6 +46,49 @@ auto_send = []
|
||||||
# All features except nightly and tls-related
|
# All features except nightly and tls-related
|
||||||
full = ["throttle", "trace_adaptor", "erased", "cache_me", "auto_send"]
|
full = ["throttle", "trace_adaptor", "erased", "cache_me", "auto_send"]
|
||||||
|
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
futures = "0.3.5"
|
||||||
|
tokio = { version = "1.12.0", features = ["fs"] }
|
||||||
|
tokio-util = { version = "0.7.0", features = ["codec"] }
|
||||||
|
pin-project = "1.0.12"
|
||||||
|
bytes = "1.0.0"
|
||||||
|
reqwest = { version = "0.11.10", features = ["json", "stream", "multipart"], default-features = false }
|
||||||
|
url = { version = "2", features = ["serde"] }
|
||||||
|
log = "0.4"
|
||||||
|
|
||||||
|
serde = { version = "1.0.114", features = ["derive"] }
|
||||||
|
serde_json = "1.0.55"
|
||||||
|
serde_with_macros = "1.5.2"
|
||||||
|
uuid = { version = "1.1.0", features = ["v4"] } # for attaching input files
|
||||||
|
|
||||||
|
derive_more = "0.99.9"
|
||||||
|
mime = "0.3.16"
|
||||||
|
thiserror = "1.0.20"
|
||||||
|
once_cell = "1.5.0"
|
||||||
|
takecell = "0.1"
|
||||||
|
take_mut = "0.2"
|
||||||
|
rc-box = "1.1.1"
|
||||||
|
never = "0.1.0"
|
||||||
|
chrono = { version = "0.4.19", default-features = false }
|
||||||
|
either = "1.6.1"
|
||||||
|
bitflags = { version = "1.2" }
|
||||||
|
|
||||||
|
vecrem = { version = "0.1", optional = true }
|
||||||
|
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
pretty_env_logger = "0.4"
|
||||||
|
tokio = { version = "1.8.0", features = ["fs", "macros", "macros", "rt-multi-thread"] }
|
||||||
|
cool_asserts = "2.0.3"
|
||||||
|
|
||||||
|
xshell = "0.2"
|
||||||
|
ron = "0.7"
|
||||||
|
indexmap = { version = "1.9", features = ["serde-1"] }
|
||||||
|
aho-corasick = "0.7"
|
||||||
|
itertools = "0.10"
|
||||||
|
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["full", "nightly", "tokio/macros", "tokio/rt-multi-thread"]
|
features = ["full", "nightly", "tokio/macros", "tokio/rt-multi-thread"]
|
||||||
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
||||||
|
@ -97,6 +96,7 @@ rustdoc-args = ["--cfg", "docsrs", "-Znormalize-docs"]
|
||||||
# https://github.com/rust-lang/rust/issues/88791
|
# https://github.com/rust-lang/rust/issues/88791
|
||||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
||||||
|
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "self_info"
|
name = "self_info"
|
||||||
required-features = ["tokio/macros", "tokio/rt-multi-thread"]
|
required-features = ["tokio/macros", "tokio/rt-multi-thread"]
|
||||||
|
|
|
@ -2,14 +2,22 @@
|
||||||
name = "teloxide-macros"
|
name = "teloxide-macros"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
description = "The teloxide's procedural macros"
|
description = "The teloxide's procedural macros"
|
||||||
license = "MIT"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
rust-version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
|
documentation = "https://docs.rs/teloxide-core/"
|
||||||
|
# FIXME: add a simple readme for teloxide-macros
|
||||||
|
#readme = "README.md"
|
||||||
|
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
quote = "1.0.7"
|
quote = "1.0.7"
|
||||||
proc-macro2 = "1.0.19"
|
proc-macro2 = "1.0.19"
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
[package]
|
[package]
|
||||||
name = "teloxide"
|
name = "teloxide"
|
||||||
version = "0.11.3"
|
version = "0.11.3"
|
||||||
edition = "2021"
|
|
||||||
description = "An elegant Telegram bots framework for Rust"
|
description = "An elegant Telegram bots framework for Rust"
|
||||||
repository = "https://github.com/teloxide/teloxide"
|
|
||||||
|
rust-version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
|
||||||
documentation = "https://docs.rs/teloxide/"
|
documentation = "https://docs.rs/teloxide/"
|
||||||
readme = "../../README.md"
|
readme = "../../README.md"
|
||||||
keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api"]
|
|
||||||
|
keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api", "bot", "TBA"]
|
||||||
categories = ["web-programming", "api-bindings", "asynchronous"]
|
categories = ["web-programming", "api-bindings", "asynchronous"]
|
||||||
license = "MIT"
|
|
||||||
exclude = ["media", "README.md"]
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send"]
|
default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send"]
|
||||||
|
@ -56,6 +61,7 @@ full = [
|
||||||
"erased",
|
"erased",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
teloxide-core = { version = "0.8.0", default-features = false }
|
teloxide-core = { version = "0.8.0", default-features = false }
|
||||||
teloxide-macros = { version = "0.7.0", optional = true }
|
teloxide-macros = { version = "0.7.0", optional = true }
|
||||||
|
@ -99,6 +105,7 @@ tower = { version = "0.4.12", optional = true }
|
||||||
tower-http = { version = "0.3.4", features = ["trace"], optional = true }
|
tower-http = { version = "0.3.4", features = ["trace"], optional = true }
|
||||||
rand = { version = "0.8.5", optional = true }
|
rand = { version = "0.8.5", optional = true }
|
||||||
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand = "0.8.3"
|
rand = "0.8.3"
|
||||||
pretty_env_logger = "0.4.0"
|
pretty_env_logger = "0.4.0"
|
||||||
|
@ -109,6 +116,7 @@ reqwest = "0.11.11"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
tokio-stream = "0.1"
|
tokio-stream = "0.1"
|
||||||
|
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
# FIXME: Add back "-Znormalize-docs" when https://github.com/rust-lang/rust/issues/93703 is fixed
|
# FIXME: Add back "-Znormalize-docs" when https://github.com/rust-lang/rust/issues/93703 is fixed
|
||||||
|
@ -116,6 +124,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||||
rustc-args = ["--cfg", "dep_docsrs"]
|
rustc-args = ["--cfg", "dep_docsrs"]
|
||||||
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
|
||||||
|
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "redis"
|
name = "redis"
|
||||||
path = "tests/redis.rs"
|
path = "tests/redis.rs"
|
||||||
|
@ -126,6 +135,7 @@ name = "sqlite"
|
||||||
path = "tests/sqlite.rs"
|
path = "tests/sqlite.rs"
|
||||||
required-features = ["sqlite-storage", "cbor-serializer", "bincode-serializer"]
|
required-features = ["sqlite-storage", "cbor-serializer", "bincode-serializer"]
|
||||||
|
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "dialogue"
|
name = "dialogue"
|
||||||
required-features = ["macros"]
|
required-features = ["macros"]
|
||||||
|
|
Loading…
Reference in a new issue