Skip to content

Project structure and IPC utilities #393

@PrasannaPaithankar

Description

@PrasannaPaithankar

This issue is regarding:

1. The cargo.toml workspace structure
Wouldn't it be better to

[workspace]
members = ["src/uu/*"]

instead of implicit workspace member declaration used currently.
Also the editions used across different members is different (2021 or 2024). Not a concern but consistency would be nice if possible.

2. smartcols re-implementation? [edit: can use crate tabled or uutils-term-grid]
libsmartcols is surely very stable and useful package. But has unsafe calls (which is not concerning though) and can be implemented very well in rust as it is a simple output formatter. Could be helpful when complexity of the project increases rather than just using wrappers.

3. POSIX IPC extension to lsipc
I am working on adding the options to view the POSIX mqueue (done), sem and shm to lsipc.
I had done similarly to the original util-linux early this year (see util-linux/util-linux#3382)
Will create a PR ASAP.

4. Include ipcrm, ipcmk
Also working on the same.

5. Drop tool ipcs
ipcs has been superseded by lsipc. Is the implementation required?

Given we are re-implementing things, I feel we should strongly rethink about structuring, even if the formatting and internal behavior shifts slightly given it meets the functionality.

Please let me know your opinions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions