This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
build :
16
- runs-on : ubuntu-20 .04
16
+ runs-on : ubuntu-22 .04
17
17
steps :
18
18
- name : Install Rust
19
19
uses : dtolnay/rust-toolchain@stable
34
34
run : make build
35
35
36
36
format :
37
- runs-on : ubuntu-20 .04
37
+ runs-on : ubuntu-22 .04
38
38
steps :
39
39
- name : Install Rust
40
40
uses : dtolnay/rust-toolchain@stable
57
57
run : make clippy
58
58
59
59
test :
60
- runs-on : ubuntu-20 .04
60
+ runs-on : ubuntu-22 .04
61
61
steps :
62
62
- name : Install Rust
63
63
uses : dtolnay/rust-toolchain@stable
@@ -76,10 +76,12 @@ jobs:
76
76
run : make deps
77
77
- name : Run tests
78
78
run : make test
79
+ - name : Run doctests
80
+ run : cargo test --workspace --doc
79
81
80
82
# 28.06.2023: This job uses unmaintained actions-rs because dtolnay is giving linking errors with nightly
81
83
coverage :
82
- runs-on : ubuntu-20 .04
84
+ runs-on : ubuntu-22 .04
83
85
steps :
84
86
- name : Checkout
85
87
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ $(cairo-repo-2-dir):
129
129
# =================
130
130
131
131
build : compile-cairo compile-starknet
132
- cargo build --release --all
132
+ cargo build --release --workspace
133
133
134
134
check : compile-cairo compile-starknet
135
- cargo check --all --all-targets
135
+ cargo check --workspace --all-targets
136
136
137
137
deps : check-python-version build-cairo-2-compiler build-cairo-1-compiler
138
138
cargo install flamegraph --version 0.6.2
@@ -163,13 +163,13 @@ clean:
163
163
-rm -rf cairo-1.1.1.tar
164
164
165
165
clippy : compile-cairo compile-starknet $(CAIRO_1_COMPILED_CASM_CONTRACTS ) $(CAIRO_2_COMPILED_CASM_CONTRACTS )
166
- cargo clippy --all --all-targets -- -D warnings
166
+ cargo clippy --workspace --all-targets -- -D warnings
167
167
168
168
test : compile-cairo compile-starknet $(CAIRO_1_COMPILED_CASM_CONTRACTS ) $(CAIRO_1_COMPILED_SIERRA_CONTRACTS ) $(CAIRO_2_COMPILED_CASM_CONTRACTS ) $(CAIRO_2_COMPILED_SIERRA_CONTRACTS )
169
169
echo " Cairo1 tests"
170
- cargo test --release --all --all-targets --features=cairo_1_tests
170
+ cargo test --workspace --all-targets --features=cairo_1_tests
171
171
echo " Cairo2 tests"
172
- cargo test --release --all --all-targets
172
+ cargo test --workspace --all-targets
173
173
174
174
coverage : compile-cairo compile-starknet compile-abi $(CAIRO_1_COMPILED_CASM_CONTRACTS ) $(CAIRO_2_COMPILED_CASM_CONTRACTS )
175
175
cargo +nightly llvm-cov --ignore-filename-regex ' main.rs' --release
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use std::vec;
34
34
/// # Examples
35
35
///
36
36
/// ```
37
- /// use starknet_in_rust::{hash_utils::calculate_contract_address, utils::Address, Felt252};
37
+ /// use starknet_in_rust::{hash_utils::calculate_contract_address, utils::Address, felt:: Felt252};
38
38
///
39
39
/// let salt = Felt252::from(123_u16);
40
40
/// let class_hash = Felt252::from(456_u16);
@@ -92,7 +92,7 @@ pub fn calculate_contract_address(
92
92
/// # Examples
93
93
///
94
94
/// ```
95
- /// use starknet_in_rust::Felt252;
95
+ /// use starknet_in_rust::felt:: Felt252;
96
96
/// use starknet_in_rust::hash_utils::compute_hash_on_elements;
97
97
///
98
98
/// let input_vec = vec![
You can’t perform that action at this time.
0 commit comments