{"id":22747415,"url":"https://github.com/dekirisu/querio","last_synced_at":"2025-04-14T11:40:32.153Z","repository":{"id":60182725,"uuid":"541513154","full_name":"dekirisu/querio","owner":"dekirisu","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-30T22:15:52.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T00:45:07.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dekirisu.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}},"created_at":"2022-09-26T09:48:07.000Z","updated_at":"2024-04-29T20:15:35.000Z","dependencies_parsed_at":"2022-09-26T12:00:28.450Z","dependency_job_id":null,"html_url":"https://github.com/dekirisu/querio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekirisu%2Fquerio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekirisu%2Fquerio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekirisu%2Fquerio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekirisu%2Fquerio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dekirisu","download_url":"https://codeload.github.com/dekirisu/querio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248874209,"owners_count":21175791,"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":[],"created_at":"2024-12-11T03:15:32.565Z","updated_at":"2025-04-14T11:40:32.126Z","avatar_url":"https://github.com/dekirisu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\" style=\"background:#6d0023;padding:12px 0px;margin-bottom:16px;border-radius:24px;\"\u003e\n    \u003cimg src=\"https://github.com/dekirisu/strung/assets/78398528/59006ba5-f19c-4617-9cf3-691e841b0aba\"\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/dekirisu/querio\" style=\"position:relative\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/github-dekirisu/querio-ee6677\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/querio\" style=\"position:relative\"\u003e\n        \u003cimg src=\"https://img.shields.io/crates/v/querio\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e🚧 WIP, but wanted a basic version up 🚧\u003c/h3\u003e\n\n## Struct based string builder\n🐠 add **querio** to the dependencies in the `Cargo.toml`:\n```toml\n[dependencies]\nquerio = \"0.0.1\"\n```\n🦀 use/import everything into rust:\n```rust \nuse querio::*;\n```\n🦊 build the string:\n```rust \n// runtime variables\n#[derive(Strung,Intuple)]\nstruct VarStruct {\n    numb: u32,\n    strg: \u0026'static str\n}\n\n// create builder\n#[derive(Querio)]\n#[querio(\n    // attach runtime variables, address with #{field_name}\n    variables(VarStruct), \n\n    // add compile time variables, address with \u003cindex\u003e\n    sections(\"Test1\",\"Test2\"), \n\n    // the string those variables will be merged in\n    \"#numb #strg \u003c0\u003e \u003c1\u003e \u003c0\u003e\"\n)] struct ABuilder {}\n\nfn main(){\n    // use the builder with attached variables struct\n    let text = ABuilder::querio(\u0026VarStruct{numb:10,strg:\"RT\"}); \n    // =\u003e \"10 RT Test1 Test2 Test1\"\n        \n    // OR use the variable structs tuple representation and ::qrio(..)\n    let text = ABuilder::qrio((10,\"RT\"));\n    // =\u003e \"10 RT Test1 Test2 Test1\"\n}\n```\n\n---\n### License\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\u003cbr\u003e\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekirisu%2Fquerio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdekirisu%2Fquerio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekirisu%2Fquerio/lists"}