Commit graph

18 commits

Author SHA1 Message Date
ppom
60a65e782d
Match: Vec -> SmallVec 2025-06-27 12:00:00 +02:00
ppom
3f3236cafb
v2.1.0 2025-06-24 12:00:00 +02:00
ppom
8f5511b415
v2.0.1 2025-06-05 12:00:00 +02:00
ppom
02f13a263e
fix release 2025-06-05 12:00:00 +02:00
ppom
14aa859e2d
cargo update 2025-05-28 12:00:00 +02:00
ppom
c5dbb4e29c
Remove bincode & fjall crates 2025-05-28 12:00:00 +02:00
ppom
9c8be2f2de
Working db rewrite using fjall 2025-05-28 12:00:00 +02:00
ppom
2facac9fbd
WIP fjall 2025-05-28 12:00:00 +02:00
ppom
660a7d5a58
WIP 2025-05-28 12:00:00 +02:00
ppom
1ec558e559 v2.0.0-rc2 release
- Cross compilation to amd64 and arm64
- Fully static binaries
- Debian packages
- Man pages
- Shell completions
- Systemd service
2025-02-21 12:00:00 +01:00
ppom
8cc32d122e WIP: use sled instead of custom db implementation
Goal is to directly use sled as a drop-in replacement for BTreeMaps,
which already maintain the state of reaction.
Those maps are now persisted by sled.

A lot of code is no longer needed, and is deleted in this commit.

This commit focuses on adapting FilterManager to sled.

TODO
- adapt ActionManager as well
- at startup, clean old matches
- at startup, clean old actions
- at startup, run still relevant actions
- at startup, remove sled trees that no longer correspond to something
  in the configuration
- refactor socket.rs to remove complex state sharing, as sled can now be
  directly used.
2025-02-05 12:00:00 +01:00
Baptiste Careil
b143a49942 Ask nicely the stream process to exit on shutdown
Introduces the nix dependency for the signal constants and the kill(1)
function.

The child process is now delegated to a dedicated function handle_child
that will ensure it terminated and reclaimed. On shutdown, this function
first ask nicely using SIGTERM the stream process to exit (maybe we'll
want to make that signal configurable as SIGINT is a good candidate as
well).

After 15s, if the child process still did not exit, it is killed with
SIGKILL. Which is usually enough. But to make sure not to block
reaction's shutdown (which could interfere unintentionally with, for
example, the management of the database), there is another 5s timeout
after which we give up on waiting for the child process since at this
point it's most likely deadlocked in some way at the kernel level.

handle_child now handles the error message about the stream command
early exit. So there is no need for a communication channel between this
function and handle_io which just processes the process' output.
2024-11-22 16:52:25 +01:00
Baptiste Careil
78f03eb643 Restore default features of futures for the select macro 2024-11-19 14:54:53 +00:00
ppom
8579e30890 test infrastructure, new conf's state_directory, less deps
reaction's configuration now has a state_directory optional member,
which is where it will save its databases. defaults to cwd.

added a lot of code necessary to properly test databases.
The new tests are currently failing, which is good : they'll permit
to hunt down this database consistency bug.

also removed some indirect dependencies via features removal,
and moved test dependencies to dedicated [dev-dependencies]

also small fix on an nft46.c function type and empty conf file
for ccls LSP server.
2024-11-13 12:00:00 +01:00
ppom
a05e05750c Packaging for Rust 2024-10-24 12:00:00 +02:00
ppom
a80e3764f1 version 2.0.0-rc1 2024-10-24 12:00:00 +02:00
ppom
7deb2b4625 Remove tokio-console 2024-10-24 12:00:00 +02:00
ppom
3dd97523fd Move new rust codebase to root dir 2024-10-24 12:00:00 +02:00
Renamed from rust/Cargo.lock (Browse further)