Skip to content

wasm-size-check.yml builds the anchorkit CLI binary for wasm32 too, but its entire source is #![cfg(feature = "std")] and the workflow disables std — empty crate, no main, build fails #1279

Description

@Haroldwonder

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions