{"id":19147784,"url":"https://github.com/refcell/lice","last_synced_at":"2026-03-02T01:31:02.971Z","repository":{"id":202830464,"uuid":"708228434","full_name":"refcell/lice","owner":"refcell","description":"Dead simple, minimal SPDX License generator library written in Rust.","archived":false,"fork":false,"pushed_at":"2023-10-26T20:50:44.000Z","size":190,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-08T15:53:32.331Z","etag":null,"topics":["library","license","rust","spdx"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/lice","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/refcell.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":"2023-10-21T23:01:06.000Z","updated_at":"2025-06-16T03:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"f44a9f3c-ecec-44ba-847b-3db10b6c93d4","html_url":"https://github.com/refcell/lice","commit_stats":null,"previous_names":["refcell/lice"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/refcell/lice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Flice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Flice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Flice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Flice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refcell","download_url":"https://codeload.github.com/refcell/lice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Flice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29989013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: 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":["library","license","rust","spdx"],"created_at":"2024-11-09T07:52:22.704Z","updated_at":"2026-03-02T01:31:02.955Z","avatar_url":"https://github.com/refcell.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lice\n\n[![Build Status]][actions]\n[![License]][mit-license]\n[![Docs]][Docs-rs]\n[![Latest Version]][crates.io]\n[![rustc 1.65+]][Rust 1.65]\n\n[Build Status]: https://img.shields.io/github/actions/workflow/status/refcell/lice/ci.yml?branch=main\n[actions]: https://github.com/refcell/lice/actions?query=branch%3Amain\n[Latest Version]: https://img.shields.io/crates/v/lice.svg\n[crates.io]: https://crates.io/crates/lice\n[rustc 1.65+]: https://img.shields.io/badge/rustc_1.65+-lightgray.svg?label=msrv\n[Rust 1.65]: https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html\n[License]: https://img.shields.io/badge/license-MIT-7795AF.svg\n[mit-license]: https://github.com/refcell/lice/blob/main/LICENSE.md\n[Docs-rs]: https://docs.rs/lice/\n[Docs]: https://img.shields.io/docsrs/lice.svg?color=319e8c\u0026label=docs.rs\n\n\n**Dead simple, minimal SPDX License generator library written in Rust.** Lice is in https://github.com/refcell/lice/labels/beta\n\n![](./etc/banner.png)\n\n**[Install](#usage)**\n| [User Docs](#what-is-lice)\n| [Crate Docs][crates.io]\n| [Reference][Docs-rs]\n| [Contributing](#contributing)\n| [License](#license)\n| [Attribution](#attribution)\n\n## What is lice?\n\n`lice` is a dead simple, minimal library for generating\nvalid SPDX licenses. It was primarily built for `amble`\nbut ripped out into it's own crate to provide an extensible\nlibrary, published on [crates.io][crates.io].\n\n## Usage\n\nInstall `lice` with cargo.\n\n```ignore,sh,no_run\ncargo add lice\n```\n\nA short example to query for the `MIT` License is shown below.\n\n```rust\nuse anyhow::Result;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let license = lice::get(\"mit\").await?;\n    assert_eq!(license.license_id, \"MIT\");\n    Ok(())    \n}\n```\n\nUnder the hood, the [get](https://docs.rs/lice/latest/lice/fn.get.html)\nfunction fetches licenses and fuzzy matches, using the first choice to\nquery the license details, returning the merged [License](https://docs.rs/lice/latest/lice/types/struct.License.html) \nand its details.\n\n## Contributing\n\nAll contributions are welcome! Experimentation is highly encouraged\nand new issues are welcome.\n\n## Troubleshooting \u0026 Bug Reports\n\nPlease check existing issues for similar bugs or\n[open an issue](https://github.com/refcell/lice/issues/new)\nif no relevant issue already exists.\n\n## Attribution\n\nMuch of this work is based off of [lic][lic-repo], an spdx license\ngenerator binary that can't be used as a library. The adapted\n[`lice`][crates.io] crate extends the SPDX \"API\" to\nprovide more verbose license fetching methods. Big h/t to the\ncreators of [lic][lic-repo] especially [SigureMo][sig-mo]\n\n[sig-mo]: https://github.com/SigureMo\n[lic-repo]: https://github.com/ShigureLab/lic/tree/main\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\nFree and open-source, forever.\n*All our rust are belong to you.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefcell%2Flice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefcell%2Flice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefcell%2Flice/lists"}