Skip to content

Commit

Permalink
Merge pull request #40 from thomasschafer/tschafer-use-parallel-walker
Browse files Browse the repository at this point in the history
Perform search in separate thread and stream in results
  • Loading branch information
thomasschafer authored Nov 30, 2024
2 parents 1be6016 + dbae897 commit cde73d4
Show file tree
Hide file tree
Showing 15 changed files with 1,351 additions and 702 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ jobs:
- name: Lint
run: cargo clippy

- name: Run tests
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
run: cargo test --verbose -- --test-threads=1

- name: Run tests (Unix)
if: matrix.os != 'windows-latest'
run: cargo test --verbose
15 changes: 13 additions & 2 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scooter"
version = "0.1.2"
version = "0.2.0"
edition = "2021"
authors = ["[email protected]"]
license = "MIT"
Expand All @@ -14,6 +14,7 @@ categories = ["command-line-utilities"]
[dependencies]
anyhow = "1.0.86"
clap = { version = "4.5.18", features = ["derive"] }
content_inspector = "0.2.4"
crossterm = { version = "0.27", features = ["event-stream"] }
dirs = "5.0.1"
etcetera = "0.8.0"
Expand All @@ -31,6 +32,7 @@ tokio = { version = "1.40.0", features = ["full"] }

[dev-dependencies]
tempfile = "3.12.0"
rand = "0.8.5"

[lib]
name = "scooter"
Expand Down
Binary file modified media/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly" # Allows us to use MappedLockGuard
Loading

0 comments on commit cde73d4

Please sign in to comment.