my fork of dmp
Optional dependency fix for target `wasm32-unknown-unknown`
Anubhab Bandyopadhyay 2024-09-02
parent 02c002f · commit 987177b
-rw-r--r--CHANGELOG.md5
-rw-r--r--Cargo.toml4
-rw-r--r--README.md2
-rw-r--r--src/lib.rs2
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:
diff --git a/Cargo.toml b/Cargo.toml
index 5b035fe..e7e0481 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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]
diff --git a/README.md b/README.md
index b2ca942..f0ec8bb 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/src/lib.rs b/src/lib.rs
index da9cadf..4b0ba80 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,7 +23,7 @@
//!
//! ```toml
//! [dependencies]
-//! diff-match-patch-rs = "0.2.0"
+//! diff-match-patch-rs = "0.2.1"
//! ```
//!
//! ### `Effitient` mode