Harsh Shandilya
6ad513cc1b
fix(config): skip empty patterns in `file_filter`
...
My NixOS module inserts these and I'm too lazy to fix this in Nix
2023-12-24 00:47:26 +05:30
Harsh Shandilya
40f1a31e73
fix: fmt
2023-11-09 15:32:17 +05:30
Harsh Shandilya
8e883418d3
fix: add detailed error messages for likely-fail operations
2023-11-09 15:26:33 +05:30
Harsh Shandilya
11d44d3ccd
refactor: use explicit fsync
...
We were previously relying on scoped lifetimes and automatic
`Drop` invocations to sync files but sadly that doesn't seem to block
the program properly to allow the `fsync` to happen before the next
loop iteration, so now we're explicitly calling `File::sync_all` to
see if it is able to avoid resource starvation on the disk by waiting
for the sync to complete before working on the next file.
2023-11-09 15:04:41 +05:30
Harsh Shandilya
ee3a2ca537
fix: check target dir existence upfront
2023-11-05 20:36:48 +05:30
Harsh Shandilya
88a397edcb
fix: better handle file lifetimes
...
This helps ensure that the file lengths are correct
2023-10-22 15:06:34 +05:30
Harsh Shandilya
e488c3a553
fix: validate file length when copying
2023-10-22 14:00:07 +05:30
Harsh Shandilya
25346d729b
feat(config): flatten config path and structure
2023-08-20 20:20:44 +05:30
Harsh Shandilya
ee08362f96
feat: rename project to `rucksack`
2023-08-20 20:19:36 +05:30
Harsh Shandilya
0ca8bcbf83
chore(config): add tests for file filter
2023-08-14 18:57:50 +05:30
Harsh Shandilya
c018b6000d
feat(config): allow specifying a custom file filter
2023-08-14 18:56:31 +05:30
Harsh Shandilya
450fb707c2
fix: use base name to compute target
2023-08-14 18:03:57 +05:30
Harsh Shandilya
5dc720deec
feat(config): allow setting custom config file via env var
2023-08-14 17:34:02 +05:30
Harsh Shandilya
8ab7c5f61b
feat: migrate from `toml` to `basic-toml`
...
toml>=0.5 picked up a lot of complexity via the toml_edit crate
2023-06-25 00:13:31 +05:30
Harsh Shandilya
c4a7e9df8e
Revert "fix(watch): warn and ignore missing directories"
...
This reverts commit e145df39bf
.
2023-02-04 21:33:33 +00:00
Harsh Shandilya
a9f089f65d
Revert "fix: ensure at least one valid source existed"
...
This reverts commit 64b82aa199
.
2023-02-04 21:33:26 +00:00
Harsh Shandilya
28b7304557
Revert "fix: `cargo fmt`"
...
This reverts commit f900224385
.
2023-02-04 21:33:21 +00:00
Harsh Shandilya
f900224385
fix: `cargo fmt`
2023-02-03 20:11:20 +00:00
Harsh Shandilya
64b82aa199
fix: ensure at least one valid source existed
2023-02-03 20:08:22 +00:00
Harsh Shandilya
e145df39bf
fix(watch): warn and ignore missing directories
2023-02-03 20:04:27 +00:00
Harsh Shandilya
0fe1bf341b
fix: simplify `main`
2022-12-25 16:21:58 +00:00
Harsh Shandilya
7d2eee8bad
fix: allow graceful exit
2022-12-24 07:36:11 +00:00
Harsh Shandilya
7481bf23d6
refactor: remove unnecessary intermediate variable
2022-10-15 01:49:40 +05:30
Harsh Shandilya
48c72b601f
refactor: `mod trace` -> `mod logging`
2022-08-18 10:24:11 +05:30
Harsh Shandilya
3be52d4562
fix(watch): lower log level for subscriptions to `trace`
2022-08-18 10:22:48 +05:30
Harsh Shandilya
65aa4c0c75
refactor(watch): add more logging
2022-08-18 00:42:24 +05:30
Harsh Shandilya
cd421e8d54
feat(trace): do not clear field prefixes
2022-08-15 15:43:48 +05:30
Harsh Shandilya
7c2e10a52b
feat: add `journald` support
2022-08-15 01:20:45 +05:30
Harsh Shandilya
172db6f8e2
chore: run `cargo fmt`
2022-08-14 19:54:06 +05:30
Harsh Shandilya
f4765f7480
refactor: make logging more useful
2022-08-14 00:51:59 +05:30
Harsh Shandilya
a81c930d86
refactor: avoid unnecessary clones
2022-08-14 00:49:54 +05:30
Harsh Shandilya
55512d6b9c
fix: address Clippy lints
2022-08-10 10:41:55 +00:00
Harsh Shandilya
b3c9526f61
feat: implement moving of files
2022-08-10 14:21:11 +05:30
Harsh Shandilya
52b6adfaf3
feat: rework to only support a single bucket
2022-08-10 13:44:26 +05:30
Harsh Shandilya
af6d93ef7f
feat: await all subscriptions together
2022-08-10 12:34:22 +05:30
Harsh Shandilya
1ffc26db5c
fix: attach path as context when generating watch subscriptions
2022-08-10 12:29:23 +05:30
Harsh Shandilya
589cd3bdff
feat: switch logging to `tracing_subscriber`
2022-07-12 15:57:49 +05:30
Harsh Shandilya
8bd3ecce68
feat: wire in config with subscription logic
2022-07-12 15:49:53 +05:30
Harsh Shandilya
86706ce6d9
feat: add config module
2022-07-10 17:56:46 +05:30
Harsh Shandilya
fa4ae1cb81
Initial commit
2022-07-10 17:56:41 +05:30