Skip to content

Enable feature to skip download for large SRS params#3263

Draft
Roee-87 wants to merge 1 commit into
stagingfrom
feat/skip-srs-embed
Draft

Enable feature to skip download for large SRS params#3263
Roee-87 wants to merge 1 commit into
stagingfrom
feat/skip-srs-embed

Conversation

@Roee-87
Copy link
Copy Markdown
Collaborator

@Roee-87 Roee-87 commented May 19, 2026

Motivation

This PR adds a feature that enables users to build snarkVM without including the Degree15, ShiftedDegree15, and ShiftedDegree16 SRS params in the build. Bypassing their inclusion reduces the build size from ~ 12 MB to under 3 MB.

Documentation

Users can enable this feature in their Cargo.toml as follows:

[dependencies]
snarkvm = { version = "4.6.0", features = ["skip-srs-embed"] }
[dependencies]
snarkvm-parameters = { version = "4.6.0", features = ["skip-srs-embed"] }

@Roee-87 Roee-87 requested a review from vicsn May 19, 2026 16:28
@Roee-87 Roee-87 self-assigned this May 19, 2026
@Roee-87 Roee-87 added the enhancement New feature or request label May 19, 2026
Comment thread parameters/Cargo.toml
locktick = ["dep:locktick"]
no_std_out = []
rocks = ["snarkvm-ledger-store/rocks"]
skip-srs-embed = []
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot what are some good alternative names?

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.

Good options:

  • exclude-large-srs
  • no-large-srs
  • minimal-srs-embed
  • small-build

My recommendation is exclude-large-srs: it’s explicit about scope (only large params) and behavior (excluded from embed).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Roee-87 shall we go for no-embedded-srs?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good to me.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants