my fork of dmp
Optional dependency fix for target `wasm32-unknown-unknown`
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/lib.rs | 2 |
4 files changed, 9 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e3723a..dfb308e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG.md +## 0.2.1 +Fix: + + - fixed bug in optional dependency `chrono` based on target `wasm32-unknown-unknown` + ## 0.2.0 Features: @@ -1,6 +1,6 @@ [package] name = "diff-match-patch-rs" -version = "0.2.0" +version = "0.2.1" edition = "2021" authors = ["Anubhab Bandyopadhyay"] homepage = "https://docs.rs/diff-match-patch-rs" @@ -14,7 +14,7 @@ categories = ["algorithms", "text-processing", "text-editors", "wasm"] [dependencies] percent-encoding = "2" -[target_arch.'cfg(wasm32-unknown-unknown)'.dependencies] +[target.wasm32-unknown-unknown.dependencies] chrono = "0" [package.metadata.docs.rs] @@ -21,7 +21,7 @@ A very **fast**, **accurate** and **wasm ready** port of [Diff Match Patch](http ```toml [dependencies] -diff-match-patch-rs = "0.2.0" +diff-match-patch-rs = "0.2.1" ``` ### `Effitient` mode @@ -23,7 +23,7 @@ //! //! ```toml //! [dependencies] -//! diff-match-patch-rs = "0.2.0" +//! diff-match-patch-rs = "0.2.1" //! ``` //! //! ### `Effitient` mode |