Skip to content

Commit

Permalink
Merge pull request #3 from 0xPolygonMiden/bitwalker/variable-compiler…
Browse files Browse the repository at this point in the history
…-path

feat: make miden-sdk path configurable using template variables
  • Loading branch information
bitwalker authored Jul 12, 2024
2 parents 073cc3c + 4989127 commit 7e1cf59
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion account/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ crate-type = ["cdylib"]

[dependencies]
# Miden SDK consists of a Prelude (intrinsic functions for VM opr, stdlib) and transaction kernel API for the Miden rollup
miden-sdk = { git = "https://github.com/0xPolygonMiden/compiler", rev = "10a05d8fa76106325e2497c2d1b10f1042c77340" }
{% if compiler_path %}
miden-sdk = { path = "{{ compiler_path }}/sdk/sdk" }
{% elsif compiler_branch %}
miden-sdk = { git = "https://github.com/0xPolygonMiden/compiler", branch = "{{ compiler_branch }}" }
{% elsif compiler_rev %}
miden-sdk = { git = "https://github.com/0xPolygonMiden/compiler", rev = "{{ compiler_rev }}" }
{% else %}
miden-sdk = { git = "https://github.com/0xPolygonMiden/compiler" }
{% endif %}
# Use a tiny allocator in place of the default one, if we want
# to make use of types in the `alloc` crate, e.g. String. We
# don't need that now, but its good information to have in hand.
Expand Down

0 comments on commit 7e1cf59

Please sign in to comment.