{"id":16949772,"url":"https://github.com/tailhook/serde-regex","last_synced_at":"2025-04-05T20:08:38.379Z","repository":{"id":29267112,"uuid":"120919225","full_name":"tailhook/serde-regex","owner":"tailhook","description":"A serde wrapper that allows to (de)serialize regular expressions","archived":false,"fork":false,"pushed_at":"2022-11-21T15:12:56.000Z","size":31,"stargazers_count":65,"open_issues_count":4,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T19:06:59.452Z","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/tailhook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-09T15:02:48.000Z","updated_at":"2024-12-28T21:36:21.000Z","dependencies_parsed_at":"2023-01-14T14:32:45.030Z","dependency_job_id":null,"html_url":"https://github.com/tailhook/serde-regex","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fserde-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fserde-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fserde-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fserde-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailhook","download_url":"https://codeload.github.com/tailhook/serde-regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931813,"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-13T21:56:01.012Z","updated_at":"2025-04-05T20:08:38.359Z","avatar_url":"https://github.com/tailhook.png","language":"Rust","readme":"Serde Regex\n============\n\n[Documentation](https://docs.rs/serde_regex) |\n[Github](https://github.com/tailhook/serde-regex) |\n[Crate](https://crates.io/crates/serde_regex)\n\nA serde wrapper, that can be used to serialize regular expressions as strings.\nIt's often useful to read regexes from configuration file.\n\nNote: regex is read with default settings. So DoS attack is probably possible\nif reading regex from untrusted source. I.e. reading from config file is\nokay, reading from API request is not.\n\n\nExample\n-------\n\n```rust\n#[macro_use]\nextern crate serde_derive;\n\nextern crate serde;\nextern crate serde_regex;\n\nuse regex::Regex;\n\n#[derive(Serialize, Deserialize)]\nstruct Timestamps {\n    #[serde(with = \"serde_regex\")]\n    pattern: Regex,\n}\n```\n\n\nLicense\n=======\n\nLicensed under either of\n\n* Apache License, Version 2.0,\n  (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)\n  at your option.\n\nContribution\n------------\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Fserde-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailhook%2Fserde-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Fserde-regex/lists"}