Skip to content

Commit 71934d9

Browse files
committed
add files
1 parent b162330 commit 71934d9

File tree

4 files changed

+53
-9
lines changed

4 files changed

+53
-9
lines changed

.github/workflows/deploy.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
override: true
17+
- uses: katyo/publish-crates@v2
18+
with:
19+
registry-token: ${{ secrets.CRATES_API_TOKEN }}

.github/workflows/rust.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Test & Lint
22+
run: |
23+
cargo test
24+
cargo test --features serde
25+
cargo clippy

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# RegexSolver
22

3-
[Homepage](https://regexsolver.com) | [Online Demo](https://regexsolver.com/demo) | [Documentation](https://docs.regexsolver.com) | [Developer Console](https://console.regexsolver.com)
3+
[![Crates.io Version](https://img.shields.io/crates/v/regexsolver)](https://crates.io/crates/regexsolver)
44

5-
RegexSolver is a comprehensive toolkit designed for working with regular expressions, enabling you to manipulate them as sets.
5+
This repository contains the code of RegexSolver engine.
66

7-
## Features
7+
## Installation
88

9-
- **Intersection**: Find the common patterns between multiple regular expressions.
10-
- **Union**: Combine multiple regular expressions into a single, unified expression.
11-
- **Subtraction/Difference**: Subtract one regular expression from another.
12-
- **Equivalence**: Determine if two regular expressions match the same set of strings.
13-
- **Subset**: Check if one regular expression is a subset of another.
9+
Add the following line in your `Cargo.toml`:
10+
11+
```toml
12+
[dependencies]
13+
regexsolver = "0.1"
14+
```

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pub type IntMap<Key, Value> = HashMap<Key, Value, BuildHasherDefault<NoHashHashe
2626
pub type IntSet<Key> = HashSet<Key, BuildHasherDefault<NoHashHasher<Key>>>;
2727
pub type Range = RangeSet<Char>;
2828

29-
3029
/// A term is either:
3130
/// - a regular expression
3231
/// - an automaton

0 commit comments

Comments
 (0)