{"id":17875957,"url":"https://github.com/bnjjj/rust-bitbar","last_synced_at":"2025-03-22T00:32:23.075Z","repository":{"id":56619107,"uuid":"168886952","full_name":"bnjjj/rust-bitbar","owner":"bnjjj","description":"Rust crate to build BitBar plugins","archived":false,"fork":false,"pushed_at":"2020-10-28T13:49:16.000Z","size":17,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-15T11:49:51.043Z","etag":null,"topics":["bitbar","bitbar-plugin","hacktoberfest","macos","rust","rust-crate","rust-library"],"latest_commit_sha":null,"homepage":"","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/bnjjj.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":"2019-02-02T22:50:37.000Z","updated_at":"2022-09-11T11:16:32.000Z","dependencies_parsed_at":"2022-08-15T22:01:05.043Z","dependency_job_id":null,"html_url":"https://github.com/bnjjj/rust-bitbar","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/bnjjj%2Frust-bitbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjjj%2Frust-bitbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjjj%2Frust-bitbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnjjj%2Frust-bitbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnjjj","download_url":"https://codeload.github.com/bnjjj/rust-bitbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820896,"owners_count":16886225,"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":["bitbar","bitbar-plugin","hacktoberfest","macos","rust","rust-crate","rust-library"],"created_at":"2024-10-28T11:26:19.467Z","updated_at":"2024-10-28T11:26:20.065Z","avatar_url":"https://github.com/bnjjj.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-bitbar [![Travis Badge]][Travis] [![Version](https://img.shields.io/crates/v/rust-bitbar.svg)](https://crates.io/crates/rust-bitbar) [![Documentation](https://docs.rs/rust-bitbar/badge.svg)](https://docs.rs/rust-bitbar)\n\n\nThis repo contains a crate for creating [BitBar](https://github.com/matryer/bitbar) plugins in Rust.\n\n## Usage\n\nHere is a simple example : \n\n```rust\nuse rust_bitbar::{Line, Plugin, SubMenu};\n\nfn main() {\n    let mut pl = Plugin::new();\n    let mut line = Line::new(\"first line\");\n    line.set_color(\"red\")\n        .set_href(\"http://google.com\");\n\n    let mut sub_menu = SubMenu::new();\n    sub_menu.add_line(line);\n\n    let status_line = Line::new(\"🍺🍺🍺\");\n    pl.set_status_line(status_line).set_sub_menu(sub_menu);\n\n    pl.render();\n}\n```\n\nTo have more details please check the [official documentation](https://docs.rs/rust-bitbar).\n\n[Travis]: https://travis-ci.org/bnjjj/rust-bitbar\n[Travis Badge]: https://travis-ci.org/bnjjj/rust-bitbar.svg?branch=master","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnjjj%2Frust-bitbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnjjj%2Frust-bitbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnjjj%2Frust-bitbar/lists"}