記錄

wasm_bindgen_webidl crate (由 web-sysbuild.rs 使用) 使用 env_logger 進行記錄,可以通過在建構 web-sys crate 時設定 RUST_LOG=wasm_bindgen_webidl 環境變數來啟用。

請確保在 cargo build 期間啟用「非常詳細」的輸出,以便在 web-sys 的建構腳本輸出中看到這些日誌。

cd crates/web-sys
RUST_LOG=wasm_bindgen_webidl cargo build -vv

如果 wasm_bindgen_webidl 遇到它不知道如何轉換為 wasm-bindgen AST 項目的 WebIDL 結構,它會發出警告級別的日誌。

WARN 2018-07-06T18:21:49Z: wasm_bindgen_webidl: Unsupported WebIDL interface: ...