Skip to content

workspace: refactor to merge util-shaped crates - #424

Open
npry wants to merge 4 commits into
mainfrom
npry/refactor.util
Open

npry wants to merge 4 commits into
mainfrom
npry/refactor.util

Conversation

@npry

@npry npry commented Sep 21, 2026

Copy link
Copy Markdown
Member

Merge ts_future_util and ts_hexdump into a single ts_util crate as we discussed in sync last (?) week, with functionality gated by feature flags.

Also snuck in the deletion of ts_transport_tun, since it's unused and we haven't touched it for a long time/to my knowledge have no imminent plans to do so.

Justification: TUN devices aren't on our roadmap anytime soon, this is
a holdover from ~a year ago.

Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I59355314f003d85f329cb25b952f5d4f6a6a6964
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: Ic7d17a7297d39fd986ff5af3835d6e926a6a6964
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I06a6bdd98e186a742f58b296613c5ed96a6a6964
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I2ace6020fea2e748925451f64935c5dc6a6a6964
@npry
npry force-pushed the npry/refactor.util branch from f83d437 to f7bcc3e Compare September 21, 2026 15:13

@dylan-tailscale dylan-tailscale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, one question, otherwise lgtm - thanks!!

Comment thread ts_util/src/fmt/hex.rs
use super::*;

#[test]
fn ascii_for_byte() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: what's the motivation for these becoming tests instead of examples? I'm totally fine with it here (they're not really useful this deep in our codebase), but interested if there's a rule or general vibe I've missed here, or if it's just because those functions aren't publicly accessible outside the crate.

Comment thread supply-chain/config.toml

[policy.ts_underlay_router]
audit-as-crates-io = false

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[policy.ts_util]
audit-as-crates-io = false

Needs a policy.ts_util section for the new crate

This branch has not been deployed

No deployments
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.

2 participants