{"id":22886429,"url":"https://github.com/moluopro/bobo","last_synced_at":"2026-01-27T09:17:10.308Z","repository":{"id":263926720,"uuid":"872749498","full_name":"moluopro/bobo","owner":"moluopro","description":"rust oop support","archived":false,"fork":false,"pushed_at":"2024-11-21T03:31:38.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T09:31:14.738Z","etag":null,"topics":["object-oriented","oop","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","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/moluopro.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,"zenodo":null}},"created_at":"2024-10-15T02:22:34.000Z","updated_at":"2024-11-21T03:32:48.000Z","dependencies_parsed_at":"2025-05-07T10:30:18.216Z","dependency_job_id":null,"html_url":"https://github.com/moluopro/bobo","commit_stats":null,"previous_names":["moluopro/bobo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moluopro/bobo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fbobo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fbobo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fbobo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fbobo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moluopro","download_url":"https://codeload.github.com/moluopro/bobo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moluopro%2Fbobo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28810475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["object-oriented","oop","rust","rust-lang"],"created_at":"2024-12-13T20:18:45.610Z","updated_at":"2026-01-27T09:17:10.291Z","avatar_url":"https://github.com/moluopro.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## BOBO  \nan elegant and powerful rust development tool library  \n\u003e In development, not recommended. The features listed in the documentation are implemented.  \n\n### Quick Start  \n\nInstall: `cargo add bobo`  \n\n```rust\nuse bobo::oop::*;\n\nclass! {\n    Person {\n        name: String\n        age: u32\n\n        fn greet() {\n            println!(\"{}\", format!(\"Hello, my name is {}.\", self.name));\n        }\n    }\n}\n\nfn main() {\n    let person = Person {\n        name: String::from(\"Tom\"),\n    };\n\n    person.greet();\n}\n```\n\n## A more complex example  \n\nCreate multiple classes with multiple properties and methods.  \n\n```rust\nuse bobo::oop::*;\n\nclass! {\n\n    Person {\n\n        name: String\n        age: u32\n\n        fn greet() {\n            println!(\"{}\", format!(\"Hello, my name is {}.\", self.name));\n        }\n\n        fn get_age(years: u32) -\u003e u32 {\n            self.age + years\n        }\n    }\n\n    Animal {\n\n        species: String\n        age: u32\n\n        fn speak() {\n            println!(\"The {} makes a sound.\", self.species);\n        }\n\n        fn age_in_human_years() -\u003e u32 {\n            self.age * 7\n        }\n    }\n\n}\n```\n\nCreate a class using a constructor named `new`:   \n\n```rust\nuse bobo::oop::*;\n\nfn main() {\n    let person = Person::new(\"Alice\", 30);\n    person.greet();\n}\n\nclass! {\n    Person {\n        name: String\n        age: u32\n\n        fn new(name: \u0026str, age: u32) -\u003e Self {\n            Self {\n                name: name.to_string(),\n                age\n            }\n        }\n\n        fn greet() {\n            println!(\"{}\", format!(\"I'm {}.\", self.name));\n        }\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoluopro%2Fbobo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoluopro%2Fbobo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoluopro%2Fbobo/lists"}