{"id":15038310,"url":"https://github.com/stebalien/tempfile","last_synced_at":"2025-05-10T09:12:18.437Z","repository":{"id":30280830,"uuid":"33832372","full_name":"Stebalien/tempfile","owner":"Stebalien","description":"Temporary file library for rust","archived":false,"fork":false,"pushed_at":"2025-05-07T13:43:46.000Z","size":539,"stargazers_count":1288,"open_issues_count":8,"forks_count":129,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-10T09:12:14.532Z","etag":null,"topics":["filesystem-library","library","rust","tempfile","testing"],"latest_commit_sha":null,"homepage":"http://stebalien.com/projects/tempfile-rs","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/Stebalien.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-04-12T20:21:14.000Z","updated_at":"2025-05-08T00:09:36.000Z","dependencies_parsed_at":"2023-02-10T19:01:00.365Z","dependency_job_id":"dbd5d89a-b5ff-41d6-b7fc-d46a7a9a3781","html_url":"https://github.com/Stebalien/tempfile","commit_stats":{"total_commits":336,"total_committers":69,"mean_commits":4.869565217391305,"dds":0.3839285714285714,"last_synced_commit":"335d91d538953bb535f0839f4daced8d008d1dab"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stebalien%2Ftempfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stebalien%2Ftempfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stebalien%2Ftempfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stebalien%2Ftempfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stebalien","download_url":"https://codeload.github.com/Stebalien/tempfile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253391769,"owners_count":21900956,"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":["filesystem-library","library","rust","tempfile","testing"],"created_at":"2024-09-24T20:37:59.418Z","updated_at":"2025-05-10T09:12:18.384Z","avatar_url":"https://github.com/Stebalien.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"tempfile\n========\n\n[![Crate](https://img.shields.io/crates/v/tempfile.svg)](https://crates.io/crates/tempfile)\n[![Build Status](https://github.com/Stebalien/tempfile/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Stebalien/tempfile/actions/workflows/ci.yml?query=branch%3Amaster)\n\nA secure, cross-platform, temporary file library for Rust. In addition to creating\ntemporary files, this library also allows users to securely open multiple\nindependent references to the same temporary file (useful for consumer/producer\npatterns and surprisingly difficult to implement securely).\n\n[Documentation](https://docs.rs/tempfile/)\n\nUsage\n-----\n\nMinimum required Rust version: 1.63.0\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\ntempfile = \"3\"\n```\n\nExample\n-------\n\n```rust\nuse std::fs::File;\nuse std::io::{Write, Read, Seek, SeekFrom};\n\nfn main() {\n    // Write\n    let mut tmpfile: File = tempfile::tempfile().unwrap();\n    write!(tmpfile, \"Hello World!\").unwrap();\n\n    // Seek to start\n    tmpfile.seek(SeekFrom::Start(0)).unwrap();\n\n    // Read\n    let mut buf = String::new();\n    tmpfile.read_to_string(\u0026mut buf).unwrap();\n    assert_eq!(\"Hello World!\", buf);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstebalien%2Ftempfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstebalien%2Ftempfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstebalien%2Ftempfile/lists"}