Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ shielder-relayer = { path = "crates/shielder-relayer" }
shielder-setup = { path = "crates/shielder-setup" }
type-conversions = { path = "crates/type-conversions" }
transcript = { path = "crates/transcript" }

#[profile.release]
lto = "fat"
3 changes: 3 additions & 0 deletions tee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ ecies-encryption-lib = { git = "https://github.com/Cardinal-Cryptography/ecies-e
shielder-circuits = { git = "https://github.com/Cardinal-Cryptography/blanksquare-monorepo", rev = "fa55a8e23b5450bcce916290745f5c4635299a02" }
type-conversions = { git = "https://github.com/Cardinal-Cryptography/blanksquare-monorepo", rev = "fa55a8e23b5450bcce916290745f5c4635299a02" }
powers-of-tau = { git = "https://github.com/Cardinal-Cryptography/blanksquare-monorepo", rev = "fa55a8e23b5450bcce916290745f5c4635299a02" }

#[profile.release]
lto = "fat"
Comment on lines +48 to +49
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

LTO not actually enabled: profile header is commented out.

#[profile.release] is a comment; lto = "fat" at top-level is ignored by Cargo. Net effect: no LTO.

Apply:

-#[profile.release]
-lto = "fat"
+[profile.release]
+lto = "fat"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#[profile.release]
lto = "fat"
[profile.release]
lto = "fat"
🤖 Prompt for AI Agents
In tee/Cargo.toml around lines 48-49 the profile header is commented out
(`#[profile.release]`) so the `lto = "fat"` setting is at top-level and ignored;
to enable LTO change the commented header to a proper TOML table header
`[profile.release]` and place `lto = "fat"` (and any other profile keys) beneath
it so Cargo recognizes and applies LTO for release builds.

Loading