{"id":20048866,"url":"https://github.com/sintef/rust-big-decimal-byte-string-encoder","last_synced_at":"2026-01-06T18:03:51.779Z","repository":{"id":251040111,"uuid":"836218465","full_name":"SINTEF/rust-big-decimal-byte-string-encoder","owner":"SINTEF","description":"A Rust implementation of Google BigQuery's BigDecimalByteStringEncoder","archived":false,"fork":false,"pushed_at":"2024-07-31T11:54:32.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T07:40:00.373Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SINTEF.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":"2024-07-31T11:49:27.000Z","updated_at":"2024-07-31T11:54:18.000Z","dependencies_parsed_at":"2024-07-31T13:19:33.104Z","dependency_job_id":null,"html_url":"https://github.com/SINTEF/rust-big-decimal-byte-string-encoder","commit_stats":null,"previous_names":["sintef/rust-big-decimal-byte-string-encoder"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Frust-big-decimal-byte-string-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Frust-big-decimal-byte-string-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Frust-big-decimal-byte-string-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Frust-big-decimal-byte-string-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SINTEF","download_url":"https://codeload.github.com/SINTEF/rust-big-decimal-byte-string-encoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245841761,"owners_count":20681195,"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-11-13T11:47:01.609Z","updated_at":"2026-01-06T18:03:51.774Z","avatar_url":"https://github.com/SINTEF.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# big-decimal-byte-string-encoder\n\n[![Crates.io](https://img.shields.io/crates/v/big-decimal-byte-string-encoder.svg)](https://crates.io/crates/big-decimal-byte-string-encoder)\n[![Documentation](https://docs.rs/big-decimal-byte-string-encoder/badge.svg)](https://docs.rs/big-decimal-byte-string-encoder)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)\n\nA Rust implementation of Google BigQuery's BigDecimalByteStringEncoder for the NUMERIC data type.\n\nThis crate provides functionality to encode and decode BigDecimal values to and from byte strings compatible with BigQuery's NUMERIC type, as used in the BigQuery Write API.\n\nIt goes nicely with [gcp-bigquery-client](https://github.com/lquerel/gcp-bigquery-client).\n\n## Features\n\n- Encode `BigDecimal` values to BigQuery NUMERIC bytes.\n- Decode BigQuery NUMERIC bytes back to `BigDecimal` values.\n\n## Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nbig-decimal-byte-string-encoder = \"0.1.0\"\n```\n\n## Usage\n\n```rust\nuse bigdecimal::BigDecimal;\nuse big_decimal_byte_string_encoder::{decode_bigquery_bytes_to_bigdecimal, encode_bigdecimal_to_bigquery_bytes};\nuse std::str::FromStr;\n\nlet decimal = BigDecimal::from_str(\"123.456\").unwrap();\nlet encoded = encode_bigdecimal_to_bigquery_bytes(\u0026decimal).unwrap();\nlet decoded = decode_bigquery_bytes_to_bigdecimal(\u0026encoded).unwrap();\nassert_eq!(decimal, decoded);\n```\n\n## API Documentation\n\nFor detailed API documentation, please visit [docs.rs](https://docs.rs/big-decimal-byte-string-encoder).\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.\n\n## Acknowledgments\n\nThis implementation is inspired by and ported from Google's BigQuery Write API. For more information, see the [BigQuery Write API documentation](https://cloud.google.com/bigquery/docs/write-api#data_type_conversions).\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintef%2Frust-big-decimal-byte-string-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsintef%2Frust-big-decimal-byte-string-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintef%2Frust-big-decimal-byte-string-encoder/lists"}