Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
component: [sqlite-compress, reglite]
component: [sqlite-compress, reglite, matcher]
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
Expand All @@ -64,7 +64,7 @@ jobs:
strategy:
fail-fast: false
matrix:
component: [sqlite-compress, reglite]
component: [sqlite-compress, reglite, matcher]
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
Expand Down Expand Up @@ -98,4 +98,4 @@ jobs:
log_level: debug
install_args: --env ${{ env.MISE_ENV }}
- name: Run Miri
run: mise run ${{ matrix.component }}:miri
run: mise run ${{ matrix.component }}:miri
3 changes: 3 additions & 0 deletions .mise/tasks/matcher/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
#MISE description="Build the project"
cargo build -p matcher
4 changes: 4 additions & 0 deletions .mise/tasks/matcher/clippy
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
#MISE description="Lint with clippy"

cargo clippy -p matcher --all-targets -- -D warnings
3 changes: 3 additions & 0 deletions .mise/tasks/matcher/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
#MISE description="Run tests"
cargo test -p matcher -- --test-threads=1
3 changes: 3 additions & 0 deletions .mise/tasks/matcher/validate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
#MISE description="Run all checks (fmt, clippy, test)"
#MISE depends=["fmt:dev", "matcher:clippy", "matcher:test"]
2 changes: 1 addition & 1 deletion .mise/tasks/sqlite-compress/clippy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#MISE description="Lint with clippy"

cargo clippy -p sqlite-compress --all-targets --no-default-features --features loadable_extension -- -D warnings
cargo clippy -p sqlite-compress --all-targets --no-default-features --features loadable_extension,like -- -D warnings
2 changes: 1 addition & 1 deletion .mise/tasks/sqlite-compress/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#MISE description="Run tests"
cargo test -p sqlite-compress -- --test-threads=1
cargo test -p sqlite-compress --features like -- --test-threads=1
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ members = [
"sqlite-compress",
"reglite",
"crates/sqlite-ffi",
"crates/sqlite-ffi-macros",
"crates/sqlite-ffi-macros",
"crates/matcher",
]
resolver = "2"

[workspace.dependencies]
thiserror = "2.0"
libsqlite3-sys = { version = "=0.30.1", features = ["bundled"], package = "libsqlite3-sys" }
sqlite-ffi = { version = "0.1.0", path = "crates/sqlite-ffi", default-features = false }
sqlite-ffi-macros = { version = "0.1.0", path = "crates/sqlite-ffi-macros" }
sqlite-ffi-macros = { version = "0.1.0", path = "crates/sqlite-ffi-macros" }
matcher = { version = "0.1.0", path = "crates/matcher" }
11 changes: 11 additions & 0 deletions crates/matcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "matcher"
authors = ["Caido Labs Inc. <dev@caido.io>"]
repository = "https://github.com/caido/sqlite-rs"
license = "MIT"
version = "0.1.0"
edition = "2024"

[dependencies]
memchr = { version = "2.8.3", default-features = false, features = ["alloc"] }
thiserror = { workspace = true }
9 changes: 9 additions & 0 deletions crates/matcher/src/errors.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use std::io;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum MatcherError {
#[error(transparent)]
Io(#[from] io::Error),
}
6 changes: 6 additions & 0 deletions crates/matcher/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mod errors;
mod matcher;
mod utils;

pub use errors::MatcherError;
pub use matcher::Matcher;
Loading
Loading