{"id":29414020,"url":"https://github.com/flakysl/dyn_path","last_synced_at":"2025-10-28T20:06:28.695Z","repository":{"id":302173160,"uuid":"1011508323","full_name":"FlakySL/dyn_path","owner":"FlakySL","description":"A JavaScript-like nested object-like structure non-fallible path access interface. Access your data without serializing it just like you do in your JavaScript projects.","archived":false,"fork":false,"pushed_at":"2025-09-15T06:59:28.000Z","size":73,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-11T01:13:25.547Z","etag":null,"topics":["dynamism","javascript","json","serialization","serializing"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/dyn_path","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FlakySL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-30T23:51:03.000Z","updated_at":"2025-08-04T22:38:26.000Z","dependencies_parsed_at":"2025-07-01T00:38:14.855Z","dependency_job_id":"84590d4b-bbdb-4b49-beef-f9fffbec9d5e","html_url":"https://github.com/FlakySL/dyn_path","commit_stats":null,"previous_names":["flakysl/dyn_access"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/FlakySL/dyn_path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlakySL%2Fdyn_path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlakySL%2Fdyn_path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlakySL%2Fdyn_path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlakySL%2Fdyn_path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FlakySL","download_url":"https://codeload.github.com/FlakySL/dyn_path/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FlakySL%2Fdyn_path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281504338,"owners_count":26512865,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dynamism","javascript","json","serialization","serializing"],"created_at":"2025-07-11T12:01:22.836Z","updated_at":"2025-10-28T20:06:28.686Z","avatar_url":"https://github.com/FlakySL.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![dyn_path](https://github.com/user-attachments/assets/8c6b4cd3-7686-487e-b2d8-0dd63477185b)\n\n[![Crates.io](https://badges.ws/crates/v/dyn_path)](https://crates.io/crates/dyn_path)\n[![License](https://badges.ws/crates/l/dyn_path)](./LICENSE)\n[![Docs.rs](https://badges.ws/crates/docs/dyn_path)](https://docs.rs/dyn_path)\n[![Downloads](https://badges.ws/crates/dt/dyn_path)](https://crates.io/crates/dyn_path)\n[![Codecov](https://img.shields.io/codecov/c/github/FlakySL/dyn_path)](https://app.codecov.io/gh/FlakySL/dyn_path)\n![tests](https://github.com/FlakySL/dyn_path/actions/workflows/overall-coverage.yml/badge.svg)\n[![discord](https://badges.ws/discord/online/1344769456731197450)](https://discord.gg/AJWFyps23a)\n\nA JavaScript-like nested object-like structure non-fallible path access interface.\n\nThis library permits the user to access values in nested structures trough the use\nof `get` methods that return `Option\u003cT\u003e`. This may be used to access specific API data\nwithout serializing it into multiple structures and making a mess.\n\n## Table of Contents 📖\n\n- [Use Cases](#use-cases-)\n- [Installation](#installation-)\n- [No STD](#no-std-)\n- [Licensing](#license-)\n\n## Use Cases 🔍\n\nImagine you just accessed a song API, this API describes everything you may or may not\nwant to know about a specific song or songs. With the help of computed indexes you can\naccess the same path multiple times in a variable way.\n\nLets try it.\n\n```rust\nuse serde_json::Value as JsonValue;\nuse reqwest::get;\nuse dyn_path::dyn_access;\n\nlet response = get(\"https://api.platform-ending-with-fy.com/v1/tracks/5cbpoIu3YjoOwbBDGUEp3P\")\n\t.await?\n\t.json::\u003cJsonValue\u003e()\n\t.await?;\n\nlet song_name = dyn_access!(response.album.name);\nlet song_main_artist = dyn_access!(response.album.artists[0].name);\n\nassert_eq!(song_name, \"Car Radio\");\nassert_eq!(song_main_artist, \"Twenty One Pilots\");\n```\n\nObviously this isn't a real call to a real API, but the intention can be inferred from\nthis example anyways.\n\n## Installation 📦\n\nAdd the following to your `Cargo.toml` under the `dependencies` section\n\n```toml\ndyn_path = \"1.0.7\"\n```\n\n## No std 💡\n\nThis crate supports `no_std`, meaning you can use it in your project without\ndepending on specific system I/O or anything else.\n\nThe crate has a default feature enabled which is `std`, with this feature\nthe crate doesn't really use `std` but it pre-includes `alloc` which\npermits the use of the `dyn_path` macro, which uses `String` to describe\na path.\n\nYou can also disable the default features and the crate will annotate `no_std`.\nThen use the `alloc` feature if you want to have the `dyn_path` macro enabled.\n\n## License 📜\n\nThis repository is dual licensed, TLDR. If your repository is open source, the library\nis free of use, otherwise contact [licensing@flaky.es](mailto:licensing@flaky.es) for a custom license for your\nuse case.\n\nFor more information read the [license](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflakysl%2Fdyn_path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflakysl%2Fdyn_path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflakysl%2Fdyn_path/lists"}