Skip to content

Commit 42e9b41

Browse files
committed
update-wooridb-crates
1 parent e13f859 commit 42e9b41

File tree

8 files changed

+223
-179
lines changed

8 files changed

+223
-179
lines changed

Cargo.lock

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

woori-db/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ serde_derive = "1.0.121"
3232
rayon = "1.5"
3333
num_cpus = "1.13"
3434
log = "0.4"
35-
env_logger = "0.8.2"
35+
env_logger = "0.10"
3636
chrono = { version = "0.4.19", features = ["serde"] }
3737
futures = "0.3.12"
38-
ron = "0.6.4"
38+
ron = "0.8"
3939
wql = {path = "../wql"}
40-
cron = "0.7.0"
40+
cron = "0.12"
4141
glob = "0.3.0"
42-
zstd = "0.6.0+zstd.1.4.8"
43-
bcrypt = "0.8"
42+
zstd = "0.12.3+zstd.1.5.2"
43+
bcrypt = "0.14"
4444
actix-web-httpauth = "0.5.0"
4545
bincode = "1.3"
4646

4747
[dev-dependencies]
4848
bytes = "1.0.1"
49-
criterion = "0.3"
50-
rand = "0.7"
49+
criterion = "0.4"
50+
rand = "0.8"
5151

5252
# [[bench]]
5353
# name = "tx"

woori-db/src/actors/encrypts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ impl Handler<VerifyEncryption> for Executor {
169169

170170
fn pretty_config() -> PrettyConfig {
171171
PrettyConfig::new()
172-
.with_indentor("".to_string())
173-
.with_new_line("".to_string())
172+
.indentor("".to_string())
173+
.new_line("".to_string())
174174
}
175175

176176
#[cfg(test)]

woori-db/src/auth/controllers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub async fn create_user_controller(
5555
#[cfg(not(feature = "json"))]
5656
let credentials: Result<CreateUserWithAdmin, Error> = match from_str(&body) {
5757
Ok(x) => Ok(x),
58-
Err(e) => Err(Error::Ron(e)),
58+
Err(e) => Err(Error::Ron(e.into())),
5959
};
6060

6161
if let Ok(cred) = credentials {
@@ -117,7 +117,7 @@ pub async fn delete_users_controller(
117117
#[cfg(not(feature = "json"))]
118118
let credentials: Result<DeleteUsersWithAdmin, Error> = match from_str(&body) {
119119
Ok(x) => Ok(x),
120-
Err(e) => Err(Error::Ron(e)),
120+
Err(e) => Err(Error::Ron(e.into())),
121121
};
122122

123123
if let Ok(cred) = credentials {

woori-db/src/controllers/entity_history.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub async fn history_controller(
4545
#[cfg(feature = "json")]
4646
let info: EntityHistoryInfo = serde_json::from_str(&body)?;
4747
#[cfg(not(feature = "json"))]
48-
let info: EntityHistoryInfo = ron::de::from_str(&body)?;
48+
let info: EntityHistoryInfo = ron::de::from_str(&body).map_err(|e| Error::Ron(e.into()))?;
4949

5050
let registry = {
5151
let local_data = if let Ok(guard) = local_data.lock() {

woori-db/src/controllers/tx_test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ async fn test_update_content_post_ok() {
450450
read::assert_content(&uuid.unwrap().to_string());
451451
read::assert_content("|test_update|");
452452
read::assert_content("\"a\": Integer(135),");
453-
read::assert_content("\"b\": Float(11),");
454453
read::assert_content("\"c\": Char('d'),");
455454
read::assert_content("\"d\": Boolean(false),");
456455
read::assert_content("\"e\": Float(47.21)");

woori-db/src/core/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ pub(crate) mod wql;
1313

1414
pub fn pretty_config_output() -> PrettyConfig {
1515
PrettyConfig::new()
16-
.with_separate_tuple_members(true)
17-
.with_decimal_floats(true)
18-
.with_indentor(" ".to_string())
19-
.with_new_line("\n".to_string())
16+
.separate_tuple_members(true)
17+
.indentor(" ".to_string())
18+
.new_line("\n".to_string())
2019
}
2120

2221
pub fn pretty_config_inner() -> PrettyConfig {
2322
PrettyConfig::new()
24-
.with_indentor("".to_string())
25-
.with_new_line("".to_string())
23+
.indentor("".to_string())
24+
.new_line("".to_string())
2625
}
2726

2827
pub fn tx_time(content: &HashMap<String, Types>) -> Result<DateTime<Utc>, Error> {

woori-db/src/io/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ mod test {
284284
assert!(body.contains("\"uniq2_ent2\": {"));
285285
assert!(body.contains("\"rg\": {\"Precise"));
286286
assert!(body.contains("\"uniq_ent\": {"));
287-
assert!(body.contains("{\"cpf\": {\"Precise"));
287+
assert!(body.contains("\"cpf\": {\"Precise"));
288288
assert!(body.contains("\"snn\": {}}}"));
289289
}
290290
}

0 commit comments

Comments
 (0)