{"id":15388513,"url":"https://github.com/deebloo/metrum","last_synced_at":"2026-02-15T03:31:09.472Z","repository":{"id":196205130,"uuid":"694685788","full_name":"deebloo/metrum","owner":"deebloo","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-25T13:42:09.000Z","size":143,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T15:35:26.295Z","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":"mit","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":"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-09-21T13:44:50.000Z","updated_at":"2025-03-25T13:42:15.000Z","dependencies_parsed_at":"2023-09-23T05:56:25.827Z","dependency_job_id":"ff69c1d7-32fa-4574-97ef-64c1ec5d31f0","html_url":"https://github.com/deebloo/metrum","commit_stats":null,"previous_names":["deebloo/metrum"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deebloo/metrum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fmetrum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fmetrum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fmetrum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fmetrum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deebloo","download_url":"https://codeload.github.com/deebloo/metrum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fmetrum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29466929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-01T14:57:01.754Z","updated_at":"2026-02-15T03:31:09.447Z","avatar_url":"https://github.com/deebloo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# metrum\n\nEasily handle measurement values in rust.\n\nThe goal is to work with measurements without needing to think about about units until you absolutely have to.\n\n## Length\n\n| Unit | Constructor | Conversion |\n| ---- | ----------- | ---------- |\n|      |             |            |\n\n\n### Units\n\n| Unit        | Constructor           | Conversion    |\n| ----------- | --------------------- | ------------- |\n| Celcius     | `Temp::from_c(value)` | `temp.as_c()` |\n| Farenheight | `Temp::from_f(value)` | `temp.as_f()` |\n| Kelvin      | `Temp::from_k(value)` | `temp.as_k()` |\n\n## Speed\n\n| Unit  | Constructor               | Conversion        |\n| ----- | ------------------------- | ----------------- |\n| MPS   | `Temp::from_mps(value)`   | `temp.as_mps()`   |\n| KPH   | `Temp::from_kph(value)`   | `temp.as_kph()`   |\n| MPH   | `Temp::from_mph(value)`   | `temp.as_mph()`   |\n| Knots | `Temp::from_knots(value)` | `temp.as_knots()` |\n\n## Temp\n\n| Unit        | Constructor           | Conversion    |\n| ----------- | --------------------- | ------------- |\n| Celcius     | `Temp::from_c(value)` | `temp.as_c()` |\n| Farenheight | `Temp::from_f(value)` | `temp.as_f()` |\n| Kelvin      | `Temp::from_k(value)` | `temp.as_k()` |\n\n\n```rust\nuse metrum::Temp;\nuse metrum::temp::TempDelta;\n\nlet from_f = Temp::from_f(32.);\nlet from_c = Temp::from_c(0.);\n\nassert_eq!(from_f, from_c);\nassert_eq!(from_f - from_c, TempDelta { value: 0. });\n```\n\n## Weight\n\n| Unit | Constructor | Conversion |\n| ---- | ----------- | ---------- |\n|      |             |            |\n\n\n## Serde\nValues can be safely serialized and deserialized using serde when the `serde` feature is enabled.\n\n```toml\n[dependencies]\nmetrum = { version = \"*\", features = [\"serde\"] }\n```\n\n## WASM\nMetrum has limited compatibility with WASM and wasm-packg\n\n```toml\n[dependencies]\nmetrum = { version = \"*\", features = [\"wasm\"] }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeebloo%2Fmetrum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeebloo%2Fmetrum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeebloo%2Fmetrum/lists"}