Home / Function/ expand_tilde() — tailwindcss Function Reference

expand_tilde() — tailwindcss Function Reference

Architecture documentation for the expand_tilde() function in gitignore.rs from the tailwindcss codebase.

Function rust Oxide Scanner calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  f6334d14_f3df_cc9d_c27d_3ee0c401ba43["expand_tilde()"]
  61377720_4557_3c63_7653_b6ed73e2face["gitignore.rs"]
  f6334d14_f3df_cc9d_c27d_3ee0c401ba43 -->|defined in| 61377720_4557_3c63_7653_b6ed73e2face
  cd8e1cd4_0aec_282f_80ee_e6723b060057["parse_excludes_file()"]
  cd8e1cd4_0aec_282f_80ee_e6723b060057 -->|calls| f6334d14_f3df_cc9d_c27d_3ee0c401ba43
  71fed620_0675_67a7_1047_b2f365f00904["parse_excludes_file2()"]
  71fed620_0675_67a7_1047_b2f365f00904 -->|calls| f6334d14_f3df_cc9d_c27d_3ee0c401ba43
  50083cc8_1e1b_c2b2_0b0a_3f75f91e0a88["parse_excludes_file4()"]
  50083cc8_1e1b_c2b2_0b0a_3f75f91e0a88 -->|calls| f6334d14_f3df_cc9d_c27d_3ee0c401ba43
  65945635_593e_254f_3619_dc8746a10a79["home_dir()"]
  f6334d14_f3df_cc9d_c27d_3ee0c401ba43 -->|calls| 65945635_593e_254f_3619_dc8746a10a79
  style f6334d14_f3df_cc9d_c27d_3ee0c401ba43 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 676–682

fn expand_tilde(path: &str) -> String {
    let home = match home_dir() {
        None => return path.to_string(),
        Some(home) => home.to_string_lossy().into_owned(),
    };
    path.replace("~", &home)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does expand_tilde() do?
expand_tilde() is a function in the tailwindcss codebase, defined in crates/ignore/src/gitignore.rs.
Where is expand_tilde() defined?
expand_tilde() is defined in crates/ignore/src/gitignore.rs at line 676.
What does expand_tilde() call?
expand_tilde() calls 1 function(s): home_dir.
What calls expand_tilde()?
expand_tilde() is called by 3 function(s): parse_excludes_file, parse_excludes_file2, parse_excludes_file4.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free