src/bin/anchorkit.rs:1 starts with #![cfg(feature = "std")], gating the entire file (including fn main) behind the std feature. .github/workflows/wasm-size-check.yml runs cargo build --target wasm32-unknown-unknown --release --no-default-features --features wasm (no --lib), so Cargo also attempts to build the anchorkit [[bin]] target (Cargo.toml has no required-features on it to make Cargo skip it). With std disabled, the bin crate compiles to nothing, and Rust requires a main function for a binary target — this fails with "main function not found in crate anchorkit", breaking the whole size-check job.
src/bin/anchorkit.rs:1 starts with
#![cfg(feature = "std")], gating the entire file (includingfn main) behind the std feature. .github/workflows/wasm-size-check.yml runscargo build --target wasm32-unknown-unknown --release --no-default-features --features wasm(no --lib), so Cargo also attempts to build the anchorkit [[bin]] target (Cargo.toml has no required-features on it to make Cargo skip it). With std disabled, the bin crate compiles to nothing, and Rust requires a main function for a binary target — this fails with "main function not found in crate anchorkit", breaking the whole size-check job.