Skip to content

Commit 1414ae6

Browse files
authored
Daemon server rust port (vercel/turborepo#4306)
### Description This ports the daemon server to rust, leaving only run an prune in go-land. This needs some polish but I would like to get some feedback now. I have also added a flag for running the grpc server over http instead, which is useful for debugging. It has support for reflection, so can be used via postman or grpcurl. For code reviews, it should be ok to go in commit-order. Outstanding parts: - [x] incomplete tests in glob watch - [x] error handling for watch errors - [ ] logging / log rotation Out of scope (for now): - startup performance pass ### Testing Instructions This is a drop-in replacement for the go server, so `turbo run` in any repo should work identically.
1 parent 16ab2d4 commit 1414ae6

File tree

8 files changed

+765
-97
lines changed

8 files changed

+765
-97
lines changed

crates/glob-match/benches/bench.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ fn globset(pat: &str, s: &str) -> bool {
1717
}
1818

1919
fn glob_match_crate(b: &mut Criterion) {
20-
b.bench_function("mine", |b| b.iter(|| assert!(glob_match(GLOB, PATH))));
20+
b.bench_function("mine", |b| {
21+
b.iter(|| assert!(glob_match(GLOB, PATH).unwrap_or_default()))
22+
});
2123
}
2224

2325
fn glob_crate(b: &mut Criterion) {

0 commit comments

Comments
 (0)