{"id":13822568,"url":"https://github.com/OpenSourceOrg/rust-opensource","last_synced_at":"2025-05-16T17:31:04.936Z","repository":{"id":57649556,"uuid":"61489865","full_name":"OpenSourceOrg/rust-opensource","owner":"OpenSourceOrg","description":"Rust API Bindings to the OSI License API","archived":false,"fork":false,"pushed_at":"2020-04-05T14:27:25.000Z","size":583,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-12T18:00:58.395Z","etag":null,"topics":["api","api-client","library","opensource","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenSourceOrg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-06-19T16:40:46.000Z","updated_at":"2025-03-24T21:34:54.000Z","dependencies_parsed_at":"2022-09-05T13:21:33.476Z","dependency_job_id":null,"html_url":"https://github.com/OpenSourceOrg/rust-opensource","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceOrg%2Frust-opensource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceOrg%2Frust-opensource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceOrg%2Frust-opensource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSourceOrg%2Frust-opensource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSourceOrg","download_url":"https://codeload.github.com/OpenSourceOrg/rust-opensource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576432,"owners_count":22094366,"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":["api","api-client","library","opensource","rust"],"created_at":"2024-08-04T08:02:06.613Z","updated_at":"2025-05-16T17:31:04.697Z","avatar_url":"https://github.com/OpenSourceOrg.png","language":"Rust","readme":"\u003ca href=\"https://opensource.org/licenses\"\u003e\u003cimg align=\"right\" width=\"150\" height=\"200\" src=\"https://opensource.org/files/OSIApproved.png\"\u003e\u003c/a\u003e\n# rust-opensource #\n\n`rust-opensource` is an API Wrapper that allows you to query the Open Source\nLicense API with Rust.\n\n## Install ##\n\nThe crate is called `opensource` and you can depend on it via cargo:\n\n```ini\n[dependencies]\nopensource = \"0.2.0\"\n```\n\nDocumentation can be found at\n[OpenSourceOrg.github.io/rust-opensource](https://OpenSourceOrg.github.io/rust-opensource).\n\n# Examples #\n\n```rust\nextern crate opensource;\n\nuse opensource::client;\n\nfn main() {\n    let license = client::get(\"BSD-3\").unwrap();\n    println!(\"{}\", license.name);\n}\n```\n\nA better way is to use match:\n\n```rust\nextern crate opensource;\n\nuse opensource::client;\n\nfn main() {\n    let license = client::get(\"this-license-does-not-exist\");\n    match license {\n        Ok(license) =\u003e println!(\"{}\", license.name),\n        Err(err) =\u003e println!(\"{}\", err),\n    }\n}\n```\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenSourceOrg%2Frust-opensource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenSourceOrg%2Frust-opensource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenSourceOrg%2Frust-opensource/lists"}