aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-26 12:00:57 +0000
committerFuwn <[email protected]>2022-03-26 12:02:20 +0000
commit124a583b60668b05d8e5c2ccd75b9636802da1bf (patch)
tree92b3c69b34fe28b785b7c55ad8021120e595e4df /Cargo.toml
parentrefactor(mount): dynamic format (diff)
downloadwindmark-124a583b60668b05d8e5c2ccd75b9636802da1bf.tar.xz
windmark-124a583b60668b05d8e5c2ccd75b9636802da1bf.zip
feat(mount): use a sophisticated route matcher
The [`matchit`](https://github.com/ibraheemdev/matchit) crate is a real lifesaver... Before this commit, I had manually implemented a dynamic pattern matcher for routes (which only supported one pattern per route) that worked; just not very well. While searching for a way to implement multiple patterns per route, I landed upon two crates: [`matchit`](https://github.com/ibraheemdev/matchit) and [`urlmatch`](https://github.com/SergeiMinaev/urlmatch). Ultimately, I settled with `matchit` because it seemed a lot more mature and supported nearly everything which I was looked for!
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bd88e1d..2866375 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -31,3 +31,4 @@ log = { version = "0.4.16", optional = true }
# URL
url = "2.2.2"
regex = "1.5.5"
+matchit = "0.5.0"