[PR #3475] [MERGED] inline static rsa keys #2994

Closed
opened 2025-10-09 18:15:12 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3475
Author: @vilgotf
Created: 4/23/2023
Status: Merged
Merged: 4/24/2023
Merged by: @dani-garcia

Base: mainHead: inline-statics


📝 Commits (1)

📊 Changes

1 file changed (+5 additions, -8 deletions)

View changed files

📝 src/auth.rs (+5 -8)

📄 Description

From my understanding, rust never inlines static variables meaning that these variables are separately statically allocated and wasting space.

Even if there's not codegen diff, separately defining these static variables is (imo) code smell.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/3475 **Author:** [@vilgotf](https://github.com/vilgotf) **Created:** 4/23/2023 **Status:** ✅ Merged **Merged:** 4/24/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `inline-statics` --- ### 📝 Commits (1) - [`55c1b6e`](https://github.com/dani-garcia/vaultwarden/commit/55c1b6e8d5860cded720b079de25e5de52cad026) inline static rsa keys ### 📊 Changes **1 file changed** (+5 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/auth.rs` (+5 -8) </details> ### 📄 Description From my understanding, rust never inlines static variables meaning that these variables are separately statically allocated and wasting space. Even if there's not codegen diff, separately defining these static variables is (imo) code smell. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:15:12 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2994