diff --git a/Cargo.lock b/Cargo.lock index 8b689c7af..5e0c542e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3795,8 +3795,7 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "minijinja" version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c37e1b517d1dcd0e51dc36c4567b9d5a29262b3ec8da6cb5d35e27a8fb529b5" +source = "git+https://github.com/mitsuhiko/minijinja?rev=a5e7af5#a5e7af5aa19a1a1562e989fdcc27f3f20e115d19" dependencies = [ "percent-encoding", "serde", @@ -3808,14 +3807,15 @@ dependencies = [ [[package]] name = "minijinja-contrib" version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fe51f1a6a8285f03fcd1544d834234fe8db285f29e1c2253600c93b3ae19242" +source = "git+https://github.com/mitsuhiko/minijinja?rev=a5e7af5#a5e7af5aa19a1a1562e989fdcc27f3f20e115d19" dependencies = [ "minijinja", "rand", "serde", + "textwrap", "time", "time-tz", + "unicode_categories", ] [[package]] @@ -6509,6 +6509,12 @@ version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +[[package]] +name = "smawk" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" + [[package]] name = "snafu" version = "0.8.5" @@ -6791,6 +6797,17 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "textwrap" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" +dependencies = [ + "smawk", + "unicode-linebreak", + "unicode-width 0.1.14", +] + [[package]] name = "thiserror" version = "1.0.69" @@ -7223,6 +7240,12 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" +[[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.24" @@ -7276,6 +7299,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" +[[package]] +name = "unicode_categories" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" + [[package]] name = "unindent" version = "0.2.3" diff --git a/Cargo.toml b/Cargo.toml index 45db90203..22344d2b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -154,6 +154,9 @@ minijinja-contrib = { version = "2", features = [ "pycompat", "rand", "timezone", + "unicode_wordwrap", + "wordcount", + "wordwrap", ] } mlua = { version = "0.10", features = [ "luau", @@ -312,6 +315,10 @@ grex = { git = "https://github.com/pemistahl/grex", rev = "bbf3064" } # use modernized version of local_encoding local-encoding = { git = "https://github.com/slonopotamus/local-encoding-rs", branch = "travis-madness" } +# use unreleased MiniJinja with features we need for DP+ DRUF workflow +minijinja = { git = "https://github.com/mitsuhiko/minijinja", rev = "a5e7af5" } +minijinja-contrib = { git = "https://github.com/mitsuhiko/minijinja", rev = "a5e7af5" } + # use our patched fork of sled to get rid of unmaintained instant sled = { git = "https://github.com/dathere/sled", branch = "v0.34.7-bumped-parking_lot_to_0.12" }