Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 01010d5

Browse files
authored
rename crate to starknet_in_rust (#696)
* rename crate to starknet_in_rust * use relative path for starknet-contract-class and crates.io for publish
1 parent b43cb95 commit 01010d5

28 files changed

+49
-45
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[package]
2-
name = "starknet-rs"
2+
name = "starknet_in_rust"
33
version = "0.1.0"
44
edition = "2021"
5+
description = "A Rust implementation of Starknet execution logic"
6+
license = "Apache-2.0"
57

68
[features]
79
default = ["with_mimalloc"]
@@ -26,15 +28,15 @@ num-traits = "0.2.15"
2628
serde = { version = "1.0.152", features = ["derive"] }
2729
serde_json = { version = "1.0", features = ["arbitrary_precision", "raw_value"] }
2830
sha3 = "0.10.1"
29-
lambda_starknet_api = { workspace = true}
31+
lambda_starknet_api = { workspace = true }
3032
starknet-crypto = "0.5.1"
3133
thiserror = "1.0.32"
3234
awc = "3.1.1"
3335
mimalloc = { version = "0.1.29", default-features = false, optional = true }
3436
hex = "0.4.3"
3537
cargo-llvm-cov = "0.5.14"
3638
anyhow = "1.0.66"
37-
starknet-contract-class = { path = "crates/starknet-contract-class" }
39+
starknet-contract-class = { path = "./crates/starknet-contract-class", version = "0.1.0" }
3840
once_cell = "1.17.1"
3941

4042
[dev-dependencies]

bench/internals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use cairo_vm::felt;
44
use felt::{felt_str, Felt252};
55
use lazy_static::lazy_static;
66
use num_traits::Zero;
7-
use starknet_rs::{
7+
use starknet_in_rust::{
88
core::contract_address::compute_deprecated_class_hash,
99
definitions::{
1010
block_context::StarknetChainId,

cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use cairo_vm::felt::Felt252;
33
use clap::{Args, Parser, Subcommand};
44
use num_traits::{Num, Zero};
55
use serde::{Deserialize, Serialize};
6-
use starknet_rs::{
6+
use starknet_in_rust::{
77
core::{
88
contract_address::compute_deprecated_class_hash,
99
errors::{contract_address_errors::ContractAddressError, state_errors::StateError},

crates/starknet-contract-class/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "starknet-contract-class"
33
version = "0.1.0"
44
edition = "2021"
5+
description = "Crate that parses a Starknet contract class from API"
6+
license = "Apache-2.0"
57

68
[dependencies]
79
serde = "1.0.156"

examples/contract_execution/execute_contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![deny(warnings)]
22

33
use cairo_vm::felt::Felt252;
4-
use starknet_rs::{
4+
use starknet_in_rust::{
55
execution::{
66
execution_entry_point::ExecutionEntryPoint,
77
objects::{CallInfo, CallType, TransactionExecutionContext},

examples/contract_execution/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//! running some pre-compiled contracts is as expected.
1111
1212
use cairo_vm::felt::Felt252;
13-
use starknet_rs::{
13+
use starknet_in_rust::{
1414
services::api::contract_classes::deprecated_contract_class::ContractClass,
1515
testing::state::StarknetState,
1616
utils::{calculate_sn_keccak, Address},

fuzzer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use cairo_vm::felt::Felt252;
77
use cairo_vm::vm::runners::cairo_runner::ExecutionResources;
88
use num_traits::Zero;
99
use starknet_contract_class::EntryPointType;
10-
use starknet_rs::{
10+
use starknet_in_rust::{
1111
definitions::{block_context::BlockContext, constants::TRANSACTION_VERSION},
1212
execution::{
1313
execution_entry_point::ExecutionEntryPoint, CallInfo, CallType, TransactionExecutionContext,

src/bin/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::path::PathBuf;
22

33
use lazy_static::lazy_static;
4-
use starknet_rs::{
4+
use starknet_in_rust::{
55
services::api::contract_classes::deprecated_contract_class::ContractClass,
66
testing::state::StarknetState,
77
};

src/bin/deploy_invoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::path::PathBuf;
33
use cairo_vm::felt::{felt_str, Felt252};
44
use num_traits::Zero;
55

6-
use starknet_rs::{
6+
use starknet_in_rust::{
77
services::api::contract_classes::deprecated_contract_class::ContractClass,
88
testing::state::StarknetState, utils::Address,
99
};

0 commit comments

Comments
 (0)