{"id":17874296,"url":"https://github.com/modprog/toml-datetime-compat","last_synced_at":"2025-03-21T22:31:51.389Z","repository":{"id":65207489,"uuid":"587486166","full_name":"ModProg/toml-datetime-compat","owner":"ModProg","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-21T10:27:14.000Z","size":16,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-08T09:20:31.175Z","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/ModProg.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}},"created_at":"2023-01-10T21:31:50.000Z","updated_at":"2024-07-31T23:00:48.000Z","dependencies_parsed_at":"2023-01-15T15:00:14.664Z","dependency_job_id":null,"html_url":"https://github.com/ModProg/toml-datetime-compat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftoml-datetime-compat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftoml-datetime-compat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftoml-datetime-compat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModProg%2Ftoml-datetime-compat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ModProg","download_url":"https://codeload.github.com/ModProg/toml-datetime-compat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880340,"owners_count":20525506,"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-28T11:08:24.506Z","updated_at":"2025-03-21T22:31:50.983Z","avatar_url":"https://github.com/ModProg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toml-datetime-compat\n\nAdds a functionality to easily convert between `toml_datetime`'s and\n`chrono`'s/`time`'s types.\n\nBoth with the `serde` derive macros:\n\n```rust\n#[derive(Deserialize, Serialize)]\nstruct SomeDateTimes {\n    #[serde(with = \"toml_datetime_compat\")]\n    chrono_naive_date: chrono::NaiveDate,\n    #[serde(with = \"toml_datetime_compat\")]\n    chrono_naive_time: chrono::NaiveTime,\n    #[serde(with = \"toml_datetime_compat\")]\n    chrono_naive_date_time: chrono::NaiveDateTime,\n    #[serde(with = \"toml_datetime_compat\")]\n    chrono_date_time_utc: chrono::DateTime\u003cchrono::Utc\u003e,\n    #[serde(with = \"toml_datetime_compat\")]\n    chrono_date_time_offset: chrono::DateTime\u003cchrono::FixedOffset\u003e,\n    #[serde(with = \"toml_datetime_compat\")]\n    time_date: time::Date,\n    #[serde(with = \"toml_datetime_compat\")]\n    time_time: time::Time,\n    #[serde(with = \"toml_datetime_compat\")]\n    time_primitive_date_time: time::PrimitiveDateTime,\n    #[serde(with = \"toml_datetime_compat\")]\n    time_offset_date_time: time::OffsetDateTime,\"#\n}\n```\n\nAnd by introducing a new trait `ToFromToml` that adds `to_toml` and `from_toml`\nfunctions to the relevant structs from `chrono` and `time`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodprog%2Ftoml-datetime-compat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodprog%2Ftoml-datetime-compat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodprog%2Ftoml-datetime-compat/lists"}