Skip to content
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
fd093e7
Make fields clonable
JulianGCalderon Oct 6, 2025
47c140a
Add basic cairo runner builder
JulianGCalderon Oct 7, 2025
f17b0e3
Add support for caching loaded program
JulianGCalderon Oct 7, 2025
a93adb9
Add support for precompiling hints
JulianGCalderon Oct 8, 2025
73afcc1
Take constants when precomipling hints, as they are not used
JulianGCalderon Oct 8, 2025
2a4792c
Add run_from_entrypoint_v2
JulianGCalderon Oct 8, 2025
55a7ea5
make `ValidationRule`s clonable, without API breakage
JulianGCalderon Oct 8, 2025
85cccab
If you call initialize_state twice, it should load the program twice
JulianGCalderon Oct 8, 2025
9728017
Add more comments
JulianGCalderon Oct 8, 2025
c6e7077
Add support for caching instructions, and improve documentation
JulianGCalderon Oct 9, 2025
ddd8e97
Add comment
JulianGCalderon Oct 9, 2025
513bf4b
Improve documentation
JulianGCalderon Oct 9, 2025
3cbae88
Improve documentation on hook API
JulianGCalderon Oct 9, 2025
767e5d3
Improve docs, make functions internal
JulianGCalderon Oct 9, 2025
c001e4b
Implement clone manually, add docs
JulianGCalderon Oct 9, 2025
99c5081
Add support for caching Cairo 1 runners
JulianGCalderon Oct 13, 2025
84d2bf2
Pin generic-array
JulianGCalderon Oct 13, 2025
43b6b9d
Update changelog
JulianGCalderon Oct 13, 2025
8df8954
Improve naming
JulianGCalderon Oct 14, 2025
70ad9fd
Fix typo
JulianGCalderon Oct 15, 2025
84d3e77
Less restrictive generic-array pin
JulianGCalderon Oct 15, 2025
77801e5
Add more comments
JulianGCalderon Oct 16, 2025
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#### Upcoming Changes

* feat: Add CairoRunnerBuilder [#2223](https://github.com/lambdaclass/cairo-vm/pull/2223)

#### [2.5.0] - 2025-09-11

* breaking: Store constants in Hint Data [#2191](https://github.com/lambdaclass/cairo-vm/pull/2191)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lazy_static = { version = "1.4.0", default-features = false, features = [
] }
nom = { version = "7", default-features = false }
sha2 = { version = "0.10.7", features = ["compress"], default-features = false }
generic-array = { version = "0.14.7", default-features = false }
generic-array = { version = "=0.14.7", default-features = false }
keccak = { version = "0.1.2", default-features = false }
hashbrown = { version = "0.15.2", features = ["serde"] }
anyhow = { version = "1.0.94", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion vm/src/types/instance_definitions/builtins_instance_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub(crate) const BUILTIN_INSTANCES_PER_COMPONENT: u32 = 1;

use serde::Serialize;

#[derive(Serialize, Debug, PartialEq)]
#[derive(Clone, Serialize, Debug, PartialEq)]
pub(crate) struct BuiltinsInstanceDef {
pub(crate) output: bool,
pub(crate) pedersen: Option<PedersenInstanceDef>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use serde::Serialize;

#[derive(Serialize, Debug, PartialEq)]
#[derive(Clone, Serialize, Debug, PartialEq)]
pub(crate) struct DilutedPoolInstanceDef {
pub(crate) units_per_step: u32, // 2 ^ log_units_per_step (for cairo_lang comparison)
pub(crate) fractional_units_per_step: bool, // true when log_units_per_step is negative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use serde::Serialize;
use super::LowRatio;
pub(crate) const CELLS_PER_RANGE_CHECK: u32 = 1;

#[derive(Serialize, Debug, PartialEq)]
#[derive(Clone, Serialize, Debug, PartialEq)]
pub(crate) struct RangeCheckInstanceDef {
pub(crate) ratio: Option<LowRatio>,
}
Expand Down
2 changes: 1 addition & 1 deletion vm/src/types/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub(crate) const DEFAULT_CPU_COMPONENT_STEP: u32 = 1;

use serde::{Deserialize, Deserializer, Serialize};

#[derive(Serialize, Debug)]
#[derive(Clone, Serialize, Debug)]
pub struct CairoLayout {
pub(crate) name: LayoutName,
pub(crate) cpu_component_step: u32,
Expand Down
Loading
Loading