Closed smarter closed 6 years ago
Rust now has a webassembly target, trying to use it in a project that depends on atty results in a build failure:
atty
% cargo +nightly build --target wasm32-unknown-unknown --release --verbose Compiling atty v0.2.3 Running `rustc --crate-name atty /home/smarter/.cargo/registry/src/github.com-1ecc6299db9ec823/atty-0.2.3/src/lib.rs --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=0a084c269a4ac4bc -C extra-filename=-0a084c269a4ac4bc --out-dir /home/smarter/hello/target/wasm32-unknown-unknown/release/deps --target wasm32-unknown-unknown -L dependency=/home/smarter/hello/target/wasm32-unknown-unknown/release/deps -L dependency=/home/smarter/hello/target/release/deps --cap-lints allow` error[E0425]: cannot find function `is` in this scope --> /home/smarter/.cargo/registry/src/github.com-1ecc6299db9ec823/atty-0.2.3/src/lib.rs:85:6 | 85 | !is(stream) | ^^ not found in this scope error: aborting due to previous error error: Could not compile `atty`.
Rust now has a webassembly target, trying to use it in a project that depends on
atty
results in a build failure: