mrsbfh

Matrix-Rust-SDK-Bot-Framework-Helper
git clone git://archive.git.mtrnord.blog/MTRNord/mrsbfh.git
Log | Files | Refs | README

commit 0a06e7853fae28db0b341b0ff225dda4b3e1674d
parent bedbc899e03c7fdff941afc82361f413b188b615
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 23 Feb 2022 15:55:04 +0100

Update dependencies

Diffstat:
Mexample-bot/Cargo.toml | 11+++++------
Mexample-bot/src/main.rs | 4++--
Mmrsbfh-macros/Cargo.toml | 2+-
Mmrsbfh/Cargo.toml | 8++++----
Mmrsbfh/src/lib.rs | 5++++-
5 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/example-bot/Cargo.toml b/example-bot/Cargo.toml @@ -23,11 +23,10 @@ version = "0.4.1" mrsbfh = {version = "0.3.0", path = "../mrsbfh"} serde = "1.0" tracing = "0.1" -tracing-subscriber = "0.3.1" -tracing-futures = "0.2.4" +tracing-subscriber = "0.3.9" +tracing-futures = "0.2.5" tokio = { version = "1", features = ["rt", "rt-multi-thread", "sync", "macros"] } -clap = "=3.0.0-beta.2" -clap_derive = "=3.0.0-beta.2" -async-trait = "0.1.41" +clap = { version = "3.1.1", features = ["derive"] } +async-trait = "0.1.52" thiserror = "1.0" -regex = "1.4.3" +regex = "1.5.4" diff --git a/example-bot/src/main.rs b/example-bot/src/main.rs @@ -1,5 +1,5 @@ use crate::config::Config; -use clap::Clap; +use clap::Parser; use mrsbfh::config::Loader; use std::error::Error; use tracing::*; @@ -9,7 +9,7 @@ mod config; mod errors; mod matrix; -#[derive(Clap)] +#[derive(Parser, Debug)] #[clap(version = "0.1.0", author = "MTRNord")] struct Opts { #[clap(short, long, default_value = "config.yml")] diff --git a/mrsbfh-macros/Cargo.toml b/mrsbfh-macros/Cargo.toml @@ -15,5 +15,5 @@ proc-macro = true [dependencies] syn = { version= "1.0", features = ["full"] } quote = "1.0" -convert_case = "0.4.0" +convert_case = "0.5.0" proc-macro2 = "1.0" diff --git a/mrsbfh/Cargo.toml b/mrsbfh/Cargo.toml @@ -15,7 +15,7 @@ version = "0.4.1" default_features = false [dependencies] -url = "2.2.1" +url = "2.2.2" thiserror = "1.0" @@ -29,14 +29,14 @@ serde = "1.0" serde_yaml = "0.8" serde_json = "1" -pulldown-cmark = "0.8.0" # For generating the help text +pulldown-cmark = {version = "0.9.1", optional = true} # For generating the help text -regex = "1.4" +regex = "1.5" async-trait = "0.1" lazy_static = "1" [features] default = ["macros", "native-tls"] -macros = ["mrsbfh-macros"] +macros = ["mrsbfh-macros", "pulldown-cmark"] rustls = ["matrix-sdk/rustls-tls"] native-tls = ["matrix-sdk/native-tls"] diff --git a/mrsbfh/src/lib.rs b/mrsbfh/src/lib.rs @@ -75,8 +75,10 @@ impl MatrixMessageExt for Sender { } } -pub use pulldown_cmark; pub use serde_yaml; pub use tokio; pub use tracing; pub use url; + +#[cfg(feature = "macros")] +pub use pulldown_cmark; +\ No newline at end of file