Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Noratrieb/cargo-minimize
/ functions
Functions
151 in github.com/Noratrieb/cargo-minimize
⨍
Functions
151
◇
Types & classes
45
↓ 25 callers
Method
push
(&mut self, next: Vec<AstPath>)
src/processor/checker.rs:77
↓ 17 callers
Method
pop
(&mut self)
src/processor/checker.rs:83
↓ 8 callers
Method
can_process
Checks whether a pass may apply the changes for a minimization site.
src/processor/checker.rs:216
↓ 6 callers
Method
cmd
(&self, name: impl AsRef<OsStr>)
src/build.rs:130
↓ 5 callers
Method
boxed
(self)
src/processor/mod.rs:32
↓ 5 callers
Function
read_script_output
(stdout: &'a str, stderr: &'a str)
src/build.rs:421
↓ 5 callers
Function
rustup_which
(tool: &str)
src/build.rs:346
↓ 5 callers
Method
visit_file_mut
(&mut self, file: &mut syn::File)
src/passes/split_use.rs:150
↓ 4 callers
Method
build
(&self)
src/build.rs:138
↓ 3 callers
Method
before_content
(&self)
src/processor/files.rs:105
↓ 3 callers
Method
path_no_fs_interact
(&self)
src/processor/files.rs:47
↓ 3 callers
Method
reproduces_issue
(&self)
src/build.rs:381
↓ 3 callers
Method
run_passes
( &self, passes: impl IntoIterator<Item = Box<dyn Pass + 'a>>, )
src/processor/mod.rs:151
↓ 3 callers
Method
should_retain_item
(&mut self)
src/passes/item_deleter.rs:24
↓ 3 callers
Method
should_retain_item
(&mut self, span: Span)
src/processor/reaper.rs:216
↓ 3 callers
Method
write
(&self, new: syn::File)
src/processor/files.rs:38
↓ 2 callers
Method
borrow
(&self)
src/processor/checker.rs:19
↓ 2 callers
Function
build
(cargo: &Path, path: &Path, regression_checker_path: &Path)
testsuite/src/lib.rs:152
↓ 2 callers
Function
clean_items_general
(items: &mut Vec<Item>)
src/expand.rs:231
↓ 2 callers
Method
commit
(mut self)
src/processor/files.rs:122
↓ 2 callers
Method
consider_deleting_field
(&mut self, name: String)
src/passes/field_deleter.rs:21
↓ 2 callers
Method
consider_deleting_item
(&mut self, item: &Item)
src/passes/item_deleter.rs:32
↓ 2 callers
Method
crates
Adds all dependencies to `set` and returns itself
src/expand.rs:116
↓ 2 callers
Function
ensure_roots_kept
This is called by the regression_checked binary during minimization and by the test runner at the end.
testsuite/src/lib.rs:18
↓ 2 callers
Function
extra_cargoflags
(cargo: &mut Command)
src/build.rs:342
↓ 2 callers
Function
format
(file: syn::File)
src/formatting.rs:5
↓ 2 callers
Method
get_diags
(&self)
src/build.rs:241
↓ 2 callers
Function
get_roots
(path: &Path)
testsuite/src/lib.rs:201
↓ 2 callers
Function
grep
(path: &Path, regex: &Regex)
testsuite/src/lib.rs:213
↓ 2 callers
Method
has_prefix
(&self, other: &AstPath)
src/processor/checker.rs:10
↓ 2 callers
Method
name
(&self)
src/processor/reaper.rs:137
↓ 2 callers
Method
next_in_worklist
(&mut self)
src/processor/checker.rs:230
↓ 2 callers
Method
pass_enabled
(&self, name: &str)
src/processor/mod.rs:89
↓ 2 callers
Method
require_reproduction
(&self, build: &str)
src/build.rs:371
↓ 2 callers
Method
rollback
(mut self)
src/processor/files.rs:115
↓ 2 callers
Function
split_args
(s: &str)
src/build.rs:411
↓ 2 callers
Method
try_change
( &'file self, changes: &'change mut Changes, )
src/processor/files.rs:73
↓ 2 callers
Method
visit_item_list
(&mut self, items: &mut Vec<syn::Item>)
src/passes/split_use.rs:73
↓ 1 callers
Method
apply_unused_imports
( &mut self, suggestions: &HashMap<&Path, Vec<&Suggestion>>, )
src/processor/reaper.rs:56
↓ 1 callers
Method
call
(&self, output: &str, code: Option<i32>)
src/dylib_flag.rs:127
↓ 1 callers
Function
cargo_expand
(cargo_dir: &TargetSourcePath)
src/expand.rs:17
↓ 1 callers
Function
clean_dep_mod
(module: &mut ItemMod)
src/expand.rs:199
↓ 1 callers
Function
clean_final_code
(file: &mut File)
src/expand.rs:213
↓ 1 callers
Method
delete_dead_code
(&mut self)
src/processor/reaper.rs:20
↓ 1 callers
Method
dep_crates
(&self, unit: &Unit, set: &mut BTreeSet<Crate>)
src/expand.rs:108
↓ 1 callers
Function
div_ceil
copied from `core` because who needs stable features anyways update: still not stabilized because of bikeshedding for div_floor.
src/processor/checker.rs:251
↓ 1 callers
Method
does_not_reproduce
The changes did not reproduce the regression. Bisect further.
src/processor/checker.rs:134
↓ 1 callers
Method
expand
(&self)
src/expand.rs:146
↓ 1 callers
Method
expand_crate
(&self, krate: Crate, root: &mut syn::File)
src/expand.rs:159
↓ 1 callers
Method
expand_use_groups
given a "some::group::{a, b::{c,d}, e}" tree, and assuming checker allows processing of (only) "some::group", returns a ["some::group::a", "some::grou
src/passes/split_use.rs:25
↓ 1 callers
Function
file_for_suggestion
(suggestion: &Suggestion)
src/processor/reaper.rs:13
↓ 1 callers
Function
full_tests
()
testsuite/src/lib.rs:48
↓ 1 callers
Function
get_required_deleted
(path: &Path)
testsuite/src/lib.rs:207
↓ 1 callers
Method
had_changes
(&self)
src/processor/files.rs:141
↓ 1 callers
Function
init_recommended_tracing_subscriber
(default_level: Level)
src/lib.rs:163
↓ 1 callers
Method
is_finished
(&mut self)
src/processor/checker.rs:207
↓ 1 callers
Function
layer_candidates
Split up a list of AstPath's into several sets such that none of those sets have any of the AstPath's overlap. I.e. so that we avoid having both ["foo
src/processor/checker.rs:277
↓ 1 callers
Function
minimize
(options: Options, stop: Arc<AtomicBool>)
src/lib.rs:138
↓ 1 callers
Method
no_change
The pass did not apply any changes. We're either done or just starting
src/processor/checker.rs:173
↓ 1 callers
Method
process_file
( &self, pass: &mut dyn Pass, file: &'file SourceFile, invalidated_files: &mut
src/processor/mod.rs:203
↓ 1 callers
Method
prune
remove all the worklist items that would have been covered by the given ones. I.e. if we have already deleted the entire module, there's no need tryin
src/processor/checker.rs:91
↓ 1 callers
Method
refresh_state
(&mut self)
src/processor/mod.rs:16
↓ 1 callers
Method
reproduces
(&mut self)
src/processor/checker.rs:113
↓ 1 callers
Function
run_build
(cargo: &Path, command: &mut Command)
testsuite/src/lib.rs:36
↓ 1 callers
Method
run_pass
(&self, pass: &mut dyn Pass)
src/processor/mod.rs:169
↓ 1 callers
Function
setup_dir
(cargo: &Path, path: &Path)
testsuite/src/lib.rs:119
↓ 1 callers
Method
span_matches
(&self, ident_span: Span)
src/processor/reaper.rs:149
↓ 1 callers
Function
split_owned
Splits an owned container in half.
src/processor/checker.rs:258
↓ 1 callers
Function
thingy
()
full-tests/reexports.rs:4
↓ 1 callers
Function
trim_trailing_self
It is legal to write "use module::{self};", but not "use module::self;". If we do end up with the latter on our hands, convert it to "use module;" ins
src/passes/split_use.rs:105
↓ 1 callers
Function
user
~REQUIRE-DELETED user-fn
full-tests/to-empty-main.rs:4
↓ 1 callers
Method
visit_file_mut
(&mut self, file: &mut syn::File)
src/passes/item_deleter.rs:93
↓ 1 callers
Method
visit_file_mut
(&mut self, krate: &mut syn::File)
src/processor/reaper.rs:265
↓ 1 callers
Function
wrap_func_body
(func: &str)
src/dylib_flag.rs:33
Function
bad
~REQUIRE-DELETED bad
full-tests/nested-items.rs:5
Function
bar
()
full-tests/nested-items2.rs:9
Function
basic_contains_work
()
src/dylib_flag.rs:157
Method
cmp
(&self, other: &Self)
src/expand.rs:91
Method
compile
(body: &str)
src/dylib_flag.rs:88
Method
default
()
src/lib.rs:179
Method
drop
(&mut self)
src/processor/files.rs:130
Method
eq
(&self, other: &Self)
src/expand.rs:77
Method
eq
(&self, other: &Self)
src/processor/files.rs:53
Function
expand
Expands the crate in `cargo_dir` into a single file without dependencies
src/expand.rs:180
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/build.rs:27
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/expand.rs:68
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/dylib_flag.rs:147
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/processor/checker.rs:25
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/processor/files.rs:67
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/processor/mod.rs:41
Function
foo
()
full-tests/nested-items2.rs:8
Method
from_str
(s: &str)
src/lib.rs:124
Method
from_str
(s: &str)
src/dylib_flag.rs:27
Method
from_str
(s: &str)
src/processor/mod.rs:60
Function
full_tests
()
tests/full_tests.rs:5
Function
good
~MINIMIZE-ROOT good
full-tests/nested-items.rs:3
Method
grab_cargo_diags
(output: &str)
src/build.rs:251
Method
grab_rustc_diags
(output: &str)
src/build.rs:242
Method
hash
(&self, state: &mut H)
src/processor/files.rs:59
Function
main
()
full-tests/reexports2.rs:12
next →
1–100 of 151, ranked by callers