smithy-aws-checksums 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smithy_aws_checksums-0.0.0/.gitignore +3 -0
- smithy_aws_checksums-0.0.0/CHANGELOG.md +8 -0
- smithy_aws_checksums-0.0.0/Cargo.lock +197 -0
- smithy_aws_checksums-0.0.0/Cargo.toml +21 -0
- smithy_aws_checksums-0.0.0/LICENSE-THIRD-PARTY +1100 -0
- smithy_aws_checksums-0.0.0/NOTICE +1 -0
- smithy_aws_checksums-0.0.0/PKG-INFO +64 -0
- smithy_aws_checksums-0.0.0/README.md +32 -0
- smithy_aws_checksums-0.0.0/build_backend/smithy_aws_checksums_build.py +152 -0
- smithy_aws_checksums-0.0.0/pyproject.toml +82 -0
- smithy_aws_checksums-0.0.0/rust/lib.rs +194 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/__init__.py +190 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_native.pyi +37 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_private/__init__.py +2 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_private/buffers.py +19 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_private/crc.py +181 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_private/pure.py +39 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_private/selection.py +50 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/_private/xxhash.py +568 -0
- smithy_aws_checksums-0.0.0/src/smithy_aws_checksums/py.typed +1 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.1.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
* Added XXHash64, XXHash3, and XXHash128 checksums.
|
|
7
|
+
* Added CRC64NVME checksums.
|
|
8
|
+
* Added CRC32 and CRC32C checksums, backed by a native Rust extension with a pure-Python fallback, and SHA-1, SHA-256, SHA-512, and MD5 checksums through `new()`.
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "crc-fast"
|
|
7
|
+
version = "1.10.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "e75b2483e97a5a7da73ac68a05b629f9c53cff58d8ed1c77866079e18b00dba5"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"digest",
|
|
12
|
+
"spin",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
[[package]]
|
|
16
|
+
name = "crypto-common"
|
|
17
|
+
version = "0.1.7"
|
|
18
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
19
|
+
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
|
20
|
+
dependencies = [
|
|
21
|
+
"generic-array",
|
|
22
|
+
"typenum",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[[package]]
|
|
26
|
+
name = "digest"
|
|
27
|
+
version = "0.10.7"
|
|
28
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
29
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
30
|
+
dependencies = [
|
|
31
|
+
"crypto-common",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[[package]]
|
|
35
|
+
name = "generic-array"
|
|
36
|
+
version = "0.14.7"
|
|
37
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
38
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
39
|
+
dependencies = [
|
|
40
|
+
"typenum",
|
|
41
|
+
"version_check",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "heck"
|
|
46
|
+
version = "0.5.0"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "libc"
|
|
52
|
+
version = "0.2.191"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
55
|
+
|
|
56
|
+
[[package]]
|
|
57
|
+
name = "once_cell"
|
|
58
|
+
version = "1.21.4"
|
|
59
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
60
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
61
|
+
|
|
62
|
+
[[package]]
|
|
63
|
+
name = "portable-atomic"
|
|
64
|
+
version = "1.15.0"
|
|
65
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
67
|
+
|
|
68
|
+
[[package]]
|
|
69
|
+
name = "proc-macro2"
|
|
70
|
+
version = "1.0.107"
|
|
71
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
73
|
+
dependencies = [
|
|
74
|
+
"unicode-ident",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "pyo3"
|
|
79
|
+
version = "0.30.1"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"libc",
|
|
84
|
+
"once_cell",
|
|
85
|
+
"portable-atomic",
|
|
86
|
+
"pyo3-build-config",
|
|
87
|
+
"pyo3-ffi",
|
|
88
|
+
"pyo3-macros",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[[package]]
|
|
92
|
+
name = "pyo3-build-config"
|
|
93
|
+
version = "0.30.1"
|
|
94
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
95
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
96
|
+
dependencies = [
|
|
97
|
+
"target-lexicon",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "pyo3-ffi"
|
|
102
|
+
version = "0.30.1"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"libc",
|
|
107
|
+
"pyo3-build-config",
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "pyo3-macros"
|
|
112
|
+
version = "0.30.1"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
115
|
+
dependencies = [
|
|
116
|
+
"proc-macro2",
|
|
117
|
+
"pyo3-macros-backend",
|
|
118
|
+
"quote",
|
|
119
|
+
"syn",
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "pyo3-macros-backend"
|
|
124
|
+
version = "0.30.1"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"heck",
|
|
129
|
+
"proc-macro2",
|
|
130
|
+
"quote",
|
|
131
|
+
"syn",
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "quote"
|
|
136
|
+
version = "1.0.47"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
139
|
+
dependencies = [
|
|
140
|
+
"proc-macro2",
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "smithy-aws-checksums"
|
|
145
|
+
version = "0.0.0"
|
|
146
|
+
dependencies = [
|
|
147
|
+
"crc-fast",
|
|
148
|
+
"pyo3",
|
|
149
|
+
"twox-hash",
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "spin"
|
|
154
|
+
version = "0.10.1"
|
|
155
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
156
|
+
checksum = "023a211cb3138dbc438680b32560ad89f699977624c9f8dbb95a47d5b4c07dd3"
|
|
157
|
+
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "syn"
|
|
160
|
+
version = "3.0.9"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
163
|
+
dependencies = [
|
|
164
|
+
"proc-macro2",
|
|
165
|
+
"quote",
|
|
166
|
+
"unicode-ident",
|
|
167
|
+
]
|
|
168
|
+
|
|
169
|
+
[[package]]
|
|
170
|
+
name = "target-lexicon"
|
|
171
|
+
version = "0.13.5"
|
|
172
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
173
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "twox-hash"
|
|
177
|
+
version = "2.1.5"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2"
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "typenum"
|
|
183
|
+
version = "1.20.1"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "unicode-ident"
|
|
189
|
+
version = "1.0.27"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "version_check"
|
|
195
|
+
version = "0.9.5"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "smithy-aws-checksums"
|
|
3
|
+
version = "0.0.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
rust-version = "1.89"
|
|
6
|
+
publish = false
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
|
|
9
|
+
[lib]
|
|
10
|
+
name = "_native"
|
|
11
|
+
crate-type = ["cdylib"]
|
|
12
|
+
path = "rust/lib.rs"
|
|
13
|
+
|
|
14
|
+
[dependencies]
|
|
15
|
+
crc-fast = { version = "1.10", default-features = false, features = ["std"] }
|
|
16
|
+
pyo3 = { version = "0.30", features = ["abi3-py312", "abi3t-py315"] }
|
|
17
|
+
twox-hash = { version = "2.1", default-features = false, features = ["std", "xxhash64", "xxhash3_64", "xxhash3_128"] }
|
|
18
|
+
|
|
19
|
+
[profile.release]
|
|
20
|
+
codegen-units = 1
|
|
21
|
+
lto = true
|