textwrap: Unable to compile to WASM with version 0.15.1
Hello! I’ve just upgraded to 0.15.1 and can no longer compile this to WASM.
This versions pulls in terminal_size 0.2.1, which pulls in rustix, which pulls in linux-raw-sys, which does not compile on wasm.
I see the dep is marked as optional in textwrap’s Cargo.toml, but I couldn’t work out how to stop it from being included. I have this in my Cargo.toml:
textwrap = { version = "0.15.0", default_features = false, features = [] }
How can I resolve this?
Thanks, Louis
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 17 (9 by maintainers)
Commits related to this issue
- Restore compatibility with Rust 1.56 Rust 1.56 is the first version with support for the 2021 edition. Maintaining support for this version gives people an easy target when determining the oldest com... — committed to mgeisler/unicode-linebreak by mgeisler 2 years ago
- Restore compatibility with Rust 1.56 (#4) Rust 1.56 is the first version with support for the 2021 edition. Maintaining support for this version gives people an easy target when determining the old... — committed to axelf4/unicode-linebreak by mgeisler 2 years ago
glad to help you 😃
I’ve now created axelf4/unicode-linebreak#4 to see if we can easily restore compatibility with Rust 1.56 and fix the problem @namse noticed.