Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bounds checks from array_get. #6635

Draft
wants to merge 229 commits into
base: dev-v2.8.4
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
41b8f87
LS: fix metadata hack (#6296)
piotmag769 Aug 27, 2024
b023a6f
Add IntRange type to Sierra. (#6285)
liorgold2 Aug 27, 2024
546c0d8
Add int_range_pop_front libfunc. (#6286)
liorgold2 Aug 28, 2024
75756dc
Added gas redeposit optimization stage. (#6280)
orizi Aug 28, 2024
98aa21d
Add int_range_try_new libfunc. (#6288)
liorgold2 Aug 28, 2024
158aba3
Use IntRange libfuncs in range.cairo. (#6289)
liorgold2 Aug 28, 2024
c8407b2
Modify int_range_try_new to return an empty range on failure. (#6298)
liorgold2 Aug 28, 2024
9e57d80
Fix panic code generation. (#6305)
gilbens-starkware Aug 28, 2024
be5bc2a
Made sierra generation external stack based. (#6303)
orizi Aug 29, 2024
0d88a8f
chore: remove all instances of inline(always) from corelib (#6114)
javra Aug 29, 2024
01e3786
Add Token syntax node which can hold any token. (#6306)
gilbens-starkware Aug 29, 2024
a75cd31
Remove file id argument from lexer. (#6307)
gilbens-starkware Aug 29, 2024
2750788
Const in Statements Semantic support (#6299)
Tomer-StarkWare Aug 29, 2024
037e731
use items to parser (#6304)
Tomer-StarkWare Aug 29, 2024
ae671e5
LS: New state architecture (#6309)
Draggu Aug 29, 2024
f9f2823
Feat: support format!("{:x}") notation for hexadecimal formatting (#6…
remybar Aug 29, 2024
4193149
LS: Restart LSP client instead of window reload (#6312)
Draggu Aug 30, 2024
ac0e135
LS: remove VFS update (#6311)
piotmag769 Aug 30, 2024
b36d947
Fixed minor typo caught by new `typos` version. (#6325)
orizi Sep 1, 2024
79853c7
Made non-copy variable not be forwarded in const folding. (#6324)
orizi Sep 1, 2024
aadb183
LS: Fix repeated diagnostics (#6302)
Arcticae Sep 2, 2024
e2ff77c
LS: Unrecognized LS requests to be cancelled on salsa failures (#6319)
Draggu Sep 2, 2024
36d1e18
Added TryInto::<u384, {u256,u128}>. (#6326)
orizi Sep 2, 2024
50f6c82
Small refactor. (#6323)
liorgold2 Sep 2, 2024
1061e07
Add EmptyDemandReporter. (#6327)
liorgold2 Sep 2, 2024
22322f9
LS: refresh project on `cairo_project.toml` change, register text doc…
piotmag769 Sep 2, 2024
7d9e81b
Refactor statement_can_be_optimized_out. (#6328)
liorgold2 Sep 3, 2024
1d81c29
Properly printing panics in the cairo runner. (#6333)
orizi Sep 3, 2024
63fb73e
match_optimization: Add tests. (#6335)
liorgold2 Sep 3, 2024
0743470
Update Builtin costs. (#6340)
ilyalesokhin-starkware Sep 3, 2024
5755484
Allow passing diagnostics_reporter to compile_tests_prepared_db (#6344)
maciektr Sep 3, 2024
1ef88bb
match_optimization: Track reachable blocks. (#6336)
liorgold2 Sep 3, 2024
d3628c3
prevent capturing mutable variables and allow accessing copiable vari…
TomerStarkware Sep 4, 2024
90180ec
changed generated function key to concrete function (#6342)
TomerStarkware Sep 4, 2024
dfe3a70
match_optimizer.rs: Small refactor. (#6341)
liorgold2 Sep 4, 2024
611c2cb
LS: fix dynamic registration (#6334)
piotmag769 Sep 4, 2024
74c1bdc
Add additional_remapping to OptimizationCandidate and FixInfo. (#6338)
liorgold2 Sep 4, 2024
7eb3c15
dev: implement Zero for u384 (#6329)
enitrat Sep 4, 2024
dbc3ee2
match_optimization: Add support for additional remapping (not enabled…
liorgold2 Sep 4, 2024
60ccf69
Refactored adding generated impls in semantic lookup. (#6350)
orizi Sep 4, 2024
98a5096
changed closure exprs to hold Parameter instead of ParamId (#6346)
TomerStarkware Sep 5, 2024
aa6acc3
Added capture implementation for Copy. (#6352)
orizi Sep 5, 2024
26ba445
Added default-implementation for `map_block_id` in `Rebuilder`. (#6354)
orizi Sep 5, 2024
3f92254
Enrich members caching. (#6343)
orizi Sep 5, 2024
1360ba2
LS: refactor in preparation for `lsp-server` migration (#6357)
piotmag769 Sep 5, 2024
004d2b4
Enable match optimization with remapping when there is no future merg…
liorgold2 Sep 5, 2024
c55d37c
Made `use` leaf finding non-recursive. (#6360)
orizi Sep 8, 2024
f4c4e17
refactoring statement const semantics (#6353)
Tomer-StarkWare Sep 8, 2024
42497f3
adding support to use statements in semantics (#6356)
Tomer-StarkWare Sep 8, 2024
255122b
added lowering of FnOnce Call (#6355)
TomerStarkware Sep 8, 2024
e058c57
Refactored `get_use_segments` to contain less stages. (#6361)
orizi Sep 8, 2024
d248e2b
Add comment for ENTRY_POINT_INITIAL_BUDGET refund. (#6363)
ilyalesokhin-starkware Sep 8, 2024
987d08d
Nightly update. (#6359)
orizi Sep 8, 2024
ff1296e
Merge remote-tracking branch 'origin/dev-v2.8.2' into orizi/merge-dev…
orizi Sep 8, 2024
ae0101e
Fixed conflicts.
orizi Sep 8, 2024
6679166
Merge dev v2.8.2 into main (#6365)
orizi Sep 9, 2024
645ef14
Fixed `use` block items to use their alias. (#6366)
orizi Sep 9, 2024
bcee453
Minor refactoring of `get_all_path_leaves`. (#6367)
orizi Sep 9, 2024
d22835b
Passing around `ConstValueId` instead of `ConstValue`. (#6368)
orizi Sep 9, 2024
f715fb0
Doc comments/support module level comments (#6317)
wawel37 Sep 9, 2024
1eb938a
type statement parser support (#6369)
Tomer-StarkWare Sep 9, 2024
9b603b8
Update README (#6373)
Olexandr88 Sep 10, 2024
c52b49d
Let DiagnosticsReporter `ensure` function take only necessary type (#…
wawel37 Sep 12, 2024
d6163bd
Fix parsing code examples in documentation comments (#6377)
wawel37 Sep 13, 2024
3eb7af7
Fix formatting precedence of for loop parts. (#6371)
gilbens-starkware Sep 15, 2024
8f96af5
Remove Default from CasmContractClass. (#6383)
ilyalesokhin-starkware Sep 18, 2024
b974f0f
add verify diagnostics expectation to lowering test (#6385)
dean-starkware Sep 18, 2024
102b8f0
Add signature getter for trait const and type item type (#6386)
wawel37 Sep 18, 2024
9c8e97b
Make struct members signatures handled in doc group (#6387)
wawel37 Sep 19, 2024
a30295f
Prevented rewrite of fully concrete impls. (#6390)
orizi Sep 19, 2024
883047e
add closing parenthesis to methods completion (#6380)
dean-starkware Sep 19, 2024
b20acc4
add conescutive math operator diagnostic to the parser (#6392)
dean-starkware Sep 22, 2024
83b0535
Refactored `Constrain0` usages. (#6397)
orizi Sep 22, 2024
a747fc6
Refactored `negation` of `BoundedInt`. (#6398)
orizi Sep 22, 2024
560f6dc
Improved `AbsAndSign`. (#6399)
orizi Sep 22, 2024
346ddae
docs: fix broken link to documentation (#6400)
Oemerbeck Sep 22, 2024
f909ab8
Allow 'doc' attribute (#6384)
wawel37 Sep 23, 2024
4febc89
Removed need for `Hash` on crate config. (#6401)
orizi Sep 23, 2024
cb7675d
Refactor resolver base finding. (#6404)
orizi Sep 23, 2024
e505a45
Removed extra generated panic code. (#6410)
orizi Sep 24, 2024
0496462
Added dependencies to crate config. (#6411)
orizi Sep 24, 2024
0876e2f
Used settings instead of edition in resolver. (#6412)
orizi Sep 24, 2024
3280677
Made crates references be looked up only on dependencies. (#6405)
orizi Sep 24, 2024
b70277b
Disabled inline macro expansion on parser errors. (#6413)
orizi Sep 24, 2024
8a23375
Fixed formatting at test. (#6414)
orizi Sep 24, 2024
f9697a4
Change full_path for impl, trait, struct and enum items (#6409)
wawel37 Sep 24, 2024
d6f9822
Skipping expansion on any underlying parser errors. (#6415)
orizi Sep 24, 2024
e5cbddd
Optimized `BitNot` by BoundedInt. (#6416)
orizi Sep 25, 2024
7d1e58b
Enabled bounded-int `abs` optimization in i128 mul. (#6417)
orizi Sep 25, 2024
f0e7c4e
Refactored const folding. (#6418)
orizi Sep 26, 2024
7b36a05
add get_class_hash_at_syscall (#6407)
dean-starkware Sep 26, 2024
f982d3c
fixed a bug where the trait of trait impl were not substituted correc…
TomerStarkware Sep 26, 2024
e4136a4
Enabled bounded-int const folding. (#6419)
orizi Sep 26, 2024
eaf8d49
Using `Zero` and `One` instead of old traits. (#6423)
orizi Sep 29, 2024
1c651aa
Added `NonZero()` for const value fmt. (#6424)
orizi Sep 29, 2024
30b0475
Allow defining const negative `NonZero`. (#6425)
orizi Sep 29, 2024
816c4a6
Added additional tests for `bounded_int` const folding. (#6426)
orizi Sep 29, 2024
98fb56b
fixed a bug where the trait of trait impl were not substituted correc…
TomerStarkware Sep 30, 2024
605f187
chore: fix typos (#6443)
0xLucqs Oct 1, 2024
3a3f8ba
Made version a part of crate ids. (#6406)
orizi Oct 1, 2024
ca2dceb
feat(semantic): add declared allows in analyzer plugins (#6429)
0xLucqs Oct 1, 2024
227cea9
Fix returned error array. (#6442)
ilyalesokhin-starkware Oct 1, 2024
323ea7e
Doc/remove trivia from signatures (#6393)
wawel37 Oct 2, 2024
a74ebfd
fix(profiler): ignore pc outside of function area (#6439)
m-kus Oct 2, 2024
d7813fb
Create api for diagnostics ensure with no need for lowering group (#6…
wawel37 Oct 3, 2024
df92761
Make `compile_test_prepared_db` API more configurable (#6449)
maciektr Oct 4, 2024
e1e811f
LS: Fix duplicated and misplaced diagnostics (#6446)
Arcticae Oct 4, 2024
d54668e
Fixing const folded NonZero types. (#6432)
orizi Oct 6, 2024
71c7391
Added support for div-rem const folding. (#6433)
orizi Oct 6, 2024
dbc88ef
Enabled const-folding cancelation for e2e tests. (#6434)
orizi Oct 6, 2024
1b6162e
Added `*_eq` const folding. (#6435)
orizi Oct 6, 2024
e1194ef
Refactored setting constant and returning statement together. (#6436)
orizi Oct 6, 2024
c0fbcbb
Const propagation for ops with special operands. (#6453)
orizi Oct 6, 2024
3900e0c
Added const-folding `*_eq` with 0 into `*_iz_zero`. (#6454)
orizi Oct 6, 2024
2b295c2
Fixed self-ref type detection. (#6455)
orizi Oct 7, 2024
5c6d24f
feat(profiler): allow to preserve original stack trace order (#6441)
m-kus Oct 7, 2024
61cc7c1
Profiling info processor: allow to specify non-default params (#6396)
m-kus Oct 7, 2024
fbb54c8
Merge v2.8.4 into main (#6458)
orizi Oct 7, 2024
11f8f02
statement types in resolver (#6408)
Tomer-StarkWare Oct 8, 2024
4b9410e
Allow storing arbitrary strings to differentiate crate instances (#6450)
mkaput Oct 8, 2024
9267169
LS: Properly set crate dependencies and their settings (#6451)
mkaput Oct 9, 2024
bfe9ba6
fixed sort (use & mod) method in formatter (#6438)
dean-starkware Oct 9, 2024
2451d4f
Add version vs. discriminator docs section (#6466)
mkaput Oct 9, 2024
9327673
Upgrade Rust toolchain to `nightly-2024-09-21` (#6470)
mkaput Oct 9, 2024
9c11955
Added analyzer check for enums with starknet::Store with no default. …
orizi Oct 10, 2024
2fdf27d
Made `hash` of substition not allocation memory. (#6460)
orizi Oct 10, 2024
e61d15b
Remove unneeded `allow`s - or make them `expect` instead. (#6461)
orizi Oct 10, 2024
7256492
Refactor syntax-gen. (#6464)
orizi Oct 10, 2024
5900876
Fixed future clippy warnings. (#6473)
orizi Oct 10, 2024
737cc88
Made signed int add and sub more efficient. (#6465)
orizi Oct 10, 2024
ed19125
LS: Rewrite from `tower_lsp` to `lsp_server` (#6431)
Draggu Oct 11, 2024
361caaa
corelib: circuit related utils improvements (#6482)
feltroidprime Oct 13, 2024
7a2cdc9
Hide docs for code auto-generated by starknet plugin (#6481)
maciektr Oct 14, 2024
65d3246
Make function to get all syntax tree leaves / Serialization of Span (…
wawel37 Oct 15, 2024
7cfecf3
Add redeposit gas flag to root database builder (#6491)
maciektr Oct 15, 2024
2836862
LS: Move `Backend::catch_panics` to separate module (#6492)
mkaput Oct 16, 2024
40a7b60
LS: Add `Scheduler::local` utility (#6493)
mkaput Oct 16, 2024
deddcc7
LS: Add `Scheduler::on_sync_task` mechanism and use it for bookkeepin…
mkaput Oct 17, 2024
78303aa
LS: Make database swapping use benefits of new architecture (#6495)
mkaput Oct 17, 2024
f3cd95f
LS: Remove unused async dependencies (#6498)
mkaput Oct 17, 2024
1ff26cb
Tomer/impl impl stores concrete trait (#6472)
TomerStarkware Oct 20, 2024
a1a76db
Used the result of `assemble` to directly creating the hint maps. (#6…
orizi Oct 20, 2024
4595c88
Made error type for gas calculation contain inner error. (#6488)
orizi Oct 20, 2024
0bc034b
Add missing `TupleSplitTupleSize16` impl. in `metaprogramming.cairo` …
feltroidprime Oct 20, 2024
4f482d4
add inner use sort to formatter. (#6467)
dean-starkware Oct 21, 2024
68938b7
Made arguments to functions in run injected through vm and not code. …
orizi Oct 23, 2024
ee9134e
LS: Hide amount of parallelism as internal detail of `thread::Pool` (…
mkaput Oct 23, 2024
516ca3a
LS: Move diagnostics refreshing to separate module (#6505)
mkaput Oct 23, 2024
ce412d8
LS: Inline `ls_catch_unwind` (#6506)
mkaput Oct 23, 2024
637351f
Remove corelib from `ProjectConfig` (#6511)
piotmag769 Oct 23, 2024
040513c
LS: Make `crate::server::schedule::thread` accessible in codebase (#6…
mkaput Oct 23, 2024
e1ae8f2
Adjust `ProjectConfig` to remove implicit assumption that `discrimina…
piotmag769 Oct 24, 2024
486a5f1
VSCode: add status bar (#6497)
marcuspang Oct 24, 2024
7a3bb6c
LS: Refresh diagnostics in separate thread (#6508)
mkaput Oct 25, 2024
b997c2a
LS: Stop spamming about tracing spans in logs (#6515)
mkaput Oct 25, 2024
3ea3412
LS: Filter out less important Salsa logs from trace profiles (#6516)
mkaput Oct 25, 2024
02fca5c
LS: Reduce noise in trace profiles' slices (#6517)
mkaput Oct 25, 2024
f98c2b0
LS: Explicitly ignore `Cancel` & `SetTrace` without polluting logs (#…
mkaput Oct 25, 2024
1f0db2f
Added checking for args supplied to runner matching params. (#6525)
orizi Oct 28, 2024
85d2e70
validated negative impls of generated impls (#6490)
TomerStarkware Oct 28, 2024
b9b90c5
LS: pull crate dependencies from scarb (#6527)
piotmag769 Oct 29, 2024
4576675
LS: Fix `is_cancelled` types (#6530)
mkaput Oct 29, 2024
848b90f
LS: fix diagnostics' panics (#6529)
piotmag769 Oct 29, 2024
8e04932
LS: Do not yell in logs about cancellation and make them more detaile…
mkaput Oct 29, 2024
1053f40
LS: Re-detect crates upon db swap (#6538)
mkaput Oct 29, 2024
c8277d3
LS: Add submitting issues section (#6532)
Arcticae Oct 29, 2024
cc5bd37
VSC: Lower status bar item priority (#6533)
mkaput Oct 30, 2024
e3f140a
LS: Schedule only module main files for diagnostics refreshing (#6548)
mkaput Oct 30, 2024
46e88f0
Supporting larger offsets for automatic builtin usage validation. (#6…
orizi Oct 31, 2024
2ad7718
Small parser refactor. (#6554)
gilbens-starkware Oct 31, 2024
337cb12
Used casm builer for setting up the runner entry code. (#6547)
orizi Oct 31, 2024
c2be93c
Only using the required builtins with the VM runner. (#6550)
orizi Oct 31, 2024
1ee35e6
Updated nightly version. (#6557)
orizi Oct 31, 2024
2a290d3
Minor refactoring of use-sorting to be more comma focused. (#6560)
orizi Oct 31, 2024
03cd3ab
Fixed sorting of multi (`{a, b}`) elements with others. (#6561)
orizi Oct 31, 2024
92432e8
LS: accumulate dependencies and cfg set for the same crates (#6553)
piotmag769 Oct 31, 2024
974329a
LS: Set a special panic hook that skips for Salsa cancellation panics…
mkaput Oct 31, 2024
b4cba2f
Fixed minor typo. (#6573)
orizi Nov 3, 2024
3553911
Updated typos CI version. (#6574)
orizi Nov 3, 2024
03cf46e
Prevented `cairo-test` crash on bad test attributes. (#6572)
orizi Nov 3, 2024
5761e45
update protected zone (#6568)
dean-starkware Nov 3, 2024
e8ce3fe
Add validations that all the needed crates are tested in the CI and r…
gilbens-starkware Nov 4, 2024
4530f64
Added segment arena handling to runner. (#6555)
orizi Nov 4, 2024
5e447a6
LS: Introduce hovers for literals (#6478)
integraledelebesgue Nov 4, 2024
da36153
Moved logic of building runnable to runnable-builder. (#6575)
orizi Nov 4, 2024
0721127
Added plugin to allow marking a function as runnable. (#6576)
orizi Nov 4, 2024
ee0d2f4
Adding `ExternalHint` as a hint variant. (#6578)
orizi Nov 4, 2024
56a1909
Somewhat improved diagnostics location occuring from final solve. (#6…
orizi Nov 5, 2024
c60f2a3
Solving current inference state prior to finding index traits. (#6587)
orizi Nov 5, 2024
2fab1f5
Doc-group / Tokenize documentation into links and plain content (#6522)
wawel37 Nov 5, 2024
d401aeb
adding space as a LineComponent (#6588)
dean-starkware Nov 5, 2024
620b6f1
dean/formatter break line with comma (#6510)
dean-starkware Nov 5, 2024
dd1b62e
Notify about failed scarb metadata (#6596)
piotmag769 Nov 5, 2024
73a1166
LS: Collect modules for files inside `refresh_file_diagnostics` (#6589)
mkaput Nov 6, 2024
70abf3a
LS: Take `FileId` by value in `map_cairo_diagnostics_to_lsp` (#6590)
mkaput Nov 6, 2024
2d2352f
Improve error message for failed metadata (#6598)
piotmag769 Nov 6, 2024
5954d24
LS: Remove `Backend::create_state` in favour of `State::new` (#6599)
Draggu Nov 6, 2024
4c220d1
LS: Rename `ide/macros.rs` to `ide/macros/mod.rs` (#6601)
mkaput Nov 7, 2024
d390b09
LS: Move `find_methods_for_type` from `ide` to `lang::inspect` (#6602)
mkaput Nov 7, 2024
3f74a9c
LS: Cancel background tasks when terminating (#6609)
mkaput Nov 8, 2024
eab7655
tuples and fixedsizearray break line updated (#6611)
dean-starkware Nov 10, 2024
8ee9711
Solver doc updates. (#6619)
orizi Nov 11, 2024
91a2e95
Core Lib Documentation: `array` module (#6610)
TAdev0 Nov 11, 2024
ccbc7f1
Fixed issue with consts defined out of order. (#6625)
orizi Nov 11, 2024
d49baa0
Fix: Fix source_location and file_full_path at maybe_code_location fn…
barabanovro Nov 11, 2024
e765ee6
Improved hint macro handling. (#6630)
orizi Nov 12, 2024
50b6d0c
Fix missing outer docs in case of being between attributes (#6603)
wawel37 Nov 12, 2024
b139a4a
Name refactoring in `add_get_total_requested_count_code`. (#6616)
orizi Nov 12, 2024
5e02697
Changed ap-change-only solver to be the linear solver. (#6626)
orizi Nov 12, 2024
71d8125
Renamed `topological_order` to `reverse_topological_order`. (#6617)
orizi Nov 12, 2024
5151b81
LS: Refactor `FileDiagnostics` (#6613)
mkaput Nov 12, 2024
029ca27
Made arg injection to be a hint. (#6579)
orizi Nov 12, 2024
226c364
Made fully cost iteration not go through a `Map` structure. (#6634)
orizi Nov 12, 2024
0fcdfdf
Added basic runnable to textual casm compilation. (#6595)
orizi Nov 12, 2024
3874879
Made a clearer python print for param assignment. (#6636)
orizi Nov 12, 2024
81728c8
infer trait implementations based on trait types (#6600)
TomerStarkware Nov 13, 2024
dd9ca2e
Removed useless `+= 0`. (#6639)
orizi Nov 13, 2024
4a674b5
Create a parser API for TokenStream. (#6594)
wawel37 Nov 13, 2024
ebbbdb4
Allow converting text offset to numerical value (#6662)
maciektr Nov 14, 2024
8fde3ce
LS: Add completions of struct members (#6567)
integraledelebesgue Nov 14, 2024
628beb3
LS: Allow parametrizing completion tests behaviour (#6563)
integraledelebesgue Nov 14, 2024
89a00fe
LS: Add "fill struct fields" code action (#6565)
integraledelebesgue Nov 14, 2024
a952721
LS: Limit module import completion to visible members (#6566)
integraledelebesgue Nov 14, 2024
e9f3b1b
Extracted entry-code creation into a basic configuration. (#6640)
orizi Nov 17, 2024
f8330d0
Made match optimizer handle future remappings. (#6669)
orizi Nov 17, 2024
eff7243
Added `validate` phase for debugging purposes. (#6661)
orizi Nov 17, 2024
7817768
Made the plugin compilation be based on the wrapper functions. (#6642)
orizi Nov 17, 2024
8938382
When running tests without gas not adding redeposits. (#6668)
orizi Nov 17, 2024
2dff637
Remove bounds checks from array_get.
ilyalesokhin-starkware Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-08-22
toolchain: nightly-2024-10-30
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- run: |
Expand All @@ -41,6 +41,8 @@ jobs:
- test --profile=ci-dev -p cairo-lang-plugins
- test --profile=ci-dev -p cairo-lang-proc-macros
- test --profile=ci-dev -p cairo-lang-project
- test --profile=ci-dev -p cairo-lang-runnable
- test --profile=ci-dev -p cairo-lang-runnable-utils
- test --profile=ci-dev -p cairo-lang-runner
- test --profile=ci-dev -p cairo-lang-semantic
- test --profile=ci-dev -p cairo-lang-sierra
Expand All @@ -53,6 +55,7 @@ jobs:
- test --profile=ci-dev -p cairo-lang-starknet
- test --profile=ci-dev -p cairo-lang-syntax
- test --profile=ci-dev -p cairo-lang-syntax-codegen
- test --profile=ci-dev -p cairo-lang-test-plugin
- test --profile=ci-dev -p cairo-lang-test-runner
- test --profile=ci-dev -p cairo-lang-test-utils
- test --profile=ci-dev -p cairo-lang-utils --features=serde,parity-scale-codec,schemars,testing,env_logger
Expand All @@ -63,11 +66,22 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: nightly-2024-08-22
toolchain: nightly-2024-10-30
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@nextest
# Validates that the number of commands in the matrix is equal to the number of crates in the
# workspace + 2 (for the crates which have multiple commands)
- run: |
CRATES_COUNT=$(find {crates/*,tests}/Cargo.toml | wc -l)
COMMANDS_COUNT=${{ strategy.job-total }}
if [ $((CRATES_COUNT + 2)) -ne $COMMANDS_COUNT ]; then
echo "CRATES_COUNT: $CRATES_COUNT"
echo "COMMANDS_COUNT: $COMMANDS_COUNT"
echo "The number of commands in the matrix is not equal to the number of crates in the workspace + 2"
exit 1
fi
- run: |
cargo ${{ matrix.cmd }}
test:
Expand All @@ -86,7 +100,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: nightly-2024-08-22
toolchain: nightly-2024-10-30
- uses: Swatinem/rust-cache@v2
- run: scripts/rust_fmt.sh --check

Expand Down Expand Up @@ -125,7 +139,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: nightly-2024-08-22
toolchain: nightly-2024-10-30
- uses: Swatinem/rust-cache@v2
- run: >
scripts/clippy.sh
Expand All @@ -134,15 +148,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
- uses: crate-ci/typos@v1.27.0

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-08-22
toolchain: nightly-2024-10-30
- uses: Swatinem/rust-cache@v2
- run: >
scripts/docs.sh
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
- run: >
scripts/docs.sh

typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master

starknet_sierra_validate:
runs-on: ubuntu-latest
steps:
Expand Down
Loading