{"id":16338887,"url":"https://github.com/vorner/reopen","last_synced_at":"2025-03-22T23:32:51.237Z","repository":{"id":47101250,"uuid":"126600746","full_name":"vorner/reopen","owner":"vorner","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-13T18:47:17.000Z","size":98,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T23:53:05.002Z","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/vorner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-24T13:14:46.000Z","updated_at":"2023-06-04T06:25:28.000Z","dependencies_parsed_at":"2022-09-26T20:31:09.014Z","dependency_job_id":null,"html_url":"https://github.com/vorner/reopen","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorner%2Freopen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorner%2Freopen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorner%2Freopen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorner%2Freopen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorner","download_url":"https://codeload.github.com/vorner/reopen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221840917,"owners_count":16889895,"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-10T23:53:00.270Z","updated_at":"2024-10-28T14:34:02.022Z","avatar_url":"https://github.com/vorner.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reopen\n\n[![Actions Status](https://github.com/vorner/reopen/workflows/test/badge.svg)](https://github.com/vorner/reopen/actions)\n[![codecov](https://codecov.io/gh/vorner/reopen/branch/master/graph/badge.svg?token=3KA3R2D9fV)](https://codecov.io/gh/vorner/reopen)\n[![docs](https://docs.rs/reopen/badge.svg)](https://docs.rs/reopen)\n\nA tiny `Read`/`Write` wrapper that can reopen the underlying IO object.\n\nThe main motivation is integration of logging with logrotate. Usually, when\nlogrotate wants to rotate log files, it moves the current log file to a new\nplace and creates a new empty file. However, for the new messages to appear in\nthe new file, a running program needs to close and reopen the file. This is\nmost often signalled by SIGHUP.\n\nThis allows reopening the IO object used inside the logging drain at runtime.\n\nAn example is in the [documentation](https://docs.rs/reopen).\n\n## Future plans\n\nThe API feels feature complete to me, therefore there probably won't be much\nhappening here. But I'm still open to ideas what would be good to have or PRs\nimplementing it.\n\n## Rustc version policy\n\nThe project will build on any rustc 1.31.0 or newer. The only exception is\nfeature flags added in the future, where enabling them might require newer\ncompiler.\n\nThe tests or examples don't have any particular version guarantee (future\nversions of the project may only *build* on 1.31.0, but tests might require\nnever compiler).\n\nChange to this policy would be considered an API breaking change and would\nrequire bumping the version to 2.0.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\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\nor conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorner%2Freopen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorner%2Freopen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorner%2Freopen/lists"}