mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-20 05:58:47 +01:00
This commit adds the feature "macros" which conditionally adds the teloxide-macros crate and reexports its macros. All (doc) tests using these macros are also conditionally enabled now. Also change examples accordingly. This commit solves https://github.com/teloxide/teloxide/issues/283
16 lines
No EOL
422 B
TOML
16 lines
No EOL
422 B
TOML
[package]
|
|
name = "admin_bot"
|
|
version = "0.1.0"
|
|
authors = ["p0lunin <dmytro.polunin@gmail.com>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
log = "0.4.8"
|
|
pretty_env_logger = "0.4.0"
|
|
tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] }
|
|
teloxide = { path = "../../", features = ["macros"] }
|
|
|
|
[profile.release]
|
|
lto = true |