Skip to content

Commit bc92cb5

Browse files
authored
Merge pull request #61 from deltachat-bot/simon/rust-core-132.1
rust: upgrade core to 1.132.1
2 parents 3f2fd66 + b7ea03e commit bc92cb5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An echo bot in multiple languages to get you started.
1111
| [node.js over cffi](./nodejs_cffi) | `1.132.1` |
1212
| [node.js over jsonrpc](./nodejs_napi_jsonrpc) (unmaintained) | `1.101.0` |
1313
| [Python](./python) | `1.94.0` |
14-
| [Rust](./rust) | `1.101.0` |
14+
| [Rust](./rust) | `1.132.1` |
1515

1616
### With abstraction layer / bot framework:
1717

rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["DeltaChatBot Contributers<https://github.com/deltachat-bot>"]
55
edition = "2021"
66

77
[dependencies]
8-
anyhow = "1.0.66"
9-
deltachat = { git = "https://github.com/deltachat/deltachat-core-rust", tag="1.101.0"}
10-
tokio = { version = "1.21.2", features = ["rt-multi-thread", "macros", "signal"] }
8+
anyhow = "1.0.79"
9+
deltachat = { git = "https://github.com/deltachat/deltachat-core-rust", tag="v1.132.1"}
10+
tokio = { version = "1.35.1", features = ["rt-multi-thread", "macros", "signal"] }

rust/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async fn main() -> anyhow::Result<()> {
9595
std::fs::create_dir_all(dbdir.clone()).context("failed to create data folder")?;
9696
let dbfile = dbdir.join("db.sqlite");
9797
println!("creating database {:?}", dbfile);
98-
let ctx = ContextBuilder::new(dbfile)
98+
let mut ctx = ContextBuilder::new(dbfile)
9999
.open()
100100
.await
101101
.context("Failed to create context")?;
@@ -214,7 +214,7 @@ async fn handle_message(ctx: &Context, chat_id: ChatId, msg_id: MsgId) -> Result
214214

215215
println!(
216216
"received message '{}' in chat with type {:?}",
217-
msg.get_text().unwrap_or_default(),
217+
msg.get_text(),
218218
chat.get_type()
219219
);
220220

0 commit comments

Comments
 (0)