Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ rust-version = "1.90.0"
[workspace.dependencies]
# Internal crate dependencies.
# Please do not add any test features here: they should be declared by the individual crate.
aptos-sdk = { path = "crates/aptos-sdk" }
aptos-sdk-macros = { version = "0.1.0", path = "crates/aptos-sdk-macros" }
aptos-sdk = { version = "0.4.0", path = "crates/aptos-sdk" }
aptos-sdk-macros = { version = "0.2.0", path = "crates/aptos-sdk-macros" }

# External crate dependencies.
# Please do not add any test features here: they should be declared by the individual crate.
Expand Down
32 changes: 32 additions & 0 deletions crates/aptos-sdk-macros/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Changelog

All notable changes to `aptos-sdk-macros` will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]

## [0.2.0] - 2026-02-25

### Security
- Made path traversal check in `aptos_contract_file!` non-bypassable via path canonicalization
- Added input validation for Rust identifiers generated from Move ABI to prevent panics on malformed input
- Added Rust keyword detection with automatic raw identifier (`r#`) fallback

### Changed
- Updated generated code to use `const-hex` instead of `hex` crate (aligns with aptos-sdk 0.4.0)
- Removed unused `extra-traits` feature from `syn` dependency
- Configured `docs.rs` publishing metadata

## [0.1.0] - 2026-01-06

### Added
- `aptos_contract!` procedural macro for inline ABI-based contract bindings
- `aptos_contract_file!` procedural macro for file-based ABI contract bindings
- Type-safe Rust code generation from Move module ABIs
- Support for entry functions, view functions, and struct definitions
- Move-to-Rust type mapping (primitives, vectors, options, objects)

[0.2.0]: https://github.com/aptos-labs/aptos-rust-sdk/releases/tag/macros-v0.2.0
[0.1.0]: https://github.com/aptos-labs/aptos-rust-sdk/releases/tag/macros-v0.1.0
2 changes: 1 addition & 1 deletion crates/aptos-sdk-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aptos-sdk-macros"
version = "0.1.0"
version = "0.2.0"
description = "Procedural macros for type-safe Aptos contract bindings"
authors.workspace = true
edition = "2024"
Expand Down
29 changes: 26 additions & 3 deletions crates/aptos-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [0.4.0] - 2026-02-25

### Security
- Comprehensive security audit remediating 21 findings across the SDK
- Second-pass audit fixes across crypto, keyless, and API client modules
- Enforced low-S normalization for ECDSA (secp256k1/secp256r1) signatures to match aptos-core
- Hardened keyless account JWT verification
- Improved input validation across API clients and codegen

### Changed
- Upgraded `reqwest` to v0.13
- Use `const-hex` crate instead of `hex`
- Upgraded `reqwest` from v0.12 to v0.13
- Replaced `hex` crate with `const-hex` for improved performance
- Removed `async-trait` dependency in favor of native async trait support
- Audited and cleaned up dependency tree
- Bumped `keccak` from 0.1.5 to 0.1.6
- Improved dependency feature selection for reduced compile times
- Configured `docs.rs` metadata for release builds

### Fixed
- Resolved rustdoc warnings breaking CI documentation check
- Fixed clippy `needless_borrows_for_generic_args` warnings

### Performance
- Reduced allocations and lock overhead in hot paths

### Removed
- Unnecessary feature-flags
- `async-trait` dependency

## [0.1.0] - 2026-01-06

Expand Down Expand Up @@ -88,5 +110,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- This SDK is independent of `aptos-core` for faster compilation
- Minimum Supported Rust Version (MSRV): 1.90

[0.1.0]: https://github.com/aptos-labs/aptos-rust-sdk/releases/tag/v0.1.0
[0.4.0]: https://github.com/aptos-labs/aptos-rust-sdk/releases/tag/sdk-v0.4.0
[0.1.0]: https://github.com/aptos-labs/aptos-rust-sdk/releases/tag/sdk-v0.1.0
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog link format for version 0.1.0 has been changed from "v0.1.0" to "sdk-v0.1.0". Ensure that this GitHub release tag actually exists or will be created with this exact format, otherwise the link will be broken.

Copilot uses AI. Check for mistakes.

2 changes: 1 addition & 1 deletion crates/aptos-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aptos-sdk"
version = "0.3.0"
version = "0.4.0"
description = "A user-friendly, idiomatic Rust SDK for the Aptos blockchain"
authors.workspace = true
edition.workspace = true
Expand Down
Loading