Skip to content

last: add [[bin]] so the binary is named last - #631

Merged
sylvestre merged 1 commit into
uutils:mainfrom
MsfPablo:fix/last-bin-metadata
Aug 18, 2026
Merged

last: add [[bin]] so the binary is named last#631
sylvestre merged 1 commit into
uutils:mainfrom
MsfPablo:fix/last-bin-metadata

Conversation

@MsfPablo

Copy link
Copy Markdown
Contributor

Fixes #630.

src/uu/last/Cargo.toml declares [lib] but no [[bin]], so cargo falls back to the package name and emits target/release/uu_last. src/uu/last/src/main.rs already exists with the usual uucore::bin!(uu_last);, so only the manifest section was missing.

Added it in the same shape the other utilities use (renice, etc.). Checked the rest of src/uu/*last was the only one affected.

Before:

$ ls target/debug | grep last
libuu_last.rlib
uu_last

After:

$ ls target/debug | grep last
last
libuu_last.rlib

Left the missing description field alone; that one is repo-wide and not what the issue is about.

@sylvestre
sylvestre merged commit 22cf934 into uutils:main Aug 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

last: No bin metadata

2 participants