Skip to content

Conversation

@drahnr
Copy link
Contributor

@drahnr drahnr commented Nov 3, 2025

Currently we only use LargeSmt<Memory> with the Memory backend. This is not very useful in practice, the entire purpose of LargeSmt is having a disk backed Smt implementation.

This PR will ensure we have the rocksdb feature enabled in miden-crypto until it's extracted per #1218 .

How it's done

We use the dependency feature unification of cargo to ensure we depend on miden-crypto with the rocksdb feature enabled. However, this incurs both a hefty penalty on compile times by default, compiling rocksdb-sys and additional CI dependencies, which leads to disabling it by default.

Extras

Some additional type aliases are used to avoid lengthy types.

@drahnr drahnr requested a review from sergerad November 3, 2025 17:55
@drahnr drahnr changed the title expose account optin rocksdb support feat: expose rocksdb feature as opt-in Nov 3, 2025
termtree = { version = "0.5" }

[features]
default = [] # rocksdb has just too many requirements on CI for now
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: comment formatting all good? might be formatter

@drahnr drahnr added the blocked Something prevents working on this label Nov 4, 2025
@drahnr
Copy link
Contributor Author

drahnr commented Nov 4, 2025

Requires 0xMiden/crypto#613 to be merged, otherwise we might get a panic.

Base automatically changed from bernhard-1227-account-tree-with-history to next November 4, 2025 09:44
@drahnr drahnr force-pushed the bernhard-1227-add-optin-rocksdb-support branch from a06e53f to 397aaa9 Compare November 4, 2025 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Something prevents working on this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants