Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

cre8-app-chess chess cargo crate

ChessApp — extracted RuntimeApp crate.

crates/cre8-app-chess · level 25 · 21,974 lines (19,409 code) · 42 files · 1,081 fns (162 tests) · cyclomatic Σ 2,829

19workspace deps
1direct dependents
8transitive dependents
314calls out
0calls in
1049call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

normal dep · 10 calls · source referencenormal dep · 1 calls · source referencenormal dep · 33 calls · source referencenormal dep · 6 calls · source referencenormal dep · 12 calls · source referencenormal dep · 4 calls · source referencenormal dep · 2 calls · source referencenormal dep · 117 calls · source referencenormal dep · 49 calls · source referencenormal dep · 9 calls · source referencenormal dep · 1 calls · source referencenormal dep · 16 calls · source referencenormal dep · 28 calls · source referencenormal dep · 4 calls · source referencenormal dep · 3 calls · source referencenormal dep · 0 calls · incomplete scannormal dep · 0 calls · source referencenormal dep · 10 calls · source referencenormal dep · 9 calls · source referencedev dep · 0 calls · incomplete scandev dep · 0 calls · incomplete scandev dep · 0 calls · incomplete scannormal dep · 0 calls · source referencedev dep · 0 calls · incomplete scanapp-chessL25 · 19,409 linescre8-app-chessapp-actionL8 · 3,135 linescre8-app-actionapp-agentL24 · 25,428 linescre8-app-agentapp-gameL17 · 7,266 linescre8-app-gameapp-itemL15 · 6,586 linescre8-app-itemapp-manifoldL10 · 18,941 linescre8-app-manifoldapp-protocolL9 · 26,097 linescre8-app-protocolapp-roomL16 · 5,478 linescre8-app-roomapp-truthL7 · 20,485 linescre8-app-truthapp-view-libL8 · 89,193 linescre8-app-view-libplatform-entropyL3 · 59 linescre8-platform-entropyplatform-fsL0 · 207 linescre8-platform-fsplatform-timeL3 · 65 linescre8-platform-timeruntime-app-typesL6 · 2,860 linescre8-runtime-app-typesruntime-contractsL0 · 6,322 linescre8-runtime-contractsruntime-coreL2 · 747 linescre8-runtime-coreruntime-dispatch-apiL7 · 496 linescre8-runtime-dispatch-apiruntime-hostL1 · 1,649 linescre8-runtime-hostutil-cryptoL3 · 749 linescre8-util-cryptoutil-view-htmlL0 · 1,660 linescre8-util-view-htmlapp-accountL9 · 3,668 linescre8-app-accountapp-transactionL18 · 464 linescre8-app-transactiontest-helpersL29 · 557 linescre8-test-helpersruntime-app-catalogL28 · 681 linescre8-runtime-app-catalogruntime-test-suiteL0 · 0 linescre8-runtime-test-suite

Files

lowhigh
crates/cre8-app-chess/src/app.rs · 689 lines · 16 fnsapp.rscrates/cre8-app-chess/src/bin/chess_moon_bite/main.rs · 3 lines · 1 fnscrates/cre8-app-chess/src/bin/chess_moon_bite/run.rs · 134 lines · 9 fnscrates/cre8-app-chess/src/bin/chess_multiplayer_demo/main.rs · 3 lines · 1 fnscrates/cre8-app-chess/src/bin/chess_multiplayer_demo/run.rs · 233 lines · 8 fnsrun.rscrates/cre8-app-chess/src/clock.rs · 89 lines · 12 fnsclock.…crates/cre8-app-chess/src/collection.rs · 1,043 lines · 75 fnscollection.rscrates/cre8-app-chess/src/collection/ledger.rs · 218 lines · 18 fnsledger.rscrates/cre8-app-chess/src/collection/ledger_tests.rs · 156 lines · 10 fnsledger_t…crates/cre8-app-chess/src/collection_tests.rs · 242 lines · 13 fnscollection…crates/cre8-app-chess/src/connection/collection.rs · 121 lines · 10 fnscollecti…crates/cre8-app-chess/src/connection/ending.rs · 247 lines · 20 fnsending.rscrates/cre8-app-chess/src/connection/matchmaker.rs · 807 lines · 49 fnsmatchmaker.rscrates/cre8-app-chess/src/connection/mod.rs · 624 lines · 16 fnsmod.rscrates/cre8-app-chess/src/connection/moves.rs · 5,030 lines · 237 fnsmoves.rscrates/cre8-app-chess/src/endings_tests.rs · 145 lines · 10 fnsendings_…crates/cre8-app-chess/src/fen_projection.rs · 51 lines · 4 fnscrates/cre8-app-chess/src/init.rs · 13 lines · 1 fnscrates/cre8-app-chess/src/lib.rs · 34 lines · 0 fnscrates/cre8-app-chess/src/matchmaking.rs · 95 lines · 7 fnscrates/cre8-app-chess/src/matchmaking_tests.rs · 179 lines · 13 fnsmatchmak…crates/cre8-app-chess/src/model.rs · 291 lines · 17 fnsmodel.rscrates/cre8-app-chess/src/release_gate_tests.rs · 290 lines · 20 fnsrelease_gate_…crates/cre8-app-chess/src/rules.rs · 503 lines · 50 fnsrules.rscrates/cre8-app-chess/src/session_lock.rs · 95 lines · 9 fnscrates/cre8-app-chess/src/session_reuse_tests.rs · 129 lines · 6 fnscrates/cre8-app-chess/src/solver.rs · 897 lines · 40 fnssolver.rscrates/cre8-app-chess/src/solver_tests.rs · 488 lines · 31 fnssolver_tests.rscrates/cre8-app-chess/src/special_moves_tests.rs · 303 lines · 16 fnsspecial_moves_…crates/cre8-app-chess/src/store.rs · 1,854 lines · 84 fnsstore.rscrates/cre8-app-chess/src/verified_caller_tests.rs · 233 lines · 10 fnsverified_cal…crates/cre8-app-chess/src/view/board.rs · 151 lines · 7 fnsboard.rscrates/cre8-app-chess/src/view/chess_collection.js · 159 lines · 18 fnschess_co…crates/cre8-app-chess/src/view/chess_lobby.js · 129 lines · 7 fnschess_lo…crates/cre8-app-chess/src/view/chess_match.js · 914 lines · 81 fnschess_match.jscrates/cre8-app-chess/src/view/chess_piece.js · 85 lines · 5 fnschess_…crates/cre8-app-chess/src/view/collection_page.rs · 643 lines · 32 fnscollection_page.rscrates/cre8-app-chess/src/view/lobby.rs · 349 lines · 12 fnslobby.rscrates/cre8-app-chess/src/view/match_page.rs · 1,045 lines · 50 fnsmatch_page.rscrates/cre8-app-chess/src/view/mod.rs · 103 lines · 5 fnsmod.rscrates/cre8-app-chess/src/view/model.rs · 424 lines · 38 fnsmodel.rscrates/cre8-app-chess/src/view/pieces.rs · 168 lines · 13 fnspieces.rs

File call graph

Resolved calls between this crate's files, callers left of callees.

2 calls1 calls2 calls1 calls4 calls5 calls5 calls1 calls4 calls1 calls2 calls6 calls5 calls3 calls2 calls2 calls1 calls8 calls11 calls9 calls3 calls2 calls2 calls6 calls1 calls2 calls3 calls3 calls5 calls4 calls1 calls43 calls2 calls6 calls1 calls1 calls6 calls1 calls6 calls5 calls1 calls23 calls15 calls2 calls1 calls19 calls2 calls1 calls2 calls59 calls4 calls1 calls17 calls6 calls2 calls1 calls6 calls1 calls1 calls2 calls1 calls1 calls9 calls4 calls2 calls1 calls1 calls18 calls1 calls11 calls7 calls13 calls4 calls1 calls7 calls2 calls3 calls4 calls1 calls1 calls10 calls2 calls15 calls3 calls19 calls36 calls4 calls6 calls11 calls7 calls15 calls9 calls2 calls4 calls7 calls2 calls2 calls3 calls7 calls13 calls1 calls2 calls5 calls2 calls1 calls3 calls4 calls4 calls11 calls1 calls1 calls5 calls1 calls1 calls3 calls2 calls5 calls1 calls1 calls3 calls1 calls1 calls1 calls9 calls1 calls3 calls8 calls31 calls7 calls3 calls1 calls12 calls6 calls3 calls2 callsmoves.rsconnection::movescrates/cre8-app-chess/src/connection/moves.rs · 233 call sites in/outstore.rsstorecrates/cre8-app-chess/src/store.rs · 135 call sites in/outmod.rsconnectioncrates/cre8-app-chess/src/connection/mod.rs · 113 call sites in/outmodel.rsview::modelcrates/cre8-app-chess/src/view/model.rs · 102 call sites in/outrules.rsrulescrates/cre8-app-chess/src/rules.rs · 91 call sites in/outmatch_page.rsview::match_pagecrates/cre8-app-chess/src/view/match_page.rs · 91 call sites in/outspecial_moves_tests.rsspecial_moves_testscrates/cre8-app-chess/src/special_moves_tests.rs · 87 call sites in/outmatchmaker.rsconnection::matchmakercrates/cre8-app-chess/src/connection/matchmaker.rs · 84 call sites in/outsolver_tests.rssolver_testscrates/cre8-app-chess/src/solver_tests.rs · 83 call sites in/outcollection.rscollectioncrates/cre8-app-chess/src/collection.rs · 55 call sites in/outsolver.rssolvercrates/cre8-app-chess/src/solver.rs · 50 call sites in/outrelease_gate_tests.rsrelease_gate_testscrates/cre8-app-chess/src/release_gate_tests.rs · 36 call sites in/outmatchmaking_tests.rsmatchmaking_testscrates/cre8-app-chess/src/matchmaking_tests.rs · 35 call sites in/outcollection_page.rsview::collection_pagecrates/cre8-app-chess/src/view/collection_page.rs · 32 call sites in/outcollection_tests.rscollection_testscrates/cre8-app-chess/src/collection_tests.rs · 28 call sites in/outendings_tests.rsendings_testscrates/cre8-app-chess/src/endings_tests.rs · 27 call sites in/outending.rsconnection::endingcrates/cre8-app-chess/src/connection/ending.rs · 26 call sites in/outpieces.rsview::piecescrates/cre8-app-chess/src/view/pieces.rs · 26 call sites in/outverified_caller_tests.rsverified_caller_testscrates/cre8-app-chess/src/verified_caller_tests.rs · 23 call sites in/outlobby.rsview::lobbycrates/cre8-app-chess/src/view/lobby.rs · 20 call sites in/outmod.rsviewcrates/cre8-app-chess/src/view/mod.rs · 16 call sites in/outfen_projection.rsfen_projectioncrates/cre8-app-chess/src/fen_projection.rs · 14 call sites in/outmatchmaking.rsmatchmakingcrates/cre8-app-chess/src/matchmaking.rs · 14 call sites in/outledger.rscollection::ledgercrates/cre8-app-chess/src/collection/ledger.rs · 13 call sites in/outledger_tests.rscollection::ledger_testscrates/cre8-app-chess/src/collection/ledger_tests.rs · 13 call sites in/outclock.rsclockcrates/cre8-app-chess/src/clock.rs · 11 call sites in/outapp.rsappcrates/cre8-app-chess/src/app.rs · 10 call sites in/outsession_reuse_tests.rssession_reuse_testscrates/cre8-app-chess/src/session_reuse_tests.rs · 10 call sites in/outcollection.rsconnection::collectioncrates/cre8-app-chess/src/connection/collection.rs · 8 call sites in/outsession_lock.rssession_lockcrates/cre8-app-chess/src/session_lock.rs · 7 call sites in/outrun.rsbin::chess_multiplayer_demo::runcrates/cre8-app-chess/src/bin/chess_multiplayer_demo/run.rs · 6 call sites in/outrun.rsbin::chess_moon_bite::runcrates/cre8-app-chess/src/bin/chess_moon_bite/run.rs · 5 call sites in/outboard.rsview::boardcrates/cre8-app-chess/src/view/board.rs · 5 call sites in/outinit.rsinitcrates/cre8-app-chess/src/init.rs · 3 call sites in/outmodel.rsmodelcrates/cre8-app-chess/src/model.rs · 3 call sites in/outchess_match.jssrc::view::chess_matchcrates/cre8-app-chess/src/view/chess_match.js · 3 call sites in/out

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 1,081 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
connectsrc/connection/mod.rs:323fn471045921.5
canonical_tokensrc/connection/moves.rs:5328fn7320016.3
is_house_solversrc/view/model.rs:53fn31306.6
ensure_tablessrc/store.rs:232fn311515.9
holdssrc/view/chess_match.js:38fn45915.9
Game::piece_onsrc/special_moves_tests.rs:83method411515.7
ensure_tables_storagesrc/store.rs:236fn31115.5
actorIsMesrc/view/chess_match.js:37fn13105.5
Game::statesrc/special_moves_tests.rs:73method31115.3
Seat::is_solversrc/view/model.rs:30method331115.3
parse_fensrc/rules.rs:174fn135704.7
verified_callersrc/connection/moves.rs:5016fn31514.3
list_pieces_by_sessionsrc/store.rs:363fn312114.2
list_pieces_by_session_storagesrc/store.rs:367fn344154.1
outcome_insrc/rules.rs:225fn2212944.1
choose_move_atsrc/solver.rs:95fn284783.5
color_namesrc/rules.rs:322fn62303.5
view_patchsrc/view/match_page.rs:1005fn275563.5
serial_of_assetsrc/collection.rs:243fn31503.3
find_legal_movesrc/rules.rs:200fn1051423.2
Game::play_onesrc/special_moves_tests.rs:59method1311113.2
bind_verified_seatssrc/connection/moves.rs:5042fn4773113.2
bind_verified_actorsrc/connection/moves.rs:5024fn91513.2
fen_from_projectionsrc/fen_projection.rs:11fn92753.2
role_lettersrc/view/pieces.rs:112fn106303.1
operator_or_devnetsrc/connection/moves.rs:145fn42533.1
describesrc/rules.rs:359fn254153.1
Outcome::is_oversrc/rules.rs:127method311103.1
legal_movessrc/rules.rs:189fn81613.1
normalize_squaresrc/connection/moves.rs:5348fn134303
next_turnsrc/store.rs:517fn42503
heldsrc/session_lock.rs:23fn41203
first_stringsrc/connection/moves.rs:5294fn92403
Game::configuredsrc/special_moves_tests.rs:27method211632.9
squaressrc/view/chess_match.js:139fn31602.9
hex_coloursrc/collection.rs:201fn52202.8
get_match_by_sessionsrc/store.rs:825fn311722.7
initial_state_hashsrc/store.rs:477fn391822.7
resolve_room_idsrc/connection/matchmaker.rs:838fn811202.7
insufficient_materialsrc/rules.rs:293fn125302.6

Outside the workspace

anyhow cozy-chess hyperdb serde serde_json