You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The forbidden-std-imports check is implemented in crates/checks/src/std_imports.rs but has no section in docs/checks.md.
What to add
What it detects — use std::… import paths inside files that also contain #[contractimpl] or #[contract]
Why it matters — Soroban contracts compile to WASM with #![no_std]. Importing from std causes a compile error in WASM targets and indicates the contract cannot be deployed as-is
Severity — High
Limitations — file-level check only; does not detect transitive std usage through re-exported types
Summary
The
forbidden-std-importscheck is implemented incrates/checks/src/std_imports.rsbut has no section indocs/checks.md.What to add
use std::…import paths inside files that also contain#[contractimpl]or#[contract]#![no_std]. Importing fromstdcauses a compile error in WASM targets and indicates the contract cannot be deployed as-isforbidden-std-importscheck (safe + vulnerable crates) #117)