Skip to content

style: standardize imports across the workspace - #364

Merged
tisonkun merged 8 commits into
apache:mainfrom
tisonkun:codex/crate-imports
Oct 11, 2026
Merged

tisonkun merged 8 commits into
apache:mainfrom
tisonkun:codex/crate-imports

Conversation

@tisonkun

@tisonkun tisonkun commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Standardize Rust imports across the library, tests, benchmarks, examples, and doctests. Start ordinary intra-crate imports at crate::, retain local pub use self::... re-exports, and reuse use super::* in unit tests. Preserve original symbol names and meaningful qualifiers, such as iter::once and tokio::time::sleep, to make the operation and its source or runtime clear. Document these conventions in AGENTS.md. Public APIs and behavior are unchanged.

Validated with cargo x lint, cargo x check (26 feature configurations), cargo x test (595 tests, including doctests), and cargo x bench -- --test (both benchmark targets).

@tisonkun
tisonkun enabled auto-merge (squash) October 11, 2026 13:39
@tisonkun
tisonkun merged commit 5ddd9ad into apache:main Oct 11, 2026
9 checks passed
@tisonkun
tisonkun deleted the codex/crate-imports branch October 11, 2026 13:40
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.

1 participant