1 viewer
rust 1,847,280 · typescript 232,434 · javascript 131,101 · python 19,227 · 6,362 files · digest 755e2ee30522 · built in 2.3 s · crystals off
cre8-platform-env crates cargo crate
Platform-safe environment variable access. Native: reads std::env. Wasm: returns defaults. Fifth crate in the cre8-platform-* tier — bool/u64/usize/Duration/URL/path parsers, secret_present, var_string_list. Pure std.
1workspace deps
83direct dependents
275transitive dependents
0calls out
536calls in
1144call-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.
Files
lowhigh
Heaviest functions
By call-graph weight (PageRank; 1.0 is the average function). 45 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| var_optsrc/lib.rs:21 | fn | 6 | 2 | 284 | 2 | 357 | |
| process_var_optsrc/lib.rs:30 | fn | 4 | 1 | 3 | 1 | 153 | |
| runtime_overridesrc/lib.rs:58 | fn | 3 | 1 | 2 | 1 | 152 | |
| runtime_overrides_storesrc/lib.rs:39 | fn | 4 | 1 | 3 | 0 | 131 | |
| env_value_from_responsesrc/lib.rs:72 | fn | 7 | 2 | 2 | 0 | 131 | |
| var_resultsrc/lib.rs:81 | fn | 4 | 1 | 124 | 1 | 94.6 | |
| var_boolsrc/lib.rs:113 | fn | 3 | 1 | 34 | 2 | 21.2 | |
| var_string_listsrc/lib.rs:186 | fn | 5 | 1 | 4 | 1 | 13.4 | |
| parse_boolsrc/lib.rs:104 | fn | 7 | 3 | 6 | 0 | 12.1 | |
| var_u64src/lib.rs:92 | fn | 3 | 1 | 24 | 1 | 11.9 | |
| varsrc/lib.rs:14 | fn | 3 | 1 | 24 | 1 | 11.7 | |
| var_ossrc/lib.rs:87 | fn | 3 | 1 | 12 | 1 | 11.2 | |
| var_u64_in_rangesrc/lib.rs:99 | fn | 3 | 1 | 12 | 1 | 5.2 | |
| parse_positive_usize_boundedsrc/lib.rs:144 | fn | 3 | 1 | 5 | 1 | 4.2 | |
| parse_positive_usizesrc/lib.rs:139 | fn | 3 | 1 | 1 | 0 | 4.1 | |
| var_path_optsrc/lib.rs:198 | fn | 3 | 1 | 9 | 1 | 3.5 | |
| current_dirsrc/lib.rs:220 | fn | 10 | 1 | 7 | 0 | 2.9 | |
| parse_positive_u64src/lib.rs:123 | fn | 3 | 1 | 4 | 0 | 2.3 | |
| temp_dirsrc/lib.rs:208 | fn | 10 | 1 | 13 | 0 | 2.2 | |
| var_bool_optsrc/lib.rs:118 | fn | 3 | 1 | 3 | 2 | 1.5 | |
| var_positive_usize_boundedsrc/lib.rs:149 | fn | 4 | 1 | 4 | 2 | 1.5 | |
| looks_like_urlsrc/lib.rs:175 | fn | 9 | 4 | 2 | 0 | 1.2 | |
| var_url_optsrc/lib.rs:166 | fn | 3 | 1 | 2 | 2 | 1.2 | |
| parse_positive_u64_boundedsrc/lib.rs:128 | fn | 3 | 1 | 2 | 1 | 1.1 | |
| set_runtime_overridesrc/lib.rs:45 | fn | 11 | 2 | 3 | 1 | 0.9 | |
| secret_presentsrc/lib.rs:193 | fn | 3 | 1 | 2 | 1 | 0.8 | |
| var_urlsrc/lib.rs:171 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| unique_keysrc/lib.rs:235 | fn | 7 | 1 | 3 | 0 | 0.7 | |
| set_test_envsrc/lib.rs:243 | fn | 5 | 1 | 3 | 0 | 0.7 | |
| remove_test_envsrc/lib.rs:249 | fn | 5 | 1 | 3 | 0 | 0.7 | |
| var_duration_mssrc/lib.rs:155 | fn | 4 | 1 | 2 | 2 | 0.7 | |
| var_duration_secssrc/lib.rs:161 | fn | 3 | 1 | 2 | 2 | 0.7 | |
| runtime_overridessrc/lib.rs:63 | fn | 8 | 1 | 1 | 1 | 0.6 | |
| var_positive_u64_boundedsrc/lib.rs:133 | fn | 4 | 1 | 1 | 2 | 0.5 | |
| var_pathsrc/lib.rs:203 | fn | 3 | 1 | 1 | 1 | 0.5 | |
| bool_parser_accepts_common_spellingssrc/lib.rs:256 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| positive_u64_parser_defaults_and_capssrc/lib.rs:269 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| positive_usize_parser_defaults_and_capssrc/lib.rs:279 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| u64_in_range_rejects_out_of_range_values_instead_of_clampingsrc/lib.rs:289 | fn | 10 | 2 | 0 | 4 | 0.5 | |
| url_parser_requires_scheme_and_hostish_tailsrc/lib.rs:301 | fn | 9 | 1 | 0 | 2 | 0.5 |
Outside the workspace
serde_json