Unified · Split
| @@ -997,6 +997,15 @@ dependencies = [ · 996 unmodified lines | ||
| 997 | 997 | "serde", |
| 998 | 998 | ] |
| 999 | 999 | |
| 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 | + | |
| 1000 | 1009 | [[package]] |
| 1001 | 1010 | name = "fastrand" |
| 1002 | 1011 | version = "1.9.0" |
| @@ -1817,7 +1826,7 @@ name = "gix-hash" · 814 unmodified lines | ||
| 1817 | 1826 | version = "0.13.2" |
| 1818 | 1827 | dependencies = [ |
| 1819 | 1828 | "document-features", |
| 1820 | − "faster-hex", | |
| 1829 | + "faster-hex 0.9.0", | |
| 1821 | 1830 | "gix-features 0.36.1", |
| 1822 | 1831 | "gix-testtools", |
| 1823 | 1832 | "serde", |
| @@ -1830,7 +1839,7 @@ version = "0.13.2" · 6 unmodified lines | ||
| 1830 | 1839 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 1831 | 1840 | checksum = "99c1e554a87759e672c7d2e37211e761aa390c61ffcd3753a57c51173143f3cb" |
| 1832 | 1841 | dependencies = [ |
| 1833 | − "faster-hex", | |
| 1842 | + "faster-hex 0.8.1", | |
| 1834 | 1843 | "thiserror", |
| 1835 | 1844 | ] |
| 1836 | 1845 | |
| @@ -2133,7 +2142,7 @@ dependencies = [ · 296 unmodified lines | ||
| 2133 | 2142 | "async-std", |
| 2134 | 2143 | "bstr", |
| 2135 | 2144 | "document-features", |
| 2136 | − "faster-hex", | |
| 2145 | + "faster-hex 0.9.0", | |
| 2137 | 2146 | "futures-io", |
| 2138 | 2147 | "futures-lite 2.1.0", |
| 2139 | 2148 | "gix-hash 0.13.2", |
| @@ -2152,7 +2161,7 @@ version = "0.17.0" · 12 unmodified lines | ||
| 2152 | 2161 | dependencies = [ |
| 2153 | 2162 | "bstr", |
| 2154 | 2163 | "document-features", |
| 2155 | − "faster-hex", | |
| 2164 | + "faster-hex 0.9.0", | |
| 2156 | 2165 | "gix-trace 0.1.4", |
| 2157 | 2166 | "serde", |
| 2158 | 2167 | "thiserror", |
| @@ -300,6 +300,7 @@ members = [ · 299 unmodified lines | ||
| 300 | 300 | [workspace.dependencies] |
| 301 | 301 | prodash = { version = "27.0.0", default-features = false } |
| 302 | 302 | futures-lite = { version = "2.1.0", default-features = false, features = ["std"] } |
| 303 | +faster-hex = { version = "0.9.0" } | |
| 303 | 304 | |
| 304 | 305 | [package.metadata.docs.rs] |
| 305 | 306 | features = ["document-features", "max"] |
| @@ -19,7 +19,7 @@ serde= ["dep:serde"] · 18 unmodified lines | ||
| 19 | 19 | |
| 20 | 20 | [dependencies] |
| 21 | 21 | thiserror = "1.0.33" |
| 22 | −faster-hex = "0.8.0" | |
| 22 | +faster-hex = { workspace = true } | |
| 23 | 23 | serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] } |
| 24 | 24 | |
| 25 | 25 | document-features = { version = "0.2.0", optional = true } |
| @@ -55,7 +55,7 @@ pub mod decode { · 54 unmodified lines | ||
| 55 | 55 | ObjectId::Sha1({ |
| 56 | 56 | let mut buf = [0; 20]; |
| 57 | 57 | 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, | |
| 59 | 59 | faster_hex::Error::InvalidLength(_) => { |
| 60 | 60 | unreachable!("BUG: This is already checked") |
| 61 | 61 | } |
| @@ -115,7 +115,7 @@ impl Prefix { · 114 unmodified lines | ||
| 115 | 115 | faster_hex::hex_decode(src, &mut out).map(move |_| out) |
| 116 | 116 | } |
| 117 | 117 | .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, | |
| 119 | 119 | faster_hex::Error::InvalidLength(_) => panic!("This is already checked"), |
| 120 | 120 | })?; |
| 121 | 121 | |
| @@ -31,7 +31,7 @@ gix-trace = { version = "^0.1.4", path = "../gix-trace" } · 30 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | serde = { version = "1.0.114", optional = true, default-features = false, features = ["std", "derive"]} |
| 33 | 33 | thiserror = "1.0.34" |
| 34 | −faster-hex = "0.8.0" | |
| 34 | +faster-hex = { workspace = true } | |
| 35 | 35 | bstr = { version = "1.3.0", default-features = false, features = ["std"] } |
| 36 | 36 | |
| 37 | 37 | document-features = { version = "0.2.0", optional = true } |
| @@ -43,7 +43,7 @@ gix-trace = { version = "^0.1.4", path = "../gix-trace" } · 42 unmodified lines | ||
| 43 | 43 | |
| 44 | 44 | serde = { version = "1.0.114", optional = true, default-features = false, features = ["std", "derive"]} |
| 45 | 45 | thiserror = "1.0.34" |
| 46 | −faster-hex = "0.8.0" | |
| 46 | +faster-hex = { workspace = true } | |
| 47 | 47 | bstr = { version = "1.3.0", default-features = false, features = ["std"] } |
| 48 | 48 | # async support |
| 49 | 49 | futures-io = { version = "0.3.16", optional = true } |