Skip to content

Commit

Permalink
Split 'Instruction' types into separate sub-crate 'triton-opcodes'
Browse files Browse the repository at this point in the history
- Move 'Program' to 'triton-opcodes' and decouple run() and simulate()
- Inline most 'sample_programs' into their single test callers
  • Loading branch information
sshine committed Dec 22, 2022
1 parent 1f298af commit 7bcc09e
Show file tree
Hide file tree
Showing 19 changed files with 620 additions and 641 deletions.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[workspace]
members = ["triton-vm", "triton-profiler", "constraint-evaluation-generator"]
members = [
"triton-vm",
"triton-opcodes",
"triton-profiler",
"constraint-evaluation-generator",
]

[profile.dev]
opt-level = 0
Expand Down
32 changes: 32 additions & 0 deletions triton-opcodes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[package]
name = "triton-opcodes"
version = "0.1.0"
edition = "2021"
authors = ["Triton Software AG"]

license = "Apache-2.0"
description = "Triton VM instructions and their translations"
homepage = "https://triton-vm.org/"
documentation = "https://github.com/TritonVM/triton-vm/blob/master/triton-opcodes"
repository = "https://github.com/TritonVM/triton-vm"
readme = "README.md"

[dev-dependencies]
proptest = "1.0"

[dev-dependencies.criterion]
version = "0.4.0"
features = ["html_reports"]

[dev-dependencies.cargo-husky]
version = "1"
default-features = false

[dependencies]
twenty-first = "0.9"
anyhow = "1.0"
itertools = "0.10.5"
num-traits = "0.2"
regex = "1.7"
strum = "0.24"
strum_macros = "0.24"
Loading

0 comments on commit 7bcc09e

Please sign in to comment.