You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-6
Original file line number
Diff line number
Diff line change
@@ -105,21 +105,17 @@ You can then activate this environment by running
105
105
You can add the following to your rust project's `Cargo.toml`:
106
106
107
107
```toml
108
-
cairo-vm = { version = '0.7.0', features = ["lambdaworks-felt"] }
108
+
cairo-vm = { version = '0.7.0'}
109
109
```
110
110
111
-
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.
112
-
113
111
### Running cairo-vm from CLI
114
112
115
113
To run programs from the command line, first compile the repository from the cairo-vm-cli folder:
116
114
117
115
```bash
118
-
cd cairo-vm-cli; cargo build --release -F lambdaworks-felt;cd ..
116
+
cd cairo-vm-cli; cargo build --release;cd ..
119
117
```
120
118
121
-
The `-F 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.
122
-
123
119
Once the binary is built, it can be found in `target/release/` under the name `cairo-vm-cli`.
124
120
125
121
In order to compile Cairo programs you need to activate the environment created while installing dependencies. To start it, run:
Copy file name to clipboardexpand all lines: vm/src/lib.rs
-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@
8
8
//! - `with_mimalloc`: Use [`MiMalloc`](https://crates.io/crates/mimalloc) as the program global allocator.
9
9
//! - `cairo-1-hints`: Enable hints that were introduced in Cairo 1. Not enabled by default.
10
10
//! - `arbitrary`: Enables implementations of [`arbitrary::Arbitrary`](https://docs.rs/arbitrary/latest/arbitrary/) for some structs. Not enabled by default.
11
-
//! - `lambdaworks-felt`: Enables usage of the [**lambdaworks**](https://github.com/lambdaclass/lambdaworks) backend for [`felt::Felt252`]. Not enabled by default.
0 commit comments