{"id":18387504,"url":"https://github.com/j5ik2o/uri-rs","last_synced_at":"2025-04-12T02:15:23.822Z","repository":{"id":40445966,"uuid":"396813474","full_name":"j5ik2o/uri-rs","owner":"j5ik2o","description":"A Rust crate for URI.","archived":false,"fork":false,"pushed_at":"2023-12-15T11:44:16.000Z","size":40,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T02:15:17.801Z","etag":null,"topics":["parser","rust","uri"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j5ik2o.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-16T13:44:24.000Z","updated_at":"2023-07-25T14:48:44.000Z","dependencies_parsed_at":"2024-11-06T01:52:37.519Z","dependency_job_id":"3324487a-0f53-4fa1-b8c3-699507f883bb","html_url":"https://github.com/j5ik2o/uri-rs","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"2306e93d8d2d6cd67dc69cbf2a1ac00e06ac043b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j5ik2o%2Furi-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j5ik2o%2Furi-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j5ik2o%2Furi-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j5ik2o%2Furi-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j5ik2o","download_url":"https://codeload.github.com/j5ik2o/uri-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505925,"owners_count":21115354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","rust","uri"],"created_at":"2024-11-06T01:26:32.038Z","updated_at":"2025-04-12T02:15:23.781Z","avatar_url":"https://github.com/j5ik2o.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uri-rs\n\nA Rust crate for URI.\n\n[![Workflow Status](https://github.com/j5ik2o/uri-rs/workflows/Rust/badge.svg)](https://github.com/j5ik2o/uri-rs/actions?query=workflow%3A%22Rust%22)\n[![crates.io](https://img.shields.io/crates/v/uri-rs.svg)](https://crates.io/crates/uri-rs)\n[![docs.rs](https://docs.rs/uri-rs/badge.svg)](https://docs.rs/uri-rs)\n[![dependency status](https://deps.rs/repo/github/j5ik2o/uri-rs/status.svg)](https://deps.rs/repo/github/j5ik2o/uri-rs)\n[![tokei](https://tokei.rs/b1/github/j5ik2o/uri-rs)](https://github.com/XAMPPRocky/tokei)\n\n## Install to Cargo.toml\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nuri-rs = \"\u003c\u003cversion\u003e\u003e\"\n```\n\n## Usage\n\n```rust\nuse uri_rs::Uri;\nlet s = \"http://user1:pass1@localhost:8080/example?key1=value1\u0026key2=value2\u0026key1=value2#f1\";\nlet uri = Uri::parse(s).unwrap();\nprintln!(\"{:?}\", uri);\n// Uri {\n//    schema: Scheme(\"http\"),\n//    authority: Some(\n//      Authority {\n//        host_name: HostName(\"localhost\"),\n//        port: Some(8080),\n//        user_info: Some(\n//          UserInfo {\n//            user_name: \"user1\",\n//            password: Some(\"pass1\")\n//          }\n//        )\n//      }\n//    ),\n//    path: AbemptyPath {\n//      type_name: \"abempty_path\",\n//      parts: [\"example\"]\n//    },\n//    query: Some(\n//      Query {\n//        params: [\n//          (\"key1\", Some(\"value1\")),\n//          (\"key2\", Some(\"value2\")),\n//          (\"key1\", Some(\"value2\"))\n//        ]\n//      }\n//    ),\n//    fragment: Some(\"f1\")\n// }\nprintln!(\"{}\", uri.to_string());\n// http://user1:pass1@localhost:8080/example?key1=value1\u0026key2=value2\u0026key1=value2#f1\n```\n\n## Benchmarks\n\nTODO\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj5ik2o%2Furi-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj5ik2o%2Furi-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj5ik2o%2Furi-rs/lists"}