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

Most upvoted comments

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.