Skip to content

Commit

Permalink
Release version 0.1.1 (#5)
Browse files Browse the repository at this point in the history
* Release version 0.1.1

* Update README

* Update README
  • Loading branch information
vbkaisetsu authored Sep 13, 2023
1 parent 4846b60 commit 7ca0c07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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 = "trie-match"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
rust-version = "1.60"
authors = [
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
[![Build Status](https://github.com/daac-tools/trie-match/actions/workflows/rust.yml/badge.svg)](https://github.com/daac-tools/trie-match/actions)
[![Slack](https://img.shields.io/badge/join-chat-brightgreen?logo=slack)](https://join.slack.com/t/daac-tools/shared_invite/zt-1pwwqbcz4-KxL95Nam9VinpPlzUpEGyA)

This macro speeds up Rust's `match` expression when it compares strings.
This macro speeds up Rust's `match` expression for comparing strings by using a
compact double-array data structure.

## Usage

Expand Down Expand Up @@ -65,6 +66,7 @@ to achieve efficient state-to-state traversal, and the time complexity becomes

The followings are different from the normal `match` expression:

* Only supports string comparison.
* The wildcard is evaluated last. (The normal `match` expression does not
match patterns after the wildcard.)
* Pattern bindings are unavailable.
Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! # `trie_match! {}`
//!
//! This macro uses a compact double array trie for Rust's `match` expression to
//! speed up conditional branching by strings.
//! This macro speeds up Rust's `match` expression for comparing strings by using a compact
//! double-array data structure.
//!
//! ## Usage
//!
Expand All @@ -28,6 +28,7 @@
//!
//! The followings are different from the normal `match` expression:
//!
//! * Only supports string comparison.
//! * The wildcard is evaluated last. (The normal `match` expression does not
//! match patterns after the wildcard.)
//! * Pattern bindings are unavailable.
Expand Down

0 comments on commit 7ca0c07

Please sign in to comment.