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