8000 add dev_utils craate and vm_adapter_prover binary by Stavbe · Pull Request #909 · starkware-libs/stwo-cairo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add dev_utils craate and vm_adapter_prover binary #909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025

Conversation

Stavbe
Copy link
Contributor
@Stavbe Stavbe commented May 13, 2025

This change is Reviewable

Copy link
Contributor Author
Stavbe commented May 13, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Stavbe Stavbe force-pushed the stav/remove_common_logic_in_adapted_stwo branch from ffb1b3b to 750e51d Compare May 13, 2025 15:43
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch 2 times, most recently from 34a5311 to cb06624 Compare May 13, 2025 15:49
@Stavbe Stavbe marked this pull request as ready for review May 13, 2025 15:52
@Stavbe Stavbe self-assigned this May 13, 2025
Copy link
Collaborator
@ohad-agadi ohad-agadi left a comment

Choose a reason for hiding this comment

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

it doesnt make sense to have a main here
you want to crate separate binary targets in the crate. so you don't have to compile everything for anything.

Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @anatgstarkware)

@Stavbe Stavbe force-pushed the stav/remove_common_logic_in_adapted_stwo branch from 750e51d to 8babf70 Compare May 14, 2025 14:15
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from cb06624 to 614f246 Compare May 14, 2025 14:15
@Stavbe Stavbe force-pushed the stav/remove_common_logic_in_adapted_stwo branch from 8babf70 to 6d40d39 Compare May 15, 2025 10:11
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from 614f246 to a2000ef Compare May 15, 2025 10:12
@Stavbe Stavbe force-pushed the stav/remove_common_logic_in_adapted_stwo branch from 6d40d39 to 9f277eb Compare May 15, 2025 14:03
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from a2000ef to 8adeb2d Compare May 15, 2025 14:03
@Stavbe Stavbe force-pushed the stav/remove_common_logic_in_adapted_stwo branch from 9f277eb to f21a8a4 Compare May 15, 2025 14:26
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from 8adeb2d to 883d669 Compare May 15, 2025 14:26
@Stavbe Stavbe force-pushed the stav/remove_common_logic_in_adapted_stwo branch from f21a8a4 to 64f6e4e Compare May 21, 2025 10:17
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch 2 times, most recently from e03e0f5 to c327e18 Compare May 22, 2025 08:41
@Stavbe Stavbe changed the base branch from stav/remove_common_logic_in_adapted_stwo to main May 22, 2025 08:41
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from c327e18 to e85daf6 Compare May 22, 2025 08:45
Copy link
Contributor Author
@Stavbe Stavbe left a comment

Choose a reason for hiding this comment

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

Fixed

Reviewable status: 0 of 6 files reviewed, all discussions resolved (waiting on @anatgstarkware)

@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from e85daf6 to 48fecc5 Compare May 22, 2025 10:07
Copy link
Collaborator
@ohad-agadi ohad-agadi left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 6 files at r3, all commit messages.
Reviewable status: 1 of 6 files reviewed, 1 unresolved discussion (waiting on @anatgstarkware)


stwo_cairo_prover/crates/dev_utils/Cargo.toml line 2 at r3 (raw file):

[package]
name = "vm_adapter_prover"

dev-utils

@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from 48fecc5 to 1b52feb Compare May 22, 2025 12:41
@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch 2 times, most recently from b34d08f to 5711490 Compare May 22, 2025 12:55
Copy link
Contributor Author
@Stavbe Stavbe left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 6 files reviewed, 1 unresolved discussion (waiting on @anatgstarkware and @ohad-agadi)


stwo_cairo_prover/crates/dev_utils/Cargo.toml line 2 at r3 (raw file):

Previously, ohad-agadi (Ohad) wrote…

dev-utils

Done.

Copy link
Collaborator
@ohad-agadi ohad-agadi left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 6 files reviewed, 2 unresolved discussions (waiting on @anatgstarkware)


stwo_cairo_prover/crates/dev_utils/Cargo.toml line 7 at r4 (raw file):

[features]
std = ["stwo-cairo-adapter/std"] 

Remove, take the adapter with std

@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from 5711490 to 3d469af Compare May 22, 2025 13:46
Copy link
Collaborator
@ohad-agadi ohad-agadi left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 6 files at r3, 2 of 3 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @anatgstarkware)


stwo_cairo_prover/crates/dev_utils/Cargo.toml line 16 at r5 (raw file):

stwo-prover.workspace = true
stwo_cairo_prover.workspace = true
stwo_cairo_utils.workspace = true

remove the dependency and copy the code here
or better- rewrite the stuff you need properly.


stwo_cairo_prover/crates/dev_utils/src/bin/vm_adapter_prover.rs line 9 at r5 (raw file):

use tracing::{span, Level};

// Command line arguments for adapted_stwo.

rename to:
prove_from_artifacts
adapted_stwo/adapted_prover is cringe


stwo_cairo_prover/hi line 0 at r5 (raw file):
remove

@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from 3d469af to 2aa49c4 Compare May 25, 2025 08:31
Copy link
Contributor Author
@Stavbe Stavbe left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 7 files reviewed, 3 unresolved discussions (waiting on @anatgstarkware and @ohad-agadi)


stwo_cairo_prover/crates/dev_utils/Cargo.toml line 7 at r4 (raw file):

Previously, ohad-agadi (Ohad) wrote…

Remove, take the adapter with std

Done.


stwo_cairo_prover/crates/dev_utils/Cargo.toml line 16 at r5 (raw file):

Previously, ohad-agadi (Ohad) wrote…

remove the dependency and copy the code here
or better- rewrite the stuff you need properly.

Done.


stwo_cairo_prover/hi line at r5 (raw file):

Previously, ohad-agadi (Ohad) wrote…

remove

Done.


stwo_cairo_prover/crates/dev_utils/src/bin/vm_adapter_prover.rs line 9 at r5 (raw file):

Previously, ohad-agadi (Ohad) wrote…

rename to:
prove_from_artifacts
adapted_stwo/adapted_prover is cringe

I called it 'vm_prover_adapter', just forgot this part in the doco

Copy link
Collaborator
@ohad-agadi ohad-agadi left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 5 files at r6.
Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on @anatgstarkware and @Stavbe)


stwo_cairo_prover/crates/dev_utils/src/bin/vm_adapter_prover.rs line 9 at r5 (raw file):

Previously, Stavbe wrote…

I called it 'vm_prover_adapter', just forgot this part in the doco

still cringe

@Stavbe Stavbe force-pushed the stav/add_dev_utils_crate branch from 2aa49c4 to bd270dc Compare May 25, 2025 14:24
Copy link
Contributor Author
@Stavbe Stavbe left a comment

Choose a reason for hiding this comment

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

Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on @anatgstarkware and @ohad-agadi)


stwo_cairo_prover/crates/dev_utils/src/bin/vm_adapter_prover.rs line 9 at r5 (raw file):

Previously, ohad-agadi (Ohad) wrote…

still cringe

Done.

Copy link
Collaborator
@ohad-agadi ohad-agadi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 5 files at r6, 1 of 1 files at r7, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @anatgstarkware)

@Stavbe Stavbe merged commit 921797c into main May 26, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0