Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: near/near-sdk-rs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: near-sdk-v5.2.0
Choose a base ref
...
head repository: near/near-sdk-rs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 3,312 additions and 877 deletions.
  1. +5 −0 .github/codecov.yml
  2. +22 −0 .github/workflows/add-to-devtools.yml
  3. +2 −2 .github/workflows/compare_sizes.yml
  4. +55 −0 .github/workflows/coverage.yml
  5. +1 −1 .github/workflows/release-plz.yml
  6. +31 −8 .github/workflows/test.yml
  7. +12 −7 .github/workflows/test_examples.yml
  8. +13 −26 .github/workflows/test_examples_small.yml
  9. +1 −1 .github/workflows/typo.yml
  10. +63 −0 CHANGELOG.md
  11. +1 −1 CODEOWNERS
  12. +1 −0 CONTRIBUTING.md
  13. +2 −7 Cargo.toml
  14. +10 −11 README.md
  15. +0 −3 examples/adder/.cargo/config.toml
  16. +3 −2 examples/adder/Cargo.toml
  17. +23 −25 examples/adder/src/lib.rs
  18. +0 −3 examples/callback-results/.cargo/config.toml
  19. +2 −1 examples/callback-results/Cargo.toml
  20. +1 −3 examples/callback-results/src/lib.rs
  21. +0 −3 examples/cross-contract-calls/.cargo/config.toml
  22. +3 −6 examples/cross-contract-calls/Cargo.toml
  23. +1 −1 examples/cross-contract-calls/high-level/Cargo.toml
  24. +1 −1 examples/cross-contract-calls/low-level/Cargo.toml
  25. +5 −4 examples/cross-contract-calls/tests/workspaces.rs
  26. +0 −3 examples/factory-contract/.cargo/config.toml
  27. +3 −5 examples/factory-contract/Cargo.toml
  28. +5 −0 examples/factory-contract/high-level/Cargo.toml
  29. +41 −0 examples/factory-contract/high-level/build.rs
  30. +1 −1 examples/factory-contract/high-level/src/lib.rs
  31. +5 −0 examples/factory-contract/low-level/Cargo.toml
  32. +40 −0 examples/factory-contract/low-level/build.rs
  33. +1 −1 examples/factory-contract/low-level/src/lib.rs
  34. +7 −8 examples/factory-contract/tests/workspaces.rs
  35. +0 −2 examples/fungible-token/.cargo/config.toml
  36. +3 −5 examples/fungible-token/Cargo.toml
  37. +3 −0 examples/fungible-token/ft/Cargo.toml
  38. +3 −0 examples/fungible-token/test-contract-defi/Cargo.toml
  39. +231 −88 examples/fungible-token/tests/workspaces.rs
  40. +2 −1 examples/lockable-fungible-token/Cargo.toml
  41. +128 −53 examples/lockable-fungible-token/tests/workspaces.rs
  42. +5 −0 examples/mission-control/Cargo.toml
  43. +21 −0 examples/mission-control/src/mission_control.rs
  44. +0 −3 examples/non-fungible-token/.cargo/config.toml
  45. +4 −7 examples/non-fungible-token/Cargo.toml
  46. +3 −0 examples/non-fungible-token/nft/Cargo.toml
  47. +3 −0 examples/non-fungible-token/test-approval-receiver/Cargo.toml
  48. +1 −1 examples/non-fungible-token/test-approval-receiver/src/lib.rs
  49. +3 −0 examples/non-fungible-token/test-token-receiver/Cargo.toml
  50. +1 −1 examples/non-fungible-token/test-token-receiver/src/lib.rs
  51. +66 −25 examples/non-fungible-token/tests/workspaces/test_approval.rs
  52. +116 −47 examples/non-fungible-token/tests/workspaces/test_core.rs
  53. +23 −14 examples/non-fungible-token/tests/workspaces/test_enumeration.rs
  54. +53 −11 examples/non-fungible-token/tests/workspaces/utils.rs
  55. +0 −3 examples/status-message/.cargo/config.toml
  56. +5 −0 examples/status-message/Cargo.toml
  57. +21 −0 examples/status-message/src/lib.rs
  58. +8 −0 examples/test-contract/Cargo.toml
  59. +21 −0 examples/test-contract/src/lib.rs
  60. +0 −3 examples/versioned/.cargo/config.toml
  61. +9 −1 examples/versioned/Cargo.toml
  62. +28 −8 examples/versioned/src/lib.rs
  63. +24 −0 near-contract-standards/CHANGELOG.md
  64. +10 −3 near-contract-standards/Cargo.toml
  65. +2 −0 near-contract-standards/src/fungible_token/mod.rs
  66. +5 −2 near-contract-standards/src/lib.rs
  67. +1 −5 near-contract-standards/src/non_fungible_token/core/core_impl.rs
  68. +1 −1 near-contract-standards/src/non_fungible_token/utils.rs
  69. +7 −4 near-sdk-macros/Cargo.toml
  70. +1 −0 near-sdk-macros/build.rs
  71. +8 −2 near-sdk-macros/src/core_impl/code_generator/attr_sig_info.rs
  72. +22 −8 near-sdk-macros/src/core_impl/code_generator/impl_item_method_info.rs
  73. +8 −2 near-sdk-macros/src/core_impl/code_generator/serializer.rs
  74. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/arg_mut_ref.snap
  75. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/arg_no_return_no_mut.snap
  76. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/arg_ref.snap
  77. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/args_no_return_mut.snap
  78. +19 −8 near-sdk-macros/src/core_impl/code_generator/snapshots/args_return_mut.snap
  79. +19 −8 near-sdk-macros/src/core_impl/code_generator/snapshots/args_return_mut_borsh.snap
  80. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/args_return_ref.snap
  81. +19 −10 near-sdk-macros/src/core_impl/code_generator/snapshots/callback_args.snap
  82. +21 −10 near-sdk-macros/src/core_impl/code_generator/snapshots/callback_args_mixed_serialization.snap
  83. +8 −5 near-sdk-macros/src/core_impl/code_generator/snapshots/callback_args_only.snap
  84. +16 −5 near-sdk-macros/src/core_impl/code_generator/snapshots/callback_args_results.snap
  85. +19 −8 near-sdk-macros/src/core_impl/code_generator/snapshots/callback_args_vec.snap
  86. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/ext_basic.snap
  87. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/ext_basic_borsh.snap
  88. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/ext_basic_json.snap
  89. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/handle_result_borsh.snap
  90. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/handle_result_json.snap
  91. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/handle_result_mut.snap
  92. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/init_ignore_state.snap
  93. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/init_payable.snap
  94. +8 −3 near-sdk-macros/src/core_impl/code_generator/snapshots/serialize_with_borsh.snap
  95. +11 −6 near-sdk-macros/src/core_impl/code_generator/snapshots/simple_init.snap
  96. +7 −3 near-sdk-macros/src/core_impl/contract_metadata/mod.rs
  97. +173 −120 near-sdk-macros/src/lib.rs
  98. +11 −11 near-sdk/Cargo.toml
  99. +3 −2 near-sdk/compilation_tests/all.rs
  100. +4 −1 near-sdk/src/collections/vector.rs
  101. +953 −16 near-sdk/src/environment/env.rs
  102. +174 −78 near-sdk/src/environment/mock/mocked_blockchain.rs
  103. +91 −0 near-sdk/src/lib.rs
  104. +18 −0 near-sdk/src/promise.rs
  105. +1 −0 near-sdk/src/store/free_list/iter.rs
  106. +1 −1 near-sdk/src/store/free_list/mod.rs
  107. +1 −0 near-sdk/src/store/iterable_map/iter.rs
  108. +1 −0 near-sdk/src/store/iterable_set/iter.rs
  109. +14 −0 near-sdk/src/store/lazy/mod.rs
  110. +25 −13 near-sdk/src/store/mod.rs
  111. +3 −0 near-sdk/src/store/tree_map/iter.rs
  112. +47 −0 near-sdk/src/store/unordered_map/iter.rs
  113. +1 −1 near-sdk/src/store/unordered_map/mod.rs
  114. +1 −0 near-sdk/src/store/unordered_set/iter.rs
  115. +1 −1 near-sdk/src/store/unordered_set/mod.rs
  116. +1 −1 near-sdk/src/store/vec/iter.rs
  117. +1 −1 near-sdk/src/test_utils/context.rs
  118. +7 −7 near-sdk/src/test_utils/mod.rs
  119. +1 −1 near-sdk/src/test_utils/test_env.rs
  120. +16 −2 near-sdk/src/types/error.rs
  121. +2 −0 near-sdk/src/types/mod.rs
  122. +1 −0 near-sdk/src/types/public_key.rs
  123. +16 −1 near-sdk/src/types/vm_types.rs
  124. +2 −0 near-sdk/src/utils/mod.rs
  125. +2 −0 near-sdk/src/utils/storage_key_impl.rs
  126. +151 −62 near-sdk/tests/store_performance_tests.rs
  127. +12 −0 near-sdk/tests/test-contracts/lazy/Cargo.toml
  128. +96 −0 near-sdk/tests/test-contracts/lazy/src/lib.rs
  129. +1 −1 near-sdk/tests/test-contracts/store/Cargo.toml
5 changes: 5 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
project:
default:
threshold: 0.2%
22 changes: 22 additions & 0 deletions .github/workflows/add-to-devtools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Add to DevTools Project'

on:
issues:
types:
- opened
- reopened
pull_request:
types:
- opened
- reopened

jobs:
add-to-project:
name: Add issue/PR to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v1.0.0
with:
# add to DevTools Project #156
project-url: https://github.com/orgs/near/projects/156
github-token: ${{ secrets.GH_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/compare_sizes.yml
Original file line number Diff line number Diff line change
@@ -11,9 +11,9 @@ jobs:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Checkout Pull Request
run: hub pr checkout ${{ github.event.issue.number }}
run: gh pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache intermediate artifacts
55 changes: 55 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Coverage
on:
push:
branches:
- master
pull_request:
env:
RUSTFLAGS: "-D warnings"

jobs:
coverage:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.example }} - ${{ matrix.platform }}"
strategy:
matrix:
platform: [macos-latest]
toolchain: [stable]
steps:
- uses: actions/checkout@v4
- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Install LLVM
run: brew install llvm
- name: Add LLVM to PATH
run: echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
- name: Install cargo-llvm-cov
run: brew install cargo-llvm-cov
- name: Llvm version
run: llvm-config --version
- name: Clang version
run: clang --version
- name: "${{ matrix.toolchain }} with rustfmt, and wasm32"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
- name: Set Default Toolchain
run: rustup override set ${{ matrix.toolchain }}
- name: Rust version
run: rustc --version --verbose
- name: Add rust-src component
run: rustup component add rust-src --toolchain ${{ matrix.toolchain }}
- name: Verify Rust Toolchain
run: rustup show
- name: Generate code coverage
run: cargo +${{ matrix.toolchain }} llvm-cov --lcov --output-path llvm-cov-output.lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: ./llvm-cov-output.lcov
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
2 changes: 1 addition & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
39 changes: 31 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,19 +11,20 @@ jobs:
runs-on: ${{ matrix.platform.os }}
name: "${{ matrix.platform.os }} ${{ matrix.platform.rs }} ${{ matrix.features }}"
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
rs: 1.76.0
rs: 1.82.0
- os: ubuntu-latest
rs: stable
- os: macos-latest
rs: 1.76.0
rs: 1.82.0
- os: macos-latest
rs: 1.78.0
rs: stable
features: ['', '--features unstable,legacy,__abi-generate']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "${{ matrix.platform.rs }} with rustfmt, and wasm32"
uses: actions-rs/toolchain@v1
with:
@@ -44,7 +45,7 @@ jobs:
name: Clippy and fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
@@ -60,7 +61,7 @@ jobs:
name: Compilation tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
@@ -74,7 +75,7 @@ jobs:
name: Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "Setup Windows toolchain"
uses: actions-rs/toolchain@v1
with:
@@ -92,7 +93,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Toolchain
uses: actions-rs/toolchain@v1
with:
@@ -104,3 +105,25 @@ jobs:
run: cargo install cargo-audit
- name: Run Audit
run: cargo audit
# there're sometimes warnings, which signal, that the generated doc
# won't look as expected, when rendered, and sometimes errors, which will prevent doc from being
# generated at release time altogether.
cargo-doc:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Install Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
- name: run cargo doc
env:
RUSTDOCFLAGS: -D warnings
run: |
cargo doc -p near-sdk --features unstable,legacy,unit-testing,__macro-docs,__abi-generate
cargo doc -p near-sdk-macros --features __abi-generate
cargo doc -p near-contract-standards --no-deps --features abi
cargo doc -p near-sys
19 changes: 12 additions & 7 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
@@ -11,12 +11,21 @@ jobs:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.example }} - ${{ matrix.platform }}"
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest]
toolchain: [stable]
example: [cross-contract-calls, fungible-token]
example: [
adder,
callback-results,
cross-contract-calls,
fungible-token,
non-fungible-token,
versioned,
factory-contract
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "${{ matrix.toolchain }} with rustfmt, and wasm32"
uses: actions-rs/toolchain@v1
with:
@@ -26,9 +35,5 @@ jobs:
- uses: Swatinem/rust-cache@v1
with:
working-directory: ./examples/${{ matrix.example }}
- name: Build
env:
RUSTFLAGS: '-C link-arg=-s'
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/${{matrix.example}}/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/${{matrix.example}}/target/wasm32-unknown-unknown/release/*.wasm ./examples/${{matrix.example}}/res/
- name: Test
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/${{ matrix.example }}/Cargo.toml --all
run: cargo +${{ matrix.toolchain }} test --manifest-path="./examples/${{ matrix.example }}/Cargo.toml" --workspace
39 changes: 13 additions & 26 deletions .github/workflows/test_examples_small.yml
Original file line number Diff line number Diff line change
@@ -9,41 +9,28 @@ env:
jobs:
test:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.platform }} ${{ matrix.toolchain }}"
name: "${{ matrix.example }} - ${{ matrix.platform }}"
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest]
toolchain: [stable]
example: [
lockable-fungible-token,
status-message,
mission-control,
test-contract,
]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: "${{ matrix.toolchain }} with rustfmt, clippy, and wasm32"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v1
- name: Build lockable-fungible-token
env:
RUSTFLAGS: '-C link-arg=-s'
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/lockable-fungible-token/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/lockable-fungible-token/target/wasm32-unknown-unknown/release/*.wasm ./examples/lockable-fungible-token/res/
- name: Test lockable-fungible-token
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/lockable-fungible-token/Cargo.toml --all
- name: Build status-message
env:
RUSTFLAGS: '-C link-arg=-s'
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/status-message/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/status-message/target/wasm32-unknown-unknown/release/*.wasm ./examples/status-message/res/
- name: Test status-message
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/status-message/Cargo.toml --all
- name: Build mission-control
env:
RUSTFLAGS: '-C link-arg=-s'
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/mission-control/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/mission-control/target/wasm32-unknown-unknown/release/*.wasm ./examples/mission-control/res/
- name: Test mission-control
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/mission-control/Cargo.toml --all
- name: Build test-contract
env:
RUSTFLAGS: '-C link-arg=-s'
run: cargo +${{ matrix.toolchain }} build --manifest-path=./examples/test-contract/Cargo.toml --target wasm32-unknown-unknown --release --all && cp ./examples/test-contract/target/wasm32-unknown-unknown/release/*.wasm ./examples/test-contract/res/
- name: Test test-contract
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/test-contract/Cargo.toml --all
with:
working-directory: ./examples/${{ matrix.example }}
- name: Test
run: cargo +${{ matrix.toolchain }} test --manifest-path=./examples/${{ matrix.example }}/Cargo.toml --workspace
2 changes: 1 addition & 1 deletion .github/workflows/typo.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Check spelling of the entire repository
uses: crate-ci/typos@v1.11.1

63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,69 @@

## [Unreleased]

## [5.7.1](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.7.0...near-sdk-v5.7.1) - 2025-01-30

### Other

- improved documentation for near-sdk and near-sdk-macros crates (#1262)
- clippy lint of 1.84 fixed (#1290)
- `__abi-generate` feature in docs.rs (#1286)
- updates near-workspaces to 0.16 version (#1284)
- impaired PublicKey with missing BorshSchema (#1281)

## [5.7.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.6.0...near-sdk-v5.7.0) - 2024-12-13

### Other

- updates near-* dependencies to 0.28 release (#1272)
- tests for Lazy and moving out of unstable (#1268)
- add a `cargo doc` job (#1269)
- allow clippy::needless_lifetimes (1.83 more suggestions) (#1267)
- examples for Near-related host functions (#1259)
- updates near-workspaces to 0.15 version (#1260)

## [5.6.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.5.0...near-sdk-v5.6.0) - 2024-11-14

### Other

- updates near-* dependencies to 0.27 release ([#1254](https://github.com/near/near-sdk-rs/pull/1254))
- freeze 1.81 for near-workspaces paths (temporarily) ([#1250](https://github.com/near/near-sdk-rs/pull/1250))
- Benchmark near collections and provide the results as the reference in the docs ([#1248](https://github.com/near/near-sdk-rs/pull/1248))
- Updated near-workspaces to 0.14 version (matching 0.26 near-* release) ([#1246](https://github.com/near/near-sdk-rs/pull/1246))

## [5.5.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.4.0...near-sdk-v5.5.0) - 2024-09-11

### Other

- Updated near-* dependendencies to v0.26.0. Migrated testing blockchain mock to C-unwind ([#1244](https://github.com/near/near-sdk-rs/pull/1244))

## [5.4.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.3.0...near-sdk-v5.4.0) - 2024-09-04

### Other
- updates near-* dependencies to 0.25.0 ([#1242](https://github.com/near/near-sdk-rs/pull/1242))
- updates near-workspaces-rs ([#1239](https://github.com/near/near-sdk-rs/pull/1239))

## [5.3.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.2.1...near-sdk-v5.3.0) - 2024-08-13

### Added
- Introduced 'remove' method for 'near_sdk::store::Lazy' collection ([#1238](https://github.com/near/near-sdk-rs/pull/1238))
- Allow store collection iterators to be cloned (this enables standard Iterator methods like `cycle()`) ([#1224](https://github.com/near/near-sdk-rs/pull/1224))

### Fixed
- Fix storage management error message with proper amount ([#1222](https://github.com/near/near-sdk-rs/pull/1222))
- Fixed compilation errors after Rust 1.80 latest stable release ([#1227](https://github.com/near/near-sdk-rs/pull/1227))

### Other
- updates near-* dependencies to 0.24.0 ([#1237](https://github.com/near/near-sdk-rs/pull/1237))
- Include all examples into CI testing suite ([#1228](https://github.com/near/near-sdk-rs/pull/1228))
- Optimized up to 10% contract binary size by using `near_sdk::env::panic_str` instead of `expect` calls ([#1220](https://github.com/near/near-sdk-rs/pull/1220))
- Fixed Rust 1.80 new warning by adding `cargo:rustc-check-cfg` for `__abi-embed-checked` feature in `near-sdk-macros` build.rs ([#1225](https://github.com/near/near-sdk-rs/pull/1225))

## [5.2.1](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.2.0...near-sdk-v5.2.1) - 2024-07-05

### Fixed
- *(nep330)* Fallback to `CARGO_PKG_REPOSITORY` and `CARGO_PKG_VERSION` when `NEP330_*` variables are not provided ([#1215](https://github.com/near/near-sdk-rs/pull/1215))

## [5.2.0](https://github.com/near/near-sdk-rs/compare/near-sdk-v5.1.0...near-sdk-v5.2.0) - 2024-07-04

### Added
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @frol @agostbiro @uint
* @frol @dj8yfo @ruseinov @akorchyn @PolyProgrammist
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@ Ensure the following are satisfied before opening a PR:

- The `git-hooks.sh` script has been run to install the git hooks.
- Code is formatted with `rustfmt` by running `cargo fmt`
- Before running the tests, ensure that all example `.wasm` files are built by executing [./examples/build_all.sh](./examples/build_all.sh)
- Run all tests and linters with [./run-tests.sh](./run-tests.sh)
- Ensure any new functionality is adequately tested
- If any new public types or functions are added, ensure they have appropriate [rustdoc](https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html) documentation
9 changes: 2 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
[workspace]
resolver = "2"
members = [
"near-sdk",
"near-sdk-macros",
"near-contract-standards",
"near-sys",
]
members = ["near-sdk", "near-sdk-macros", "near-contract-standards", "near-sys"]
exclude = ["examples/"]

[workspace.package]
version = "5.2.0"
version = "5.7.1"

# Special triple # comment for ci.
[patch.crates-io]
Loading