{"id":16753509,"url":"https://github.com/optimalstrategy/plain-msgbox","last_synced_at":"2025-03-16T05:41:00.296Z","repository":{"id":96616323,"uuid":"339285289","full_name":"optimalstrategy/plain-msgbox","owner":"optimalstrategy","description":"A crate for generating plain message boxes","archived":false,"fork":false,"pushed_at":"2021-02-16T04:34:30.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T18:11:33.966Z","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/optimalstrategy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-16T04:32:36.000Z","updated_at":"2021-02-16T04:34:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a360b6ef-1eb0-493b-b5dd-7b502748525b","html_url":"https://github.com/optimalstrategy/plain-msgbox","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/optimalstrategy%2Fplain-msgbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fplain-msgbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fplain-msgbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fplain-msgbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optimalstrategy","download_url":"https://codeload.github.com/optimalstrategy/plain-msgbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830922,"owners_count":20354850,"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-13T02:50:18.494Z","updated_at":"2025-03-16T05:41:00.251Z","avatar_url":"https://github.com/optimalstrategy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# plain-msgbox\nA crate for generating plain message boxes like the one below (formatting is manual):\n\n```bash\n╭────────────────────────────────╮\n│ Call stack size:     1024      │\n│ Interning threshold: 20        │\n│ Optimization level:  1         │\n│ Optimizations:                 │\n│   Constant Folding:       true │\n│   Peephole Optimizations: true │\n│   Tail Call Optimization: true │\n│   Dead Code Elimination:  true │\n│ (misc): cfg_export = false     │\n│ (misc): caching    = true      │\n\u003cConfig\u003e─────────────────────────╯\n```\n\n## Usage\nAdd this to your Cargo.toml:\n\n```toml\n[dependencies]\nplain_msgbox = { git = \"https://github.com/optimalstrategy/plain-msgbox\" }\n```\n\nThen generate some boxes:\n\n```rust\nuse plain_msgbox::generate_box;\n\nlet msg = generate_box(\u0026[\n    format!(\"A vec:    {:?}\", vec![1, 2, 3]),\n    format!(\"A tuple:  {:?}\", (1, 2, 3)),\n    format!(\"A string: {}\", \"abcdefghi\"),\n]);\nassert_eq!(msg, \"\\\n╭─────────────────────╮\n│ A vec:    [1, 2, 3] │\n│ A tuple:  (1, 2, 3) │\n│ A string: abcdefghi │\n╰─────────────────────╯\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimalstrategy%2Fplain-msgbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimalstrategy%2Fplain-msgbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimalstrategy%2Fplain-msgbox/lists"}