{"id":17800768,"url":"https://github.com/kiwiyou/simput","last_synced_at":"2025-07-12T07:03:35.223Z","repository":{"id":57667491,"uuid":"233259056","full_name":"kiwiyou/simput","owner":"kiwiyou","description":"Simple input parser from stdin","archived":false,"fork":false,"pushed_at":"2020-01-11T16:41:07.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T11:08:37.406Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiwiyou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-11T16:10:59.000Z","updated_at":"2020-01-12T04:36:02.000Z","dependencies_parsed_at":"2022-09-02T14:22:47.660Z","dependency_job_id":null,"html_url":"https://github.com/kiwiyou/simput","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kiwiyou/simput","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Fsimput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Fsimput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Fsimput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Fsimput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiwiyou","download_url":"https://codeload.github.com/kiwiyou/simput/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiwiyou%2Fsimput/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264952060,"owners_count":23688007,"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-10-27T12:28:30.702Z","updated_at":"2025-07-12T07:03:35.206Z","avatar_url":"https://github.com/kiwiyou.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simput\nSimput enables an easy, simple method to get user inputs.\n__This is not intended to use in production environment.__\n\n## Installation\nIn `Cargo.toml`:\n```toml\n[dependencies]\nsimput = \"0.1\"\n```\n\n## Usage\n`input!` macro parses input from standard input as a tuple, which contains values of types specified by parameters.\nEach values are split by ascii space (0x20) or newline (0x0A).\n```rust\nuse simput::input;\nlet (number, word) = input!(i32, String);\n\n// stdin: 16 Hello\nassert_eq!(16, number);\nassert_eq!(\"Hello\", word);\n```\nYou can use `Line` keyword to read a whole line.\nIn this case, a `String` is returned.\n```rust\nlet i_am_a_line = input!(Line);\n\n// stdin: The quick brown fox jumps over the lazy dog\nassert_eq!(\"The quick brown fox jumps over the lazy dog\", i_am_a_line);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwiyou%2Fsimput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiwiyou%2Fsimput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiwiyou%2Fsimput/lists"}