Skip to content

Commit 3b483da

Browse files
pefontanakariy
authored andcommitted
Rename cairo-rs to cairo-vm (lambdaclass#1289)
* Rename cairo-rs to cairo-vm * Rename cairo-rs-py to cairo-vm * corrections * Add line to changelog * typo
1 parent d8324d9 commit 3b483da

File tree

14 files changed

+265
-263
lines changed

14 files changed

+265
-263
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ jobs:
331331
- program-target: cairo_test_programs
332332
programs-dir: cairo_programs
333333
extra-args: ''
334-
name: Compute memory and execution traces with cairo-rs
334+
name: Compute memory and execution traces with cairo-vm
335335
needs: [ build-programs, build-release ]
336336
runs-on: ubuntu-22.04
337337
steps:
@@ -402,7 +402,7 @@ jobs:
402402
strategy:
403403
matrix:
404404
program-target: [ cairo_proof_programs, cairo_test_programs ]
405-
name: Compare memory and execution traces from cairo-lang and cairo-rs
405+
name: Compare memory and execution traces from cairo-lang and cairo-vm
406406
needs: [ run-cairo-reference, run-cairo-release ]
407407
runs-on: ubuntu-22.04
408408
steps:
@@ -418,7 +418,7 @@ jobs:
418418
key: ${{ matrix.program-target }}-reference-trace-cache-${{ hashFiles( 'cairo_programs/**/*.cairo' ) }}
419419
fail-on-cache-miss: true
420420

421-
- name: Fetch traces for cairo-rs
421+
- name: Fetch traces for cairo-vm
422422
uses: actions/cache/restore@v3
423423
with:
424424
path: |

.github/workflows/test_install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test dependencies and cairo-rs install
1+
name: Test dependencies and cairo-vm install
22

33
on:
44
merge_group:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
**/*.swp
1212
bench/results
1313
.python-version
14-
cairo-rs-env/*
15-
cairo-rs-pypy-env/*
14+
cairo-vm-env/*
15+
cairo-vm-pypy-env/*
1616
cairo/
1717

1818
ensure-no_std/Cargo.lock

CHANGELOG.md

Lines changed: 181 additions & 179 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ All types of contributions are encouraged and valued. See the [Table of Contents
2929

3030
> If you want to ask a question, we assume that you have read the available [Documentation](docs/).
3131
32-
Before you ask a question, it is best to search for existing [Issues](https://github.com/lambdaclass/cairo-rs/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
32+
Before you ask a question, it is best to search for existing [Issues](https://github.com/lambdaclass/cairo-vm/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
3333

3434
If you then still feel the need to ask a question and need clarification, we recommend the following:
3535

36-
- Open an [Issue](https://github.com/lambdaclass/cairo-rs/issues/new).
36+
- Open an [Issue](https://github.com/lambdaclass/cairo-vm/issues/new).
3737
- Provide as much context as you can about what you're running into.
3838
- Provide project and platform versions (cairo language, rust compiler, Python, etc), depending on what seems relevant.
3939

@@ -73,7 +73,7 @@ A good bug report shouldn't leave others needing to chase you up for more inform
7373

7474
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
7575

76-
- Open an [Issue](https://github.com/lambdaclass/cairo-rs/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
76+
- Open an [Issue](https://github.com/lambdaclass/cairo-vm/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
7777
- Explain the behavior you would expect and the actual behavior.
7878
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
7979
- Provide the information you collected in the previous section.
@@ -96,19 +96,19 @@ This section guides you through submitting an enhancement suggestion for CONTRIB
9696

9797
- Make sure that you are using the latest version.
9898
- Read the [documentation](docs/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
99-
- Perform a [search](https://github.com/lambdaclass/cairo-rs/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
99+
- Perform a [search](https://github.com/lambdaclass/cairo-vm/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
100100
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
101101

102102

103103
#### How Do I Submit a Good Enhancement Suggestion?
104104

105-
Enhancement suggestions are tracked as [GitHub issues](https://github.com/lambdaclass/cairo-rs/issues).
105+
Enhancement suggestions are tracked as [GitHub issues](https://github.com/lambdaclass/cairo-vm/issues).
106106

107107
- Use a **clear and descriptive title** for the issue to identify the suggestion.
108108
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
109109
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
110110
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
111-
- **Explain why this enhancement would be useful** to most cairo-rs users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
111+
- **Explain why this enhancement would be useful** to most cairo-vm users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
112112

113113

114114
<!-- TODO

Makefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
RELBIN:=target/release/cairo-rs-run
2-
DBGBIN:=target/debug/cairo-rs-run
1+
RELBIN:=target/release/cairo-vm-run
2+
DBGBIN:=target/debug/cairo-vm-run
33
STARKNET_COMPILE:=cairo/target/release/starknet-compile
44
STARKNET_SIERRA_COMPILE:=cairo/target/release/starknet-sierra-compile
55

@@ -8,7 +8,7 @@ STARKNET_SIERRA_COMPILE:=cairo/target/release/starknet-sierra-compile
88
compare_vm_output compare_trace_memory compare_trace compare_memory \
99
compare_trace_memory_proof compare_trace_proof compare_memory_proof \
1010
cairo_bench_programs cairo_proof_programs cairo_test_programs \
11-
cairo_trace cairo-rs_trace cairo_proof_trace cairo-rs_proof_trace \
11+
cairo_trace cairo-vm_trace cairo_proof_trace cairo-vm_proof_trace \
1212
$(RELBIN) $(DBGBIN) $(STARKNET_COMPILE) $(STARKNET_SIERRA_COMPILE)
1313

1414
# Proof mode consumes too much memory with cairo-lang to execute
@@ -125,23 +125,23 @@ cargo-deps:
125125

126126
deps: cargo-deps build-cairo-1-compiler
127127
pyenv install -s pypy3.9-7.3.9
128-
PYENV_VERSION=pypy3.9-7.3.9 python -m venv cairo-rs-pypy-env
129-
. cairo-rs-pypy-env/bin/activate ; \
128+
PYENV_VERSION=pypy3.9-7.3.9 python -m venv cairo-vm-pypy-env
129+
. cairo-vm-pypy-env/bin/activate ; \
130130
pip install -r requirements.txt ; \
131131
pyenv install -s 3.9.15
132-
PYENV_VERSION=3.9.15 python -m venv cairo-rs-env
133-
. cairo-rs-env/bin/activate ; \
132+
PYENV_VERSION=3.9.15 python -m venv cairo-vm-env
133+
. cairo-vm-env/bin/activate ; \
134134
pip install -r requirements.txt ; \
135135

136136
deps-macos: cargo-deps build-cairo-1-compiler
137137
brew install gmp
138138
arch -x86_64 pyenv install -s pypy3.9-7.3.9
139-
PYENV_VERSION=pypy3.9-7.3.9 python -m venv cairo-rs-pypy-env
140-
. cairo-rs-pypy-env/bin/activate ; \
139+
PYENV_VERSION=pypy3.9-7.3.9 python -m venv cairo-vm-pypy-env
140+
. cairo-vm-pypy-env/bin/activate ; \
141141
CFLAGS=-I/opt/homebrew/opt/gmp/include LDFLAGS=-L/opt/homebrew/opt/gmp/lib pip install -r requirements.txt ; \
142142
pyenv install -s 3.9.15
143-
PYENV_VERSION=3.9.15 python -m venv cairo-rs-env
144-
. cairo-rs-env/bin/activate ; \
143+
PYENV_VERSION=3.9.15 python -m venv cairo-vm-env
144+
. cairo-vm-env/bin/activate ; \
145145
CFLAGS=-I/opt/homebrew/opt/gmp/include LDFLAGS=-L/opt/homebrew/opt/gmp/lib pip install -r requirements.txt ; \
146146

147147
$(RELBIN):
@@ -161,10 +161,10 @@ cairo_bench_programs: $(COMPILED_BENCHES)
161161
cairo_1_test_contracts: $(COMPILED_CASM_CONTRACTS)
162162

163163
cairo_proof_trace: $(CAIRO_TRACE_PROOF) $(CAIRO_MEM_PROOF)
164-
cairo-rs_proof_trace: $(CAIRO_RS_TRACE_PROOF) $(CAIRO_RS_MEM_PROOF)
164+
cairo-vm_proof_trace: $(CAIRO_RS_TRACE_PROOF) $(CAIRO_RS_MEM_PROOF)
165165

166166
cairo_trace: $(CAIRO_TRACE) $(CAIRO_MEM)
167-
cairo-rs_trace: $(CAIRO_RS_TRACE) $(CAIRO_RS_MEM)
167+
cairo-vm_trace: $(CAIRO_RS_TRACE) $(CAIRO_RS_MEM)
168168

169169
test: $(COMPILED_PROOF_TESTS) $(COMPILED_TESTS) $(COMPILED_BAD_TESTS) $(COMPILED_NORETROCOMPAT_TESTS) $(COMPILED_CASM_CONTRACTS)
170170
cargo llvm-cov nextest --no-report --workspace --features "test_utils, cairo-1-hints"
@@ -232,6 +232,6 @@ clean:
232232
rm -f $(TEST_PROOF_DIR)/*.json
233233
rm -f $(TEST_PROOF_DIR)/*.memory
234234
rm -f $(TEST_PROOF_DIR)/*.trace
235-
rm -rf cairo-rs-env
236-
rm -rf cairo-rs-pypy-env
235+
rm -rf cairo-vm-env
236+
rm -rf cairo-vm-pypy-env
237237
rm -rf cairo

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div align="center">
22
<img src="./bonaparte.webp" height="150">
33

4-
### ⚡ Cairo-rs
4+
### ⚡ Cairo-vm
55

66
A faster and safer implementation of the Cairo VM in Rust
77

8-
[Report Bug](https://github.com/lambdaclass/cairo-rs/issues/new?labels=bug&title=bug%3A+) · [Request Feature](https://github.com/lambdaclass/cairo-rs/issues/new?labels=enhancement&title=feat%3A+)
8+
[Report Bug](https://github.com/lambdaclass/cairo-vm/issues/new?assignees=&labels=bug&projects=&template=bug_report.md&title=bug%3A+) · [Request Feature](https://github.com/lambdaclass/cairo-vm/issues/new?labels=enhancement&title=feat%3A+)
99

10-
[![rust](https://github.com/lambdaclass/cairo-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/lambdaclass/cairo-rs/actions/workflows/rust.yml)
11-
[![codecov](https://img.shields.io/codecov/c/github/lambdaclass/cairo-rs)](https://codecov.io/gh/lambdaclass/cairo-rs)
12-
[![license](https://img.shields.io/github/license/lambdaclass/cairo-rs)](/LICENSE)
10+
[![rust](https://github.com/lambdaclass/cairo-vm/actions/workflows/rust.yml/badge.svg)](https://github.com/lambdaclass/cairo-vm/actions/workflows/rust.yml)
11+
[![codecov](https://img.shields.io/codecov/c/github/lambdaclass/cairo-vm)](https://codecov.io/gh/lambdaclass/cairo-vm)
12+
[![license](https://img.shields.io/github/license/lambdaclass/cairo-vm)](/LICENSE)
1313
[![pr-welcome]](#-contributing)
1414
[![Telegram Chat][tg-badge]][tg-url]
1515

@@ -27,7 +27,7 @@ A faster and safer implementation of the Cairo VM in Rust
2727
- [Getting Started](#-getting-started)
2828
- [Dependencies](#dependencies)
2929
- [Usage](#-usage)
30-
- [Running cairo-rs](#running-cairo-rs)
30+
- [Running cairo-vm](#running-cairo-vm)
3131
- [Using hints](#using-hints)
3232
- [Running a function in a Cairo program with arguments](#running-a-function-in-a-cairo-program-with-arguments)
3333
- [WebAssembly Demo](#webassembly-demo)
@@ -46,7 +46,7 @@ A faster and safer implementation of the Cairo VM in Rust
4646

4747
## ⚠️ Disclaimer
4848

49-
🚧 `cairo-rs` is still being built therefore breaking changes might happen often so use it at your own risk. 🚧
49+
🚧 `cairo-vm` is still being built therefore breaking changes might happen often so use it at your own risk. 🚧
5050
Cargo doesn't comply with [semver](https://semver.org/), so we advise to pin the version to 0.1.0. This can be done adding `cairo-vm = "0.1.0"` to your Cargo.toml
5151

5252
## 📖 About
@@ -81,7 +81,7 @@ These dependencies are only necessary in order to run the original VM, compile C
8181

8282
## 🚀 Usage
8383

84-
### Adding cairo-rs as a dependency
84+
### Adding cairo-vm as a dependency
8585

8686
You can add the following to your rust project's `Cargo.toml`:
8787

@@ -91,7 +91,7 @@ cairo-vm = { version = '0.7.0', features = ["lambdaworks-felt"] }
9191

9292
The `features = ["lambdaworks-felt"]` part adds usage of [`lambdaworks-math`](https://github.com/lambdaclass/lambdaworks) as the backend for `Felt252`. This improves performance by more than 20%, and will be the default in the future.
9393

94-
### Running cairo-rs from CLI
94+
### Running cairo-vm from CLI
9595

9696
To run programs from the command line, first compile the repository from the cairo-vm-cli folder:
9797

@@ -120,15 +120,15 @@ The flag `--layout` determines which builtins can be used. More info about layou
120120
To sum up, the following code will get you from zero to running a Cairo program:
121121

122122
```bash
123-
git clone https://github.com/lambdaclass/cairo-rs.git
123+
git clone https://github.com/lambdaclass/cairo-vm.git
124124

125-
cd cairo-rs
125+
cd cairo-vm
126126

127127
cargo build --release
128128

129129
cairo-compile cairo_programs/abs_value_array.cairo --output cairo_programs/abs_value_array_compiled.json
130130

131-
target/release/cairo-rs-run cairo_programs/abs_value_array_compiled.json --layout all_cairo
131+
target/release/cairo-vm-run cairo_programs/abs_value_array_compiled.json --layout all_cairo
132132
```
133133

134134
### Using hints
@@ -137,12 +137,12 @@ Currently, as this VM is under construction, it's missing some of the features o
137137

138138
There are two ways to use non-standard hints in this VM:
139139

140-
- Extend the cairo-rs code and build your own binary using the interface [HintProcessor](docs/hint_processor/README.md).
141-
- Use [cairo-rs-py](https://github.com/lambdaclass/cairo-rs-py) which supports running any hint in a Python interpreter.
140+
- Extend the cairo-vm code and build your own binary using the interface [HintProcessor](docs/hint_processor/README.md).
141+
- Use [cairo-vm-py](https://github.com/lambdaclass/cairo-vm-py) which supports running any hint in a Python interpreter.
142142

143143
### Running a function in a Cairo program with arguments
144144

145-
When running a Cairo program directly using the Cairo-rs repository you would first need to prepare a couple of things.
145+
When running a Cairo program directly using the Cairo-vm repository you would first need to prepare a couple of things.
146146

147147
1. Specify the Cairo program you want to run
148148

@@ -173,7 +173,7 @@ When running a Cairo program directly using the Cairo-rs repository you would fi
173173
cairo_runner.initialize_segments(&mut vm, None);
174174
```
175175

176-
When using cairo-rs with the Starknet devnet there are additional parameters that are part of the OS context passed on to the `run_from_entrypoint` method that we do not have here when using it directly. These parameters are, for example, initial stacks of the builtins, which are the base of each of them and are needed as they are the implicit arguments of the function.
176+
When using cairo-vm with the Starknet devnet there are additional parameters that are part of the OS context passed on to the `run_from_entrypoint` method that we do not have here when using it directly. These parameters are, for example, initial stacks of the builtins, which are the base of each of them and are needed as they are the implicit arguments of the function.
177177

178178
```rust
179179
let _var = cairo_runner.run_from_entrypoint(
@@ -190,7 +190,7 @@ When using cairo-rs with the Starknet devnet there are additional parameters tha
190190

191191
### WebAssembly Demo
192192

193-
A demo on how to use `cairo-rs` with WebAssembly can be found
193+
A demo on how to use `cairo-vm` with WebAssembly can be found
194194
[here](https://github.com/lambdaclass/cairo-rs-wasm).
195195

196196
### Testing
@@ -213,9 +213,9 @@ Running a [Cairo program](./cairo_programs/benchmarks/fibonacci_1000_multirun.ca
213213

214214
- Execution time with [Criterion](./docs/benchmarks/criterion_benchmark.pdf)
215215
- [Flamegraph](./docs/benchmarks/flamegraph.svg)
216-
- Github action [results](https://lambdaclass.github.io/cairo-rs/)
216+
- Github action [results](https://lambdaclass.github.io/cairo-vm/)
217217

218-
Note before running the benchmark suite: the benchmark named [iai_benchmark](https://github.com/lambdaclass/cairo-rs/blob/8dba86dbec935fa04a255e2edf3d5d184950fa22/Cargo.toml#L59) depends on Valgrind. Please make sure it is installed prior to running the `iai_benchmark` benchmark.
218+
Note before running the benchmark suite: the benchmark named [iai_benchmark](https://github.com/lambdaclass/cairo-vm/blob/8dba86dbec935fa04a255e2edf3d5d184950fa22/Cargo.toml#L59) depends on Valgrind. Please make sure it is installed prior to running the `iai_benchmark` benchmark.
219219

220220
Run the complete benchmark suite with cargo:
221221

@@ -257,8 +257,8 @@ You can find more detailed instructions in the [CONTRIBUTING.md](CONTRIBUTING.md
257257

258258
## 🌞 Related Projects
259259

260-
- [starknet_in_rust](https://github.com/lambdaclass/starknet_in_rust): implementation of Starknet in Rust, powered by the cairo-rs VM.
261-
- [cairo-rs-py](https://github.com/lambdaclass/cairo-rs-py): Bindings for using cairo-rs from Python code.
260+
- [starknet_in_rust](https://github.com/lambdaclass/starknet_in_rust): implementation of Starknet in Rust, powered by the cairo-vm.
261+
- [cairo-vm-py](https://github.com/lambdaclass/cairo-vm-py): Bindings for using cairo-vm from Python code.
262262

263263
## 📚 Documentation
264264

bench/run_benchmarks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ for file in $(ls $tests_path | grep .cairo | sed -E 's/\.cairo//'); do
1111
hyperfine \
1212
-n "Cairo VM (CPython)" "PYENV_VERSION=3.9.15 cairo-run --proof_mode --memory_file /dev/null --trace_file /dev/null --layout starknet_with_keccak --program $tests_path/$file.json" \
1313
-n "Cairo VM (PyPy)" "PYENV_VERSION=pypy3.9-7.3.9 cairo-run --proof_mode --memory_file /dev/null --trace_file /dev/null --layout starknet_with_keccak --program $tests_path/$file.json" \
14-
-n "cairo-rs (Rust)" "../target/release/cairo-vm-cli $tests_path/$file.json --proof_mode --memory_file /dev/null --trace_file /dev/null --layout starknet_with_keccak"
14+
-n "cairo-vm (Rust)" "../target/release/cairo-vm-cli $tests_path/$file.json --proof_mode --memory_file /dev/null --trace_file /dev/null --layout starknet_with_keccak"
1515
done

docs/hint_processor/builtin_hint_processor/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ How to run a cairo program with custom hints
33

44
### Step by Step Guide:
55

6-
#### Step 1: Add cairo-rs to your project as a crate
7-
Add cairo-rs as a dependency to your Cargo.toml
6+
#### Step 1: Add cairo-vm to your project as a crate
7+
Add cairo-vm as a dependency to your Cargo.toml
88

99
By using either path:
1010

1111
```rust
1212
[dependencies]
13-
cairo-rs = {path = "[path to cairo-rs directory"}
13+
cairo-vm = {path = "[path to cairo-vm directory"}
1414
```
1515

1616
Or by github link:
1717
```rust
1818
[dependencies]
19-
cairo-rs = {git = "https://github.com/lambdaclass/cairo-rs.git"}
19+
cairo-vm = {git = "https://github.com/lambdaclass/cairo-vm.git"}
2020
```
2121

2222
#### Step 2: Code the implementation of your custom hint (Using the helpers and structures described in the sections below)
@@ -58,7 +58,7 @@ let hint = HintFunc(Box::new(print_a_hint));
5858
```
5959

6060
#### Step 3: Instantiate the BuiltinHintProcessor and add your custom hint implementation
61-
Import the BuiltinHintProcessor from cairo-rs, instantiate it using the `new_empty()` method and the add your custom hint implementation using the method `add_hint`
61+
Import the BuiltinHintProcessor from cairo-vm, instantiate it using the `new_empty()` method and the add your custom hint implementation using the method `add_hint`
6262
```rust
6363
use cairo_vm::hint_processor::builtin_hint_processor::builtin_hint_processor_definition::BuiltinHintProcessor
6464

@@ -68,7 +68,7 @@ hint_processor.add_hint(String::from("print(ids.a)"), hint);
6868
You can also create a dictionary of HintFunc and use the method `new()` to create a BuiltinHintProcessor with a preset dictionary of functions instead of using `add_hint()` for each custom hint.
6969

7070
#### Step 4: Run your cairo program using BuiltinHintProcessor extended with your hint
71-
Import the function cairo_run from cairo-rs, and run your compiled program
71+
Import the function cairo_run from cairo-vm, and run your compiled program
7272

7373
```rust
7474
use cairo_vm::cairo_run::cairo_run;

0 commit comments

Comments
 (0)