{"id":23049947,"url":"https://github.com/x52dev/double-int","last_synced_at":"2025-08-15T02:31:29.859Z","repository":{"id":217488223,"uuid":"744073601","full_name":"x52dev/double-int","owner":"x52dev","description":"The double-int format represents an integer that can be stored in an IEEE 754 double-precision number without loss of precision","archived":false,"fork":false,"pushed_at":"2025-07-07T20:07:40.000Z","size":266,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T22:06:19.294Z","etag":null,"topics":["openapi","serde"],"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/x52dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":["robjtede"]}},"created_at":"2024-01-16T15:16:04.000Z","updated_at":"2025-07-07T20:07:43.000Z","dependencies_parsed_at":"2024-05-13T18:48:36.854Z","dependency_job_id":"4c0bb8f0-e357-4695-a1c6-bbf92bfc3200","html_url":"https://github.com/x52dev/double-int","commit_stats":null,"previous_names":["x52dev/double-int"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/x52dev/double-int","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fdouble-int","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fdouble-int/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fdouble-int/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fdouble-int/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x52dev","download_url":"https://codeload.github.com/x52dev/double-int/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x52dev%2Fdouble-int/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270514461,"owners_count":24598368,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"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":["openapi","serde"],"created_at":"2024-12-15T23:18:18.915Z","updated_at":"2025-08-15T02:31:29.830Z","avatar_url":"https://github.com/x52dev.png","language":"Rust","funding_links":["https://github.com/sponsors/robjtede"],"categories":[],"sub_categories":[],"readme":"## Source Code Merged Into \u003chttps://github.com/x52dev/serde-utils\u003e\n\n---\n\n# `double-int`\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[![crates.io](https://img.shields.io/crates/v/double-int?label=latest)](https://crates.io/crates/double-int)\n[![Documentation](https://docs.rs/double-int/badge.svg?version=0.1.3)](https://docs.rs/double-int/0.1.3)\n[![dependency status](https://deps.rs/crate/double-int/0.1.3/status.svg)](https://deps.rs/crate/double-int/0.1.3)\n![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/double-int.svg)\n\u003cbr /\u003e\n[![CI](https://github.com/x52dev/double-int/actions/workflows/ci.yml/badge.svg)](https://github.com/x52dev/double-int/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/x52dev/double-int/branch/main/graph/badge.svg)](https://codecov.io/gh/x52dev/double-int)\n![Version](https://img.shields.io/badge/rustc-1.56+-ab6000.svg)\n[![Download](https://img.shields.io/crates/d/double-int.svg)](https://crates.io/crates/double-int)\n\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- cargo-rdme start --\u003e\n\nThe double-int format represents an integer that can be stored in an IEEE 754 double-precision number without loss of precision.\n\nThis crate has been designed for use with OpenAPI tooling that wish to support integer-based `format: double-int` fields. [See docs in the OpenAPI format registry.][reg_double_int]\n\n## Examples\n\n```rust\n#[derive(Debug, serde::Deserialize)]\nstruct Config {\n    count: DoubleInt,\n}\n\nlet config = toml::from_str::\u003cConfig\u003e(r#\"\n    count = 42\n\"#).unwrap();\nassert_eq!(config.count, 42);\n\nlet config = toml::from_str::\u003cConfig\u003e(r#\"\n    count = -42\n\"#).unwrap();\nassert_eq!(config.count, -42);\n\n// count is outside the bounds of a double-int (\u003e 2^53 in this case)\n// (this would usually be accepted by an i64)\nlet config = toml::from_str::\u003cConfig\u003e(r#\"\n    count = 36028797018963968\n\"#).unwrap_err();\n```\n\n[reg_double_int]: https://spec.openapis.org/registry/format/double-int\n\n\u003c!-- cargo-rdme end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx52dev%2Fdouble-int","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx52dev%2Fdouble-int","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx52dev%2Fdouble-int/lists"}