Commit cd8f28d
authored
[SDK] Introduce a replacement Rust SDK for the entirety of the existi… (#20)
* [SDK] Introduce a replacement Rust SDK for the entirety of the existing one
This is based off of the TypeScript SDK, and we'll see how well it goes
with more extensive testing.
* more additions to rust SDK v2
* [sdkv2] Add feature flags to gate features and reduce overhead
* format files
* address comments
* address comments
* fix formatting
* update some fixes for CI and PR comments
* more cleanup
* more fixes
* Address PR review comments and fix CI
- Add rustfmt component to release.yml workflow
- Fix deploy_module.rs BCS encoding comment (clarify bytes are passed directly)
- Fix multi_key_account.rs to use chain_id().id() and propagate errors
- Fix call_contract.rs to check specifically for "not found" errors
- Add clearer comment in multi_agent.rs about example limitations
These changes address the copilot-pull-request-reviewer comments from PR #20.
* Fix clippy lint: remove unnecessary to_string() in println
* add more examples
* remove ANS for now
* add migration guide
* cleanup security issues
* fix some lints
* enable some pedantic lints
* re-enable a bunch of pedantic lints
* add pedantic lint
* add pedantic lint, must use for self
* add another pedantic lint
* add more pedantic lints
* more pedantic lints
* lint more pedantic
* add error messaging, and single key support
* Fix single key handling, AIP80 formatting, signed integer type, and
orderless transactions upport
* add significantly more testing
* add security fixes
* fix some PR comments
* fix clippy warnings, and CI issues
* fix lints
* Address PR comments
* update GitHub Actions to latest versions
- actions/checkout v4 -> v6
- actions/configure-pages v4 -> v5
- actions/upload-pages-artifact v3 -> v4
- softprops/action-gh-release v1 -> v2
* fix invalid Rust syntax in deploy_module example
Use single braces for import statement in the printed code example.
The code is inside a raw string (not a format string), so double braces
render literally instead of being escaped.
* fix format string lint
* address PR comments
* rename crates to more publishable crate names
* fix remaining renames
* finalize renames
* Fix invalid string
* Add security audit CI and fix bytes vulnerability
- Add security.yml workflow with cargo-audit and cargo-deny checks
- Runs on push, PR, and daily schedule to catch new advisories
- Update bytes crate 1.11.0 -> 1.11.1 to fix RUSTSEC-2026-0007
(integer overflow in BytesMut::reserve)1 parent 2d8bf5d commit cd8f28d
File tree
243 files changed
+48309
-33867
lines changed- .github/workflows
- crates
- aptos-crypto-derive
- src
- aptos-crypto
- proptest-regressions
- unit_tests
- src
- asymmetric_encryption
- bls12381
- ed25519
- elgamal
- poseidon_bn254
- secp256r1_ecdsa
- unit_tests
- compilation
- test_vectors
- aptos-rust-sdk-types
- src
- api_types
- crypto
- ed25519
- hash
- secp256k1
- aptos-rust-sdk
- src
- client
- tests
- client
- crypto
- aptos-sdk-macros
- src
- tests
- ui
- fail
- pass
- aptos-sdk
- examples
- feature-plans
- scripts
- src
- account
- api
- bin
- codegen
- crypto
- tests
- transaction
- types
- tests
- behavioral
- e2e
- examples
- src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
243 files changed
+48309
-33867
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
27 | 52 | | |
28 | 53 | | |
29 | 54 | | |
30 | | - | |
| 55 | + | |
31 | 56 | | |
| 57 | + | |
32 | 58 | | |
| 59 | + | |
33 | 60 | | |
34 | 61 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
42 | 80 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
67 | 133 | | |
68 | | - | |
69 | | - | |
| 134 | + | |
| 135 | + | |
70 | 136 | | |
71 | 137 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
76 | 157 | | |
77 | | - | |
78 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
79 | 219 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
0 commit comments