NEAR Rust DevTools: Maintenance & Evolution Status Update 2025
ยท 5 min read
Some important changes are coming to the Rust tooling ecosystem, learn more in this blogpost!
The primary objective for the evolution of the Rust tooling ecosystem is Stabilization and Ergonomics.
Currently, many tools still rely on nearcore internal crates. Because nearcore releases frequently bump 0.x versions, this triggers a cascade of breaking changes across the ecosystem.
- The Goal: Reach 1.x Stable Releases for our core primitives and API clients.
- The Method: Migrate away from direct
nearcoredependencies in favor of standalone, stable crates (e.g.,omni-transaction-rs,near-api-rs).
The "Decoupling"โ
To achieve independence from nearcore, we must migrate the tooling stack in this specific order:
omni-transaction-rs+near-account-id-rs+near-gas-rs(standalone primitives)- new
near-jsonrpc-client-rs(currently known asnear-openapi-client-rs- the client generated from OpenAPI spec generated from nearcore types) near-api-rsnear-cli-rs&cargo-near
2. Component Status Overview
| Crate | Status | Priority | Key Action Item |
|---|---|---|---|
| near-sdk-rs | ๐ Active Dev | High | Prepare v6.x release |
| near-api-rs | ๐ Evolving | High | Absorb near-cli-rs logic; 1.x stabilization. |
| omni-transaction-rs | ๐ Key | High | "Final Boss" for decoupling types. |
| near-cli-rs | โป๏ธ Refactor | Medium | Migrate common.rs to near-api-rs. |
| near-openapi-client-rs | ๐ฆ Migration | Medium | Rename, Move to Org, Release 1.0. |
| near-workspaces-rs | ๐ Deprecating | Low | Deprecate in favor of near-api-rs + near-sandbox-rs. |
| bos-cli-rs | ๐ EOL | None | End of Life. |
3. Core SDKs & APIs
near-sdk-rs [Active Development]โ
- Status: High activity. Preparing for v6.x release.
- Key Focus:
- Incorporating breaking changes like structured errors support,
impl Into<>andimpl AsRef<>arguments for improved usability, and Promise API changes. - Reviewing PRs with strict scrutiny regarding ABI compatibility.
- Incorporating breaking changes like structured errors support,
near-api-rs [Strategic Core]โ
- Status: Stable design, but evolving ergonomics.
- Strategic Goal: This is the primary replacement for
nearcoredependencies when it comes to off-chain development for NEAR. It must reach a 1.x stable release to stop the cascade of breaking changes. - Action Items:
- Migration: Make sure that the common helpers logic from
near-cli-rs/common.rscan be implemented withnear-api-rshigh-level APIs. - Features: Audit for missing latest protocol features.
- Ergonomics: Make final pressure testing of the developer experience before locking in v1.0, e.g. migrating existing projects from
near-workspaces-rstonear-api-rs.
- Migration: Make sure that the common helpers logic from
near-openapi-client-rs (becoming near-jsonrpc-client-rs)โ
- Status: Migration pending.
- Notes: There is already a
near-jsonrpc-client-rscrate, which depends onnearcorecrates. The OpenAPI spec that was introduced tonearcoreand is automatically generated from thenearcoretypes. It is now used to automatically generate the clients in Rust, TypeScript, Python, Kotlin, Swift, and we want to migrate all the downstream tooling to leverage the generated client instead of manually maintain it. - Migration Strategy:
- Take the current manual
near-jsonrpc-client-rs, branch it as0.20.x. - Merge the currently separate
near-openapi-client-rscodebase as the newmain. - Make sure that the enums/structs that could change over time are marked as
#[non_exhaustive]to prevent breaking changes in the future. - Release as 1.0.
- Update
near-api-rsto use the released version (it already depends onnear-openapi-client-rsinstead ofnear-jsonrpc-client-rs, so the migration should be smooth)
- Take the current manual
near-sandbox-rs [Stable]โ
- Status: Stable code, but high friction for new users.
- Issues: Documentation and examples are too simple or too complex, and not designed for users' usecase in mind.
- Action Item: Improve documentation. Cross-link heavily with
near-api-rsexamples to show how they work together as the replacement for workspaces.
4. CLI Tools
near-cli-rs [Feature Complete / Refactoring]โ
- Status: Functionally complete.
- Maintenance: Routine dependency updates, bug fixes, and minor UX improvements.
- Major Refactor: Identify general-purpose functions in
common.rsand migrate them tonear-api-rs.- Eventually,
near-cli-rsshould be a thin wrapper aroundnear-api-rs.
- Eventually,
cargo-near [Feature Complete]โ
- Status: Maintenance mode.
- Tasks: Ensure compatibility with latest
near-sdk-rsandnear-cli-rs.
cargo-near-new-project-templateโ
- Status: Low maintenance.
- Tasks: Update
cargo-nearversion occasionally.
near-validators-cli-rsโ
- Status: Maintenance mode.
- Tasks: Keep lockstep with
near-cli-rsreleases.
5. Primitives & Types (The Foundation)
omni-transaction-rsโ
- Status: Mostly up-to-date.
- Context: This crate is the key to decoupling from
nearcoretypes. - Roadmap: We must aggressively migrate the rest of the stack to use this crate.
- Flow:
near-openapi-client-rsโnear-api-rsโnear-cli-rsโcargo-near.
- Flow:
near-account-id-rs [Stable]โ
- Status: Stable (v2.0).
- Note: Recently bumped to v2.0 due to the introduction of "0s" accounts.
near-gas-rs [Stable]โ
- Status: Stable.
- โ ๏ธ Implementation Note:
nearcoreuses a wrapper type over this crate for backward compatibility.nearcore: Serializes gas (u64) as JSON numbers.near-gas-rs: Serializes gas as JSON strings.- Both can deserialize from either number or string.
near-sdk-abi [Stable / Critical]โ
- Status: Frozen / High Caution.
- Warning: Any change here is likely a breaking change for the whole ecosystem. Modify only if absolutely necessary.
borsh-rs [Stable]โ
- Status: Stable.
- Maintenance: Review occasional PRs from community contributors.
6. Deprecation & EOL
near-workspaces-rs: DEPRECATE. Users should be directed to the combination ofnear-api-rs(for interaction) +near-sandbox-rs(for environment).bos-cli-rs: EOL. No maintenance.
7. Future Considerations
near-cryptohash-rs: Assess the need for a standalone crate forCryptoHashto avoid duplication (currently, there are at least 3 copies:nearcore,near-sdk-rs,near-api-rs/near-openapi-client-rs)
