History

update `faster-hex` crate to latest version

Sebastian Thiel committed 2 years ago

Commit b0bfd011 parent 97f62cb7 files · +19 −9Browse files

Unified · Split

7 files
  1. Cargo.lock +13 −4
  2. Cargo.toml +1 −0
  3. gix-hash/Cargo.toml +1 −1
  4. gix-hash/src/object_id.rs +1 −1
  5. gix-hash/src/prefix.rs +1 −1
  6. gix-packetline-blocking/Cargo.toml +1 −1
  7. gix-packetline/Cargo.toml +1 −1
Cargo.lock+13−4
@@ -997,6 +997,15 @@ dependencies = [ · 996 unmodified lines
997997 "serde",
998998 ]
999999
1000+[[package]]
1001+name = "faster-hex"
1002+version = "0.9.0"
1003+source = "registry+https://github.com/rust-lang/crates.io-index"
1004+checksum = "a2a2b11eda1d40935b26cf18f6833c526845ae8c41e58d09af6adeb6f0269183"
1005+dependencies = [
1006+ "serde",
1007+]
1008+
10001009 [[package]]
10011010 name = "fastrand"
10021011 version = "1.9.0"
@@ -1817,7 +1826,7 @@ name = "gix-hash" · 814 unmodified lines
18171826 version = "0.13.2"
18181827 dependencies = [
18191828 "document-features",
1820− "faster-hex",
1829+ "faster-hex 0.9.0",
18211830 "gix-features 0.36.1",
18221831 "gix-testtools",
18231832 "serde",
@@ -1830,7 +1839,7 @@ version = "0.13.2" · 6 unmodified lines
18301839 source = "registry+https://github.com/rust-lang/crates.io-index"
18311840 checksum = "99c1e554a87759e672c7d2e37211e761aa390c61ffcd3753a57c51173143f3cb"
18321841 dependencies = [
1833− "faster-hex",
1842+ "faster-hex 0.8.1",
18341843 "thiserror",
18351844 ]
18361845
@@ -2133,7 +2142,7 @@ dependencies = [ · 296 unmodified lines
21332142 "async-std",
21342143 "bstr",
21352144 "document-features",
2136− "faster-hex",
2145+ "faster-hex 0.9.0",
21372146 "futures-io",
21382147 "futures-lite 2.1.0",
21392148 "gix-hash 0.13.2",
@@ -2152,7 +2161,7 @@ version = "0.17.0" · 12 unmodified lines
21522161 dependencies = [
21532162 "bstr",
21542163 "document-features",
2155− "faster-hex",
2164+ "faster-hex 0.9.0",
21562165 "gix-trace 0.1.4",
21572166 "serde",
21582167 "thiserror",
Cargo.toml+1−0
@@ -300,6 +300,7 @@ members = [ · 299 unmodified lines
300300 [workspace.dependencies]
301301 prodash = { version = "27.0.0", default-features = false }
302302 futures-lite = { version = "2.1.0", default-features = false, features = ["std"] }
303+faster-hex = { version = "0.9.0" }
303304
304305 [package.metadata.docs.rs]
305306 features = ["document-features", "max"]
gix-hash/Cargo.toml+1−1
@@ -19,7 +19,7 @@ serde= ["dep:serde"] · 18 unmodified lines
1919
2020 [dependencies]
2121 thiserror = "1.0.33"
22−faster-hex = "0.8.0"
22+faster-hex = { workspace = true }
2323 serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
2424
2525 document-features = { version = "0.2.0", optional = true }
gix-hash/src/object_id.rs+1−1
@@ -55,7 +55,7 @@ pub mod decode { · 54 unmodified lines
5555 ObjectId::Sha1({
5656 let mut buf = [0; 20];
5757 faster_hex::hex_decode(buffer, &mut buf).map_err(|err| match err {
58− faster_hex::Error::InvalidChar => Error::Invalid,
58+ faster_hex::Error::InvalidChar | faster_hex::Error::Overflow => Error::Invalid,
5959 faster_hex::Error::InvalidLength(_) => {
6060 unreachable!("BUG: This is already checked")
6161 }
gix-hash/src/prefix.rs+1−1
@@ -115,7 +115,7 @@ impl Prefix { · 114 unmodified lines
115115 faster_hex::hex_decode(src, &mut out).map(move |_| out)
116116 }
117117 .map_err(|e| match e {
118− faster_hex::Error::InvalidChar => from_hex::Error::Invalid,
118+ faster_hex::Error::InvalidChar | faster_hex::Error::Overflow => from_hex::Error::Invalid,
119119 faster_hex::Error::InvalidLength(_) => panic!("This is already checked"),
120120 })?;
121121
gix-packetline-blocking/Cargo.toml+1−1
@@ -31,7 +31,7 @@ gix-trace = { version = "^0.1.4", path = "../gix-trace" } · 30 unmodified lines
3131
3232 serde = { version = "1.0.114", optional = true, default-features = false, features = ["std", "derive"]}
3333 thiserror = "1.0.34"
34−faster-hex = "0.8.0"
34+faster-hex = { workspace = true }
3535 bstr = { version = "1.3.0", default-features = false, features = ["std"] }
3636
3737 document-features = { version = "0.2.0", optional = true }
gix-packetline/Cargo.toml+1−1
@@ -43,7 +43,7 @@ gix-trace = { version = "^0.1.4", path = "../gix-trace" } · 42 unmodified lines
4343
4444 serde = { version = "1.0.114", optional = true, default-features = false, features = ["std", "derive"]}
4545 thiserror = "1.0.34"
46−faster-hex = "0.8.0"
46+faster-hex = { workspace = true }
4747 bstr = { version = "1.3.0", default-features = false, features = ["std"] }
4848 # async support
4949 futures-io = { version = "0.3.16", optional = true }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t