#path #tilde #expand #light-weight #performance

simple-expand-tilde

Cross-platform and reliable tilde-expansion solution

12 releases

0.4.5 Dec 2, 2024
0.4.4 Nov 5, 2024
0.4.3 Oct 3, 2024
0.4.0 Jul 20, 2024
0.1.4 Jan 21, 2024

#425 in Filesystem

Download history 269/week @ 2024-08-23 261/week @ 2024-08-30 787/week @ 2024-09-06 282/week @ 2024-09-13 351/week @ 2024-09-20 330/week @ 2024-09-27 403/week @ 2024-10-04 262/week @ 2024-10-11 272/week @ 2024-10-18 237/week @ 2024-10-25 414/week @ 2024-11-01 276/week @ 2024-11-08 303/week @ 2024-11-15 231/week @ 2024-11-22 343/week @ 2024-11-29 115/week @ 2024-12-06

1,035 downloads per month

MIT license

3KB

simple-expand-tilde

Crate

A minimal, fast, and reliable tilde expansion solution.

Usage

use simple_expand_tilde::*;

fn main() {
    // Windows  =>  C:\Users\jdoe\.rustup
    // Linux    =>  /home/jdoe/.rustup
    // Mac      =>  /Users/jdoe/.rustup
    let path = expand_tilde("~/.rustup").unwrap();
}

Dependencies

~0–6.5MB
~34K SLoC