# Static rustc_lint::builtin::WASM_C_ABI

source ·

    pub static WASM_C_ABI: &'static Lint

Expand description

The `wasm_c_abi` lint detects crate dependencies that are incompatible with future versions of Rust that will emit spec-compliant C ABI.

#### §Example

ⓘ

    #![deny(wasm_c_abi)]

This will produce:

    error: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.87
      |
    note: the lint level is defined here
     --> src/lib.rs:1:9
      |
    1 | #![deny(wasm_c_abi)]
      |         ^^^^^^^^^^

#### §Explanation

Rust has historically emitted non-spec-compliant C ABI. This has caused incompatibilities between other compilers and Wasm targets. In a future version of Rust this will be fixed and therefore dependencies relying on the non-spec-compliant C ABI will stop functioning.