MCPcopy Create free account

hub / github.com/Mic92/nix-diff-rs / functions

Functions88 in github.com/Mic92/nix-diff-rs

↓ 28 callersMethodwrite_indent
(&self, output: &mut Vec<u8>, indent: usize)
src/render.rs:579
↓ 9 callersFunctionparse_derivation
(path: &str)
src/parser.rs:10
↓ 8 callersMethodformat_string_diff
(&self, output: &mut Vec<u8>, diff: &StringDiff, indent: usize)
src/render.rs:241
↓ 7 callersMethodwrite_section
(&self, output: &mut Vec<u8>, title: &[u8], indent: usize)
src/render.rs:574
↓ 6 callersFunctionsetup_nix_env
()
tests/common.rs:3
↓ 5 callersMethoddiff_bytes
(&self, s1: &[u8], s2: &[u8])
src/diff.rs:420
↓ 5 callersFunctionempty_drv
()
src/render.rs:646
↓ 4 callersFunctionctx
()
src/diff.rs:468
↓ 4 callersFunctionextract_flake_fields
Safely extract `path` and `locked.narHash` from flake metadata JSON.
src/instantiate.rs:83
↓ 4 callersMethodformat_derivation_diff
( &self, diff: &DerivationDiff, indent: usize, depth: usize, )
src/render.rs:73
↓ 4 callersMethodformat_text_diff
Render a multi-line text diff with context trimming. When inline highlighting is enabled, changed words within changed lines are reverse-video'd (delt
src/render.rs:487
↓ 4 callersMethodgreen
(&self)
src/render.rs:588
↓ 4 callersMethodred
(&self)
src/render.rs:585
↓ 3 callersFunctionassert_diff_output
(output: &str)
tests/integration_test.rs:7
↓ 3 callersMethoddiff_derivations
( &mut self, path1: &[u8], path2: &[u8], drv1: &Derivation, drv2: &Der
src/diff.rs:16
↓ 3 callersMethoddiff_inputs
( &mut self, inputs1: &BTreeMap<Vec<u8>, BTreeSet<Vec<u8>>>, inputs2: &BTreeMap<Vec<u8
src/diff.rs:227
↓ 3 callersMethodformat_inputs_diff
( &self, output: &mut Vec<u8>, diff: &InputsDiff, indent: usize, depth
src/render.rs:368
↓ 3 callersFunctionnormalize_nix_output
Normalize store paths and hashes for consistent snapshots
tests/snapshot_test.rs:9
↓ 3 callersMethodwrite_path_list
Write a list of store paths, truncating to `input_list_limit` entries and summarizing the remainder. Large add/remove lists (e.g., after a stdenv bump
src/render.rs:538
↓ 2 callersFunctionconvert_derivation
( store_dir: &StoreDir, drv: harmonia_store_core::derivation::Derivation, )
src/parser.rs:63
↓ 2 callersMethoddiff_arguments
(&self, args1: &[Vec<u8>], args2: &[Vec<u8>])
src/diff.rs:113
↓ 2 callersMethoddiff_optional_bytes
( &self, s1: &Option<Vec<u8>>, s2: &Option<Vec<u8>>, )
src/diff.rs:431
↓ 2 callersMethoddiff_sources
( &self, sources1: &BTreeSet<Vec<u8>>, sources2: &BTreeSet<Vec<u8>>, )
src/diff.rs:139
↓ 2 callersFunctiondrv_with_output
(name: &[u8], path: &[u8])
src/render.rs:746
↓ 2 callersMethodget_name
Extract the derivation name from a store path e.g., "/nix/store/hash-name.drv" -> "name.drv"
src/types.rs:11
↓ 2 callersFunctionload_derivation
(input: &Path)
src/main.rs:131
↓ 2 callersFunctionprint_help
()
src/main.rs:112
↓ 2 callersFunctionrun_nix_diff
(file1: &str, file2: &str)
tests/snapshot_test.rs:18
↓ 2 callersFunctionrun_nix_instantiate
Common function to instantiate and process nix-instantiate output
src/instantiate.rs:114
↓ 2 callersFunctiontokenize_path
Split on path/version separators so store-path hashes and version components become individual diff tokens. `similar::from_words` splits only on white
src/render.rs:611
↓ 2 callersMethodwrite_inline_line
( &self, output: &mut Vec<u8>, indent: usize, color: &[u8], sign: &[u8
src/render.rs:282
↓ 1 callersMethodcmp
(&self, other: &Self)
src/types.rs:33
↓ 1 callersFunctionconvert_outputs
( store_dir: &StoreDir, drv: &harmonia_store_core::derivation::Derivation, )
src/parser.rs:110
↓ 1 callersMethoddiff_environment
( &self, env1: &BTreeMap<Vec<u8>, Vec<u8>>, env2: &BTreeMap<Vec<u8>, Vec<u8>>, )
src/diff.rs:391
↓ 1 callersMethoddiff_file_contents
(&self, content1: &[u8], content2: &[u8])
src/diff.rs:450
↓ 1 callersMethoddiff_outputs
( &self, outputs1: &BTreeMap<Vec<u8>, Output>, outputs2: &BTreeMap<Vec<u8>, Output>,
src/diff.rs:62
↓ 1 callersFunctionextract_drv_name
Extract the derivation name from a store path like `/nix/store/hash-name.drv`. Nix strips the `.drv` suffix to get the derivation name.
src/parser.rs:44
↓ 1 callersMethodformat_env_var_diff
(&self, output: &mut Vec<u8>, diff: &EnvVarDiff, indent: usize)
src/render.rs:461
↓ 1 callersMethodformat_output_diff
(&self, output: &mut Vec<u8>, diff: &OutputDiff, indent: usize)
src/render.rs:189
↓ 1 callersMethodformat_output_set_diff
(&self, output: &mut Vec<u8>, diff: &OutputSetDiff, indent: usize)
src/render.rs:449
↓ 1 callersMethodformat_sources_diff
(&self, output: &mut Vec<u8>, diff: &SourcesDiff, indent: usize)
src/render.rs:322
↓ 1 callersFunctiongenerate_nixos_derivations
()
benches/nixos_derivation.rs:7
↓ 1 callersFunctionget_derivation_path
(store_path: &str)
src/parser.rs:158
↓ 1 callersFunctioninstantiate_and_parse
Instantiate a .nix file, flake, or expression and parse the resulting .drv file
src/instantiate.rs:11
↓ 1 callersFunctioninstantiate_expression
Instantiate a Nix expression
src/instantiate.rs:100
↓ 1 callersFunctioninstantiate_file
Instantiate a Nix file
src/instantiate.rs:107
↓ 1 callersFunctioninstantiate_flake
Instantiate a flake reference
src/instantiate.rs:33
↓ 1 callersFunctionis_path_only_change
An output change that only touches the store path (not hash/algo) is a mechanical consequence of any other change and carries no information.
src/render.rs:631
↓ 1 callersFunctionparse_derivation_string
(input: &str)
src/parser.rs:23
↓ 1 callersMethodpush_changed_input
( &mut self, name: &[u8], path1: &[u8], path2: &[u8], outputs1: &BTree
src/diff.rs:344
↓ 1 callersMethodrender
Render the diff to stdout. Returns `true` if the derivations differ, `false` if identical.
src/render.rs:56
↓ 1 callersFunctionrun
()
src/main.rs:19
↓ 1 callersFunctionstore_dir_from_drv_path
Infer the store directory from a .drv path like `/nix/store/hash-name.drv` → `/nix/store`.
src/parser.rs:34
Functionalready_compared_input_is_labeled
()
src/render.rs:706
Functionbenchmark_nixos_diff
(c: &mut Criterion)
benches/nixos_derivation.rs:143
Methodbold
(&self)
src/render.rs:600
Methodcyan
(&self)
src/render.rs:594
Methoddefault
()
src/types.rs:200
Functiondiff_arguments_preserves_positional_index
()
src/diff.rs:539
Functiondiff_inputs_handles_duplicate_names
()
src/diff.rs:505
Functiondiff_sources_matches_by_name_and_diffs_contents
()
src/diff.rs:473
Methoddim
(&self)
src/render.rs:597
Functionflake_metadata_happy_path
()
src/instantiate.rs:182
Functionflake_metadata_missing_locked_returns_error
()
src/instantiate.rs:163
Functionflake_metadata_missing_path_returns_error
()
src/instantiate.rs:175
Functionformat_text_diff_limits_context
()
src/render.rs:884
Methodget_derivation_name
Extract derivation name from a path like /nix/store/hash-name.drv -> name.drv
src/diff.rs:233
Methodget_source_name
Extract name from a store path: /nix/store/hash-name -> name
src/diff.rs:145
Functionhides_output_path_noise_by_default
()
src/render.rs:763
Functioninline_highlight_disabled_without_color
()
src/render.rs:944
Functioninline_highlight_marks_changed_words
()
src/render.rs:911
Functioninput_diff_shows_both_outputs_and_derivation
()
src/render.rs:659
Functionmain
()
src/main.rs:7
Methodnew
(opts: RenderOptions)
src/render.rs:33
Methodnew
()
src/diff.rs:12
Methodpartial_cmp
(&self, other: &Self)
src/types.rs:27
Methodreset
(&self)
src/render.rs:603
Functionshows_fod_hash_changes
()
src/render.rs:837
Functiontest_basic_derivation_diff
()
tests/integration_test.rs:17
Functiontest_flake_diff
()
tests/integration_test.rs:83
Functiontest_hello_diff_snapshot
()
tests/snapshot_test.rs:68
Functiontest_hello_diff_with_context
()
tests/snapshot_test.rs:80
Functiontest_identical_derivations
()
tests/snapshot_test.rs:74
Functiontest_inline_highlight_snapshot
()
tests/snapshot_test.rs:126
Functiontest_nix_file_diff
()
tests/integration_test.rs:56
Functiontest_parse_simple_derivation
()
src/parser.rs:200
Functiontruncates_large_input_lists
()
src/render.rs:865
Methodyellow
(&self)
src/render.rs:591