diff --git a/Cargo.lock b/Cargo.lock index 55458cafa6..9bc7773499 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1356,8 +1356,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" dependencies = [ "smawk", - "unicode-linebreak", - "unicode-width", ] [[package]] @@ -1468,12 +1466,6 @@ version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" -[[package]] -name = "unicode-linebreak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" - [[package]] name = "unicode-normalization" version = "0.1.22" @@ -1483,12 +1475,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-width" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" - [[package]] name = "uniffi" version = "0.27.1" diff --git a/uniffi_bindgen/Cargo.toml b/uniffi_bindgen/Cargo.toml index ba979cd362..54774a52e6 100644 --- a/uniffi_bindgen/Cargo.toml +++ b/uniffi_bindgen/Cargo.toml @@ -28,4 +28,6 @@ uniffi_meta = { path = "../uniffi_meta", version = "=0.27.1" } uniffi_testing = { path = "../uniffi_testing", version = "=0.27.1" } uniffi_udl = { path = "../uniffi_udl", version = "=0.27.1" } clap = { version = "4", default-features = false, features = ["std", "derive"], optional = true } -textwrap = "0.16" +# Don't include the `unicode-linebreak` or `unicode-width` since that functionality isn't needed for +# docstrings. +textwrap = { version = "0.16", features=["smawk"], default-features = false } diff --git a/uniffi_udl/Cargo.toml b/uniffi_udl/Cargo.toml index e101d09307..db62481949 100644 --- a/uniffi_udl/Cargo.toml +++ b/uniffi_udl/Cargo.toml @@ -13,6 +13,8 @@ readme = "../README.md" [dependencies] anyhow = "1" weedle2 = { version = "5.0.0", path = "../weedle2" } -textwrap = "0.16" +# Don't include the `unicode-linebreak` or `unicode-width` since that functionality isn't needed for +# docstrings. +textwrap = { version = "0.16", features=["smawk"], default-features = false } uniffi_meta = { path = "../uniffi_meta", version = "=0.27.1" } uniffi_testing = { path = "../uniffi_testing", version = "=0.27.1" }