Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Mar 3, 2021
1 parent 954b518 commit c1998a6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "matchit"
version = "0.3.0"
version = "0.3.1"
license = "MIT"
authors = ["ibraheem <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MatchIt

[![Documentation](https://img.shields.io/badge/docs-0.2.0-4d76ae?style=for-the-badge)](https://docs.rs/matchit/0.2.0)
[![Documentation](https://img.shields.io/badge/docs-0.3.1-4d76ae?style=for-the-badge)](https://docs.rs/matchit/0.3.1)
[![Version](https://img.shields.io/crates/v/matchit?style=for-the-badge)](https://crates.io/crates/matchit)
[![License](https://img.shields.io/crates/l/matchit?style=for-the-badge)](https://crates.io/crates/matchit)
[![Actions](https://img.shields.io/github/workflow/status/ibraheemdev/matchit/Rust/master?style=for-the-badge)](https://github.com/ibraheemdev/matchit/actions)
Expand Down
18 changes: 18 additions & 0 deletions src/chi.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use std::collections::HashMap;

pub enum NodeType {
Static,
Regex,
Param,
CatchAll
}

pub struct Node<K, V> {
typ: NodeType,
label: u8,
tail: u8,
prefix: Vec<u8>,
regex: regex::Regex,
endpoints: HashMap<K, V>,
children: [Vec<Node<K, V>>; 4]
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![deny(rust_2018_idioms)]

//! [![Documentation](https://img.shields.io/badge/docs-0.2.0-4d76ae?style=for-the-badge)](https://docs.rs/matchit/0.2.0)
//! [![Documentation](https://img.shields.io/badge/docs-0.3.1-4d76ae?style=for-the-badge)](https://docs.rs/matchit/0.3.1)
//! [![Version](https://img.shields.io/crates/v/matchit?style=for-the-badge)](https://crates.io/crates/matchit)
//! [![License](https://img.shields.io/crates/l/matchit?style=for-the-badge)](https://crates.io/crates/matchit)
//! [![Actions](https://img.shields.io/github/workflow/status/ibraheemdev/matchit/Rust/master?style=for-the-badge)](https://github.com/ibraheemdev/matchit/actions)
Expand Down

0 comments on commit c1998a6

Please sign in to comment.