|
5 | 5 | [](https://github.com/starknet-io/types-rs/actions/workflows/test.yml)
|
6 | 6 | [](LICENSE)
|
7 | 7 | [](https://github.com/starknet-io/types-rs/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
|
8 |
| -[](https://docs.rs/stark-felt) |
9 |
| -[](https://crates.io/crates/stark-felt) |
| 8 | +[](https://docs.rs/starknet-types-core) |
| 9 | +[](https://crates.io/crates/starknet-types-core) |
10 | 10 |
|
11 | 11 | This repository is an initiative by a group of maintainers to address the fragmentation in the Starknet Rust ecosystem and improve its interoperability. The key motivation behind this repository is to standardize the representation of the `Felt` (Field Element) type in Rust, which is massively used as the core and atomic type of the Cairo language and its Virtual Machine.
|
12 | 12 |
|
13 | 13 | The `Felt` type is currently defined in many different crates and repositories, resulting in increased code complexity and performance issues due to the need for numerous conversions. This repository aims to mitigate these issues by providing a universal `Felt` type in Rust.
|
14 | 14 |
|
15 | 15 | ## Crates
|
16 | 16 |
|
17 |
| -This repository hosts three crates: |
| 17 | +This repository hosts two crates: |
18 | 18 |
|
19 |
| -- `stark-felt`: This crate provides the universal Felt (Field Element) type for Cairo and STARK proofs. |
20 |
| - |
21 |
| -- `starknet-types-core`: This crate focuses on Starknet types related to computation and execution, requiring performance and optimization for specific arithmetic and cryptographic operations. |
| 19 | +- `starknet-types-core`: This crate provides the universal Felt (Field Element) type for Cairo and STARK proofs. It also focuses on Starknet types related to computation and execution, requiring performance and optimization for specific arithmetic and cryptographic operations. |
22 | 20 |
|
23 | 21 | - `starknet-types-rpc`: This crate deals with Starknet types used in RPC communication, serde, and transport.
|
24 | 22 |
|
25 | 23 | ## Usage
|
26 | 24 |
|
27 |
| -You can include any of these crates in your library via crates.io or as a git dependency. For example, to include the `stark-felt` crate, add the following to your `Cargo.toml`: |
| 25 | +You can include any of these crates in your library via crates.io or as a git dependency. For example, to include the `starknet-types-core` crate, add the following to your `Cargo.toml`: |
28 | 26 |
|
29 | 27 | As a crates.io dependency:
|
30 | 28 |
|
31 | 29 | ```toml
|
32 | 30 | [dependencies]
|
33 |
| -stark-felt = "0.0.1" |
| 31 | +starknet-types-core = "0.1.0" |
34 | 32 | ```
|
35 | 33 |
|
36 | 34 | As a git dependency:
|
37 | 35 |
|
38 | 36 | ```toml
|
39 | 37 | [dependencies]
|
40 |
| -stark-felt = { git = "https://github.com/starknet-io/types-rs" } |
41 |
| -starknet-types-core = { git = "https://github.com/starknet-io/types-rs.git", version = "0.0.1", default-features = false, features = ["serde"] } |
| 38 | +starknet-types-core = { git = "https://github.com/starknet-io/types-rs.git", version = "0.1.0", default-features = false, features = ["serde"] } |
42 | 39 | ```
|
43 | 40 |
|
44 | 41 | ## Build from source
|
|
0 commit comments