Skip to content

Commit 9912e53

Browse files
committed
chore: update dependencies
1 parent a97e351 commit 9912e53

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
[package]
22
name = "pastemp"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
66

77
[dependencies]
88
actix-multipart = "0.4.0"
9-
actix-web = "4.0.1"
9+
actix-web = "4.1.0"
1010
actix-web-codegen = { git = "https://github.com/ModProg/actix-web", branch = "advanced_route_macro" }
1111
actix-web-lab = "0.16.1"
12-
anyhow = "1.0.57"
13-
async-trait = "0.1.53"
14-
bonsaidb = { git = "https://github.com/khonsulabs/bonsaidb", features = ["local-full"] }
15-
bonsaidb-files = { git = "https://github.com/khonsulabs/bonsaidb", features = ["async"] }
12+
anyhow = "1.0.58"
13+
async-trait = "0.1.56"
14+
bonsaidb = { git = "https://github.com/khonsulabs/bonsaidb", features = ["local-full", "files", "async"] }
1615
derive_more = "0.99.17"
1716
env_logger = "0.9.0"
1817
futures = "0.3.21"
@@ -21,16 +20,16 @@ log = "0.4.17"
2120
rand = "0.8.5"
2221
serde = "1.0.137"
2322
thiserror = "1.0.31"
24-
tokio = { version = "1.18.1", features = ["full"] }
23+
tokio = { version = "1.19.2", features = ["full"] }
2524
url = { version = "2.2.2", features = ["serde"] }
2625
mime_guess = "2.0.4"
27-
serde_with = { version = "1.13.0", features = ["chrono"] }
26+
serde_with = { version = "1.14.0", features = ["chrono"] }
2827
syntect = "5.0.0"
2928
askama = { version = "0.11.1", features = ["with-actix-web"] }
3029
askama_actix = "0.13.0"
3130
chrono = { version = "0.4.19", features = ["serde"] }
3231
actix-utils = "3.0.0"
3332

3433
[dependencies.figment]
35-
version = "0.10.6"
36-
features = ["toml", "env"]
34+
version = "0.10.6"
35+
features = ["toml", "env"]

src/db.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use bonsaidb::{
22
core::schema::{self, Qualified},
3+
files::{
4+
direct::{self, Async},
5+
FileConfig, FilesSchema, Truncate,
6+
},
37
local::{config::Builder, AsyncDatabase},
48
};
5-
use bonsaidb_files::{
6-
direct::{self, Async},
7-
FileConfig, FilesSchema, Truncate,
8-
};
99
use chrono::{Duration, Utc};
1010
use rand::distributions::DistString;
1111
use serde::{Deserialize, Serialize};
@@ -100,7 +100,7 @@ impl DB {
100100
.await
101101
{
102102
Ok(file) => break file,
103-
Err(bonsaidb_files::Error::Database(
103+
Err(bonsaidb::files::Error::Database(
104104
bonsaidb::core::Error::UniqueKeyViolation { .. },
105105
)) if tries > 5 => {
106106
let mut file = Files::load_or_create_with_metadata_async(
@@ -114,7 +114,7 @@ impl DB {
114114
file.truncate(0, Truncate::RemovingStart).await?;
115115
break file;
116116
}
117-
Err(bonsaidb_files::Error::Database(
117+
Err(bonsaidb::files::Error::Database(
118118
bonsaidb::core::Error::UniqueKeyViolation { .. },
119119
)) => continue,
120120
Err(err) => return Err(err.into()),

0 commit comments

Comments
 (0)