From 28e055eb4960ec18fcf2140793b4ef24ead87df7 Mon Sep 17 00:00:00 2001 From: fmoletta <99273364+fmoletta@users.noreply.github.com> Date: Fri, 9 Feb 2024 00:49:14 +0200 Subject: [PATCH] Remove mentions of lambdaworks-felt feature (#1610) --- README.md | 8 ++------ vm/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3f642d9623..75a5bd79a6 100644 --- a/README.md +++ b/README.md @@ -105,21 +105,17 @@ You can then activate this environment by running You can add the following to your rust project's `Cargo.toml`: ```toml -cairo-vm = { version = '0.7.0', features = ["lambdaworks-felt"] } +cairo-vm = { version = '0.7.0'} ``` -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. - ### Running cairo-vm from CLI To run programs from the command line, first compile the repository from the cairo-vm-cli folder: ```bash -cd cairo-vm-cli; cargo build --release -F lambdaworks-felt; cd .. +cd cairo-vm-cli; cargo build --release; cd .. ``` -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. - Once the binary is built, it can be found in `target/release/` under the name `cairo-vm-cli`. In order to compile Cairo programs you need to activate the environment created while installing dependencies. To start it, run: diff --git a/vm/src/lib.rs b/vm/src/lib.rs index 88415c121c..36509273b3 100644 --- a/vm/src/lib.rs +++ b/vm/src/lib.rs @@ -8,7 +8,6 @@ //! - `with_mimalloc`: Use [`MiMalloc`](https://crates.io/crates/mimalloc) as the program global allocator. //! - `cairo-1-hints`: Enable hints that were introduced in Cairo 1. Not enabled by default. //! - `arbitrary`: Enables implementations of [`arbitrary::Arbitrary`](https://docs.rs/arbitrary/latest/arbitrary/) for some structs. Not enabled by default. -//! - `lambdaworks-felt`: Enables usage of the [**lambdaworks**](https://github.com/lambdaclass/lambdaworks) backend for [`felt::Felt252`]. Not enabled by default. #![cfg_attr(docsrs, feature(doc_cfg))] #![deny(warnings)]