{"id":15388527,"url":"https://github.com/deebloo/degrees","last_synced_at":"2025-04-15T20:20:47.829Z","repository":{"id":195453893,"uuid":"692738481","full_name":"deebloo/degrees","owner":"deebloo","description":"Easily handle temperature values in rust","archived":false,"fork":false,"pushed_at":"2024-05-05T10:43:05.000Z","size":28,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T07:41:41.921Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deebloo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-17T12:42:51.000Z","updated_at":"2023-09-19T13:29:07.000Z","dependencies_parsed_at":"2023-09-18T05:44:00.134Z","dependency_job_id":"72eb56e1-398d-4d20-9e13-bcac3e501110","html_url":"https://github.com/deebloo/degrees","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":0.5,"last_synced_commit":"df65faf665013248ed428b6b1d9095ebdabfacd0"},"previous_names":["deebloo/temp","deebloo/degrees"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fdegrees","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fdegrees/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fdegrees/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fdegrees/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deebloo","download_url":"https://codeload.github.com/deebloo/degrees/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145878,"owners_count":21220050,"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-01T14:57:07.703Z","updated_at":"2025-04-15T20:20:47.803Z","avatar_url":"https://github.com/deebloo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# degrees\n\nEasily handle temperature values in rust.\n\nThe goal is to work with temps without needing to think about about units at all. A `Temp` is itself a value. The units are just for display back to the user.\n\nYou can compare and combine temps safely without manually converting to and from different units.\n\nFor example you can subtract 10degC from 86degF. The crate will handle the conversions internally and give you a result in the initial unit.\n\n```rust\nuse degrees:Temp;\n\nlet value = Temp::F(86.) - Temp::C(10.); // Temp::F(36.0)\n```\n\nThis also means you can safely compare temperatures in two different units\n\n```rust\nuse degrees:Temp;\n\nlet value = Temp::F(86.) == Temp::C(30.); // true\n```\n\nTemps can be safely serialized and deserialized using serde when the `serde` feature is enabled.\n\n```toml\n[dependencies]\ndegrees = { version = \"0.6.0\", features = [\"serde\"] }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeebloo%2Fdegrees","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeebloo%2Fdegrees","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeebloo%2Fdegrees/lists"}