1 viewer
rust 1,859,748 · typescript 235,215 · javascript 132,932 · python 20,426 · 6,405 files · digest 3ddca2872e6e · built in 1.4 s · crystals off
crates/cre8-app-compute/src/crates_provider.rs
Items
struct CratesIoProvider impl CratesIoProvider impl RegistryProvider for CratesIoProvider impl PackageProvider for CratesIoProvider struct CratePackageContent
Functions
By call-graph weight (PageRank; 1.0 is the average function). 36 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| parse_crates_specifiersrc/crates_provider.rs:165 | fn | 3 | 1 | 12 | 1 | 5.2 | |
| CratesIoProvider::newsrc/crates_provider.rs:33 | method | 3 | 1 | 6 | 0 | 3 | |
| extract_rust_packagesrc/crates_provider.rs:236 | fn | 64 | 17 | 3 | 5 | 2.8 | |
| extract_rust_sourcesrc/crates_provider.rs:301 | fn | 3 | 1 | 4 | 1 | 2.2 | |
| parse_cargo_toml_dependenciessrc/crates_provider.rs:180 | fn | 54 | 15 | 2 | 0 | 1.4 | |
| is_crate_lib_entrysrc/crates_provider.rs:307 | fn | 3 | 2 | 1 | 0 | 1 | |
| is_crate_main_entrysrc/crates_provider.rs:311 | fn | 3 | 2 | 1 | 0 | 1 | |
| read_limited_crate_entrysrc/crates_provider.rs:315 | fn | 6 | 2 | 1 | 3 | 1 | |
| CratesIoProvider::with_registrysrc/crates_provider.rs:38 | method | 3 | 1 | 1 | 0 | 0.9 | |
| CratesIoProvider::registry_urlsrc/crates_provider.rs:44 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| CratesIoProvider::namesrc/crates_provider.rs:50 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| CratesIoProvider::resolvesrc/crates_provider.rs:54 | trait impl | 92 | 4 | 0 | 8 | 0.5 | |
| CratesIoProvider::listsrc/crates_provider.rs:147 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_crate_prefixsrc/crates_provider.rs:329 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_crate_with_versionsrc/crates_provider.rs:336 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_crates_prefixsrc/crates_provider.rs:343 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_crates_with_versionsrc/crates_provider.rs:350 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_rs_prefixsrc/crates_provider.rs:357 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_rs_with_versionsrc/crates_provider.rs:364 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_cargo_prefixsrc/crates_provider.rs:371 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_cargo_with_versionsrc/crates_provider.rs:378 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_bare_namesrc/crates_provider.rs:385 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_bare_with_versionsrc/crates_provider.rs:392 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_crates_specifier_emptysrc/crates_provider.rs:399 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_crates_provider_namesrc/crates_provider.rs:408 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_crates_resolve_empty_specifiersrc/crates_provider.rs:416 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_crates_resolve_unknownsrc/crates_provider.rs:424 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_crates_provider_list_empty_cachesrc/crates_provider.rs:433 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_crates_provider_custom_registrysrc/crates_provider.rs:440 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_extract_rust_source_lib_rssrc/crates_provider.rs:448 | fn | 25 | 1 | 0 | 1 | 0.5 | |
| test_extract_rust_source_main_rs_fallbacksrc/crates_provider.rs:475 | fn | 24 | 1 | 0 | 1 | 0.5 | |
| test_extract_rust_source_prefers_lib_over_mainsrc/crates_provider.rs:501 | fn | 33 | 1 | 0 | 1 | 0.5 | |
| test_extract_rust_source_not_foundsrc/crates_provider.rs:536 | fn | 16 | 1 | 0 | 1 | 0.5 | |
| test_parse_cargo_toml_dependenciessrc/crates_provider.rs:554 | fn | 18 | 1 | 0 | 1 | 0.5 | |
| test_extract_rust_packagesrc/crates_provider.rs:574 | fn | 31 | 1 | 0 | 1 | 0.5 | |
| test_crates_resolve_real_packagesrc/crates_provider.rs:613 | fn | 14 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.