Skip to content

Remove once-cell-regex from dependencies#500

Merged
FabianLars merged 7 commits into
tauri-apps:devfrom
sftse:dev
Jan 15, 2026
Merged

Remove once-cell-regex from dependencies#500
FabianLars merged 7 commits into
tauri-apps:devfrom
sftse:dev

Conversation

@sftse
Copy link
Copy Markdown
Contributor

@sftse sftse commented Jan 13, 2026

once-cell-regex is a tiny crate that doesn't need to be a dependency, the functions are simple enough to inline into the crate.

This is a very, very small contribution towards the auditability of Tauri, which has a lot of dependencies.

@FabianLars
Copy link
Copy Markdown
Member

as much as i hate macros, i don't think this is an equivalent replacement. The macro/crate will create a new function for each call while your function approach will make it re-use the same regex for all calls after the first.

@sftse
Copy link
Copy Markdown
Contributor Author

sftse commented Jan 13, 2026

That was an unforced, dumb mistake..

@FabianLars FabianLars merged commit a47ecb9 into tauri-apps:dev Jan 15, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Jan 15, 2026
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