1#![allow(missing_docs)]
18#![warn(rust_2018_idioms)]
19
20pub mod api;
22pub mod bot;
23pub mod error;
24pub mod handler;
25pub mod keyboard;
26pub mod models;
27pub mod utils;
28
29pub mod prelude {
31 pub use crate::bot::{VkBot, VkBotBuilder};
33
34 pub use crate::api::{VkApi, VkApiBuilder};
36
37 pub use crate::models::*;
39
40 pub use crate::keyboard::*;
42
43 pub use crate::handler::*;
45
46 pub use crate::error::*;
48
49 pub use crate::utils::*;
51}
52
53pub use api::VkApi;
55pub use bot::VkBot;
56pub use error::{VkError, VkResult};
57pub use handler::{DefaultMessageHandler, MessageHandler};
58
59#[macro_export]
61macro_rules! vk_log {
62 ($($arg:tt)*) => {
63 #[cfg(feature = "logging")]
64 log::info!($($arg)*);
65 };
66}
67
68#[macro_export]
70macro_rules! vk_error {
71 ($($arg:tt)*) => {
72 #[cfg(feature = "logging")]
73 log::error!($($arg)*);
74 };
75}
76
77#[macro_export]
79macro_rules! vk_warn {
80 ($($arg:tt)*) => {
81 #[cfg(feature = "logging")]
82 log::warn!($($arg)*);
83 };
84}