Skip to content

Commit 26612ba

Browse files
Merge pull request #229 from theseus-rs/remove-num-format
chore: remove num-format dependency
2 parents 3f9ff1a + 95d8eb9 commit 26612ba

File tree

9 files changed

+140
-185
lines changed

9 files changed

+140
-185
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,22 @@ rust-version = "1.92.0"
2525
version = "0.20.1"
2626

2727
[workspace.dependencies]
28-
anyhow = "1.0.101"
28+
anyhow = "1.0.102"
2929
async-trait = "0.1.89"
3030
axum = "0.8.8"
3131
criterion = "0.8.2"
3232
diesel = "2.3.6"
3333
diesel_migrations = "2.3.1"
3434
flate2 = "1.1.9"
35-
futures-util = "0.3.31"
35+
futures-util = "0.3.32"
3636
hex = "0.4.3"
37-
indicatif = "0.18.3"
37+
indicatif = "0.18.4"
3838
indoc = "2.0.7"
39-
liblzma = "0.4.5"
39+
liblzma = "0.4.6"
4040
md-5 = "0.10.6"
41-
num-format = "0.4.4"
4241
pgvector = "0.4.1"
4342
postgres = "0.19.12"
44-
quick-xml = "0.39.0"
43+
quick-xml = "0.39.2"
4544
r2d2_postgres = "0.18.2"
4645
rand = "0.10.0"
4746
regex-lite = "0.1.9"
@@ -57,15 +56,15 @@ sha2 = "0.10.9"
5756
sqlx = { version = "0.8.6", default-features = false, features = ["postgres"] }
5857
tar = "0.4.44"
5958
target-triple = "1.0.0"
60-
tempfile = "3.24.0"
59+
tempfile = "3.25.0"
6160
test-log = "0.2.19"
6261
thiserror = "2.0.18"
6362
tokio = "1.49.0"
6463
tracing = "0.1.44"
6564
tracing-indicatif = "0.3.14"
6665
tracing-subscriber = "0.3.22"
6766
url = "2.5.8"
68-
zip = { version = "7.4.0", default-features = false, features = ["deflate"] }
67+
zip = { version = "8.1.0", default-features = false, features = ["deflate"] }
6968

7069
[workspace.lints.rust]
7170
dead_code = "allow"

examples/diesel_embedded/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ version.workspace = true
99
diesel = { workspace = true, features = ["postgres", "r2d2"] }
1010
diesel_migrations = { workspace = true, features = ["postgres"] }
1111
postgresql_embedded = { path = "../../postgresql_embedded" }
12-
r2d2_postgres = { workspace = true }
1312
tokio = { workspace = true, features = ["full"] }

examples/download_progress_bar/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ version.workspace = true
99
anyhow = { workspace = true }
1010
indicatif = { workspace = true }
1111
postgresql_embedded = { path = "../../postgresql_embedded", features = ["indicatif"] }
12-
postgresql_extensions = { path = "../../postgresql_extensions" }
13-
tracing = { workspace = true }
1412
tracing-indicatif = { workspace = true }
1513
tracing-subscriber = { workspace = true }
1614
tokio = { workspace = true, features = ["full"] }

postgresql_archive/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ futures-util = { workspace = true }
1717
hex = { workspace = true }
1818
liblzma = { workspace = true, optional = true }
1919
md-5 = { workspace = true, optional = true }
20-
num-format = { workspace = true }
2120
quick-xml = { workspace = true, features = ["serialize"], optional = true }
2221
regex-lite = { workspace = true }
2322
reqwest = { workspace = true, default-features = false, features = ["http2", "json", "query", "stream"] }
@@ -98,3 +97,9 @@ targets = ["x86_64-unknown-linux-gnu"]
9897
[[bench]]
9998
harness = false
10099
name = "archive"
100+
101+
[package.metadata.cargo-machete]
102+
ignored = [
103+
"md-5",
104+
"serde_json",
105+
]

postgresql_archive/src/extractor/tar_gz_extractor.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::Error::Unexpected;
22
use crate::Result;
33
use crate::extractor::ExtractDirectories;
44
use flate2::bufread::GzDecoder;
5-
use num_format::{Locale, ToFormattedString};
65
use std::fs::{File, create_dir_all};
76
use std::io::{BufReader, Cursor, copy};
87
use std::path::PathBuf;
@@ -69,11 +68,7 @@ pub fn extract(bytes: &Vec<u8>, extract_directories: &ExtractDirectories) -> Res
6968
}
7069

7170
let number_of_files = files.len();
72-
debug!(
73-
"Extracted {} files totalling {}",
74-
number_of_files.to_formatted_string(&Locale::en),
75-
extracted_bytes,
76-
);
71+
debug!("Extracted {number_of_files} files totalling {extracted_bytes}");
7772

7873
Ok(files)
7974
}

postgresql_archive/src/extractor/tar_xz_extractor.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::Error::Unexpected;
22
use crate::Result;
33
use crate::extractor::ExtractDirectories;
44
use liblzma::bufread::XzDecoder;
5-
use num_format::{Locale, ToFormattedString};
65
use std::fs::{File, create_dir_all};
76
use std::io::{BufReader, Cursor, copy};
87
use std::path::PathBuf;
@@ -71,11 +70,7 @@ pub fn extract(bytes: &Vec<u8>, extract_directories: &ExtractDirectories) -> Res
7170
}
7271

7372
let number_of_files = files.len();
74-
debug!(
75-
"Extracted {} files totalling {}",
76-
number_of_files.to_formatted_string(&Locale::en),
77-
extracted_bytes,
78-
);
73+
debug!("Extracted {number_of_files} files totalling {extracted_bytes}");
7974

8075
Ok(files)
8176
}

postgresql_archive/src/extractor/zip_extractor.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::Result;
22
use crate::extractor::ExtractDirectories;
3-
use num_format::{Locale, ToFormattedString};
43
use std::fs::create_dir_all;
54
use std::io::Cursor;
65
use std::path::PathBuf;
@@ -39,11 +38,7 @@ pub fn extract(bytes: &Vec<u8>, extract_directories: &ExtractDirectories) -> Res
3938
}
4039

4140
let number_of_files = files.len();
42-
debug!(
43-
"Extracted {} files totalling {}",
44-
number_of_files.to_formatted_string(&Locale::en),
45-
extracted_bytes,
46-
);
41+
debug!("Extracted {number_of_files} files totalling {extracted_bytes}");
4742

4843
Ok(files)
4944
}

postgresql_extensions/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ rustls = [
6767
"postgresql_archive/rustls",
6868
"reqwest/rustls",
6969
]
70+
71+
[package.metadata.cargo-machete]
72+
ignored = ["reqwest"]

0 commit comments

Comments
 (0)