2cc54cb55b
Replaced thiserror with custom impl.
...
Added `ExitResult` for returning from `main`.
This allows us to format errors more properly without having to go through `anyhow::Error`.
2023-12-09 18:32:53 +00:00
1cf832759a
Switched decl_error to a macro_rules macro.
...
This is due to some issues related to field privacy. Intermittently we'd get an error that `AppError::{Shared, Other}` weren't visible to the `thiserror::Error` derive macro, so this fixes that for now.
2023-12-09 17:44:31 +00:00
143816e0e6
decl_error now requires the Shared and Other variant types.
...
This is due to an intermittent compiler error that says that those fields aren't visible to `derive(thiserror::Error)`.
2023-12-09 16:49:04 +00:00
4e030395fc
AppError is now generated with a macro.
2023-12-09 16:38:05 +00:00
19aa81cd00
Removed build::file_modified_time.
...
It was already possible to get the build time using `Metadata::modified`, despite it being fallible.
2023-12-09 11:26:24 +00:00
0b9a8078b6
Updated to rustc 1.74.0-nightly (2f5df8a94 2023-08-31).
2023-09-07 03:43:23 +01:00
4662d73997
Added ability to strip a command argument if it fails.
2023-08-23 15:28:54 +01:00
6f5329628a
Reworked rule execution to allow recursive commands.
2023-08-23 14:39:35 +01:00
9db44fbee3
Added and moved lints to Cargo.toml.
2023-06-18 17:42:59 +01:00
955c433077
Removed dead functions.
2023-01-09 08:17:03 +00:00
a4aa94d68e
Removed CowArcStr.
...
Most `Rules` members now use a `CowStr` or `&str` to store strings.
Watcher now receives events locally instead of on a separate task.
Watcher can now watch new dependencies as they're used.
2023-01-06 09:40:42 +00:00
13399d8c2d
Command execution is now measured.
2022-10-10 17:48:46 +01:00
31442ac356
Ast now borrows from the deserializer where possible.
2022-09-24 22:36:40 +01:00
8268132741
Added some restriction clippy lints.
2022-09-24 01:55:27 +01:00
03da0ddaf4
Added some nursery clippy lints.
2022-09-24 01:30:13 +01:00
d8ab30c7ae
Replaced std::fs usages with tokio::fs where possible.
2022-09-24 00:35:27 +01:00
a654b7d781
Started work on dependency watching.
2022-09-22 21:21:16 +01:00
aae1ae0b3f
Merged exec_cwd into exec.
2022-09-19 09:18:21 +01:00
72b8f4963e
Merged all rule dependencies into a single field.
...
Separated rule outputs onto their own type.
2022-09-19 08:28:55 +01:00
6dbd586f6e
Replaced all remaining instances of anyhow (except for main's return type).
2022-09-19 04:32:35 +01:00
280c7d49e9
Now using AppError in expression expanding and matching.
2022-09-19 03:29:34 +01:00
d91673492c
Now using AppError in more places.
2022-09-19 03:21:35 +01:00
6cf7472a84
Started work on creating a global error.
2022-09-19 02:41:09 +01:00