Lines of
src/main.rs
from check-in 0340541002
that are changed by the sequence of edits moving toward
check-in bb89b6fab8:
1: //! This is telegram bot to fetch RSS/ATOM feeds and post results on public
2: //! channels
3:
4: #![warn(missing_docs)]
5:
6: mod command;
7: mod core;
8: mod sql;
9:
10: use anyhow::Result;
11:
12: #[async_std::main]
13: async fn main() -> Result<()> {
14: let settings = config::Config::builder()
15: .add_source(config::File::with_name("rsstg"))
16: .build()?;
17:
0340541002 2025-04-24 18: let mut core = core::Core::new(settings).await?;
19:
0340541002 2025-04-24 20: core.stream().await?;
21:
22: Ok(())
23: }