Skip to content

deps: removed unneeded once_cell dependency if favor of std::sync::LazyLock - #11066

Open
aectaan wants to merge 1 commit into
apache:mainfrom
aectaan:aectaan/oncelock_remove
Open

deps: removed unneeded once_cell dependency if favor of std::sync::LazyLock#11066
aectaan wants to merge 1 commit into
apache:mainfrom
aectaan:aectaan/oncelock_remove

Conversation

@aectaan

@aectaan aectaan commented Sep 12, 2026

Copy link
Copy Markdown

Rationale for this change

There is no reason to keep external crate dependency since the same functionality is included in std.

What changes are included in this PR?

Drop-in replacements of once_cell::sync::Lazy to std::sync::LazyLock

Are these changes tested?

Not needed, functionality not changed

Are there any user-facing changes?

No user-facing changes

@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate arrow-avro arrow-avro crate labels Sep 12, 2026

@Rich-T-kid Rich-T-kid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense to me, thanks @aectaan

Comment thread arrow-flight/Cargo.toml
Comment on lines 45 to -64
@@ -61,7 +60,7 @@ all-features = true

[features]
default = []
flight-sql = ["dep:arrow-arith", "dep:arrow-ord", "dep:arrow-row", "dep:arrow-select", "dep:arrow-string", "dep:once_cell"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-avro arrow-avro crate arrow-flight Changes to the arrow-flight crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants