Skip to content

Commit 3a68b60

Browse files
committed
feat: initial release
0 parents  commit 3a68b60

File tree

24 files changed

+3226
-0
lines changed

24 files changed

+3226
-0
lines changed

.github/workflows/rust.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
CI: 1
10+
11+
jobs:
12+
fmt:
13+
runs-on: windows-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: dtolnay/rust-toolchain@master
17+
with:
18+
# Required for some of the arguments
19+
toolchain: nightly
20+
components: rustfmt,clippy
21+
- name: rustfmt
22+
run: cargo fmt --all -- --check
23+
- name: clippy
24+
run: cargo clippy --all-targets --all-features
25+
26+
tests:
27+
runs-on: windows-latest
28+
needs: fmt
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: dtolnay/rust-toolchain@stable
32+
- uses: Swatinem/rust-cache@v2
33+
- name: Show version
34+
run: |
35+
rustup show
36+
cargo --version
37+
rustc --version
38+
- name: Build
39+
run: cargo build --all-targets
40+
- name: Test
41+
run: cargo test -- --nocapture
42+
env:
43+
RUST_LOG: trace
44+
deploy:
45+
runs-on: windows-latest
46+
needs: tests
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: dtolnay/rust-toolchain@stable
50+
- uses: Swatinem/rust-cache@v2
51+
- uses: katyo/publish-crates@v2
52+
with:
53+
path: './bmatcher-core/'
54+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
55+
dry-run: ${{ github.ref != 'refs/heads/master' }}
56+
- uses: katyo/publish-crates@v2
57+
with:
58+
path: './bmatcher-proc/'
59+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
60+
dry-run: ${{ github.ref != 'refs/heads/master' }}
61+
- uses: katyo/publish-crates@v2
62+
with:
63+
path: './bmatcher/'
64+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
65+
dry-run: ${{ github.ref != 'refs/heads/master' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[workspace]
2+
resolver = "2"
3+
members = ["bmatcher", "bmatcher-core", "bmatcher-proc", "example"]
4+
5+
[workspace.package]
6+
version = "0.1.0"
7+
authors = ["Markus Hadenfeldt <[email protected]>"]
8+
edition = "2021"
9+
description = "bmatcher is a flexible and efficient binary pattern matching library designed to help you search and match binary data."
10+
repository = "https://github.com/WolverinDEV/bmatcher"
11+
license-file = "LICENSE"

0 commit comments

Comments
 (0)