Skip to content

fix: update syn crate to match near-sdk crate and to enable parsing of #[unsafe(no_mangle)]#171

Merged
r-near merged 4 commits into
masterfrom
fix/new-near-sdk
Mar 26, 2026
Merged

fix: update syn crate to match near-sdk crate and to enable parsing of #[unsafe(no_mangle)]#171
r-near merged 4 commits into
masterfrom
fix/new-near-sdk

Conversation

@vsavchyn-dev
Copy link
Copy Markdown
Contributor

This PR fixes near-plugins-derive macro code generation to work with near-sdk v5.25.0.

near-sdk v5.25.0 adopted Rust edition 2024, which requires #[unsafe(no_mangle)] instead of #[no_mangle]. The near_bindgen proc macro now emits #[unsafe(no_mangle)] on generated wrapper functions. near-plugins-derive depended on syn 1.x, which cannot parse this attribute syntax, causing all #[pause], #[access_control_any], and #[derive(Pausable)] usages to fail with error: expected path.

Related links

@vsavchyn-dev vsavchyn-dev marked this pull request as ready for review March 26, 2026 18:28
@r-near r-near enabled auto-merge (squash) March 26, 2026 19:00
@r-near r-near merged commit fb51158 into master Mar 26, 2026
2 checks passed
@r-near r-near deleted the fix/new-near-sdk branch March 26, 2026 19:49
This was referenced Mar 27, 2026
This was referenced Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants