worker: name the binary weed-worker

It is the Rust side of `weed worker`, the way weed-volume is the Rust side of
`weed volume`, and lance is the first family of jobs it carries rather than
the only one it ever will. The crate keeps its own name: when a second family
arrives the bin target moves to a crate of its own, under this name.

Claude-Session: https://claude.ai/code/session_01Rkp1Mw5E89Jp6dzJFYiMrm
This commit is contained in:
Chris Lu
2026-08-22 01:38:23 -07:00
parent 3563738699
commit 414d80aa52
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -7,8 +7,11 @@ description = "SeaweedFS maintenance worker for Lance tables"
[lib]
name = "weed_lance_worker"
# The binary is not named for lance: it is the Rust side of `weed worker`, and
# the job families it registers will outgrow this crate. When a second one
# arrives the bin target moves to a crate of its own under the same name.
[[bin]]
name = "weed-lance-worker"
name = "weed-worker"
path = "src/main.rs"
[dependencies]
+2 -2
View File
@@ -13,8 +13,8 @@ use weed_lance_worker::metrics::LanceMetrics;
/// language and an operator should not have to learn a second set of names.
#[derive(Parser, Debug)]
#[command(
name = "weed-lance-worker",
about = "SeaweedFS maintenance worker for Lance tables"
name = "weed-worker",
about = "SeaweedFS maintenance worker"
)]
struct Args {
/// Admin server gRPC address.