4个版本

0.1.3 2020年4月26日
0.1.2 2018年10月3日
0.1.1 2018年10月3日
0.1.0 2018年10月3日

#1491Web编程

Download history 322/week @ 2024-04-01 434/week @ 2024-04-08 193/week @ 2024-04-15 213/week @ 2024-04-22 522/week @ 2024-04-29 486/week @ 2024-05-06 266/week @ 2024-05-13 285/week @ 2024-05-20 241/week @ 2024-05-27 227/week @ 2024-06-03 199/week @ 2024-06-10 213/week @ 2024-06-17 282/week @ 2024-06-24 200/week @ 2024-07-01 266/week @ 2024-07-08 272/week @ 2024-07-15

1,037 每月下载量
用于 7 个Crate (3 直接)

MIT 协议

10KB
229

url_path

url_path 无需文件在服务器或OS中存在即可操作URL路径。这在操作位置URL时很有用。示例用法

use url_path::UrlPath;

fn main(){
    let url_path1 = UrlPath::new("src/md/./../../README.md");
    let normalized_path1 = url_path1.normalize();
    assert_eq!("README.md", normalized_path1);

    let url_path2 = UrlPath::new("./README.md");
    let normalized_path2 = url_path2.normalize();
    assert_eq!("README.md", normalized_path2);
}

许可证:MIT


lib.rs:

url_path 无需文件在服务器或OS中存在即可操作URL路径。这在操作位置URL时很有用。示例用法

use url_path::UrlPath;

fn main(){
    let url_path1 = UrlPath::new("src/md/./../../README.md");
    let normalized_path1 = url_path1.normalize();
    assert_eq!("README.md", normalized_path1);

    let url_path2 = UrlPath::new("./README.md");
    let normalized_path2 = url_path2.normalize();
    assert_eq!("README.md", normalized_path2);
}

无运行时依赖