All Projects → Stebalien → Tempfile

Stebalien / Tempfile

Licence: other
Temporary file library for rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Tempfile

Cpp Base64
base64 encoding and decoding with c++
Stars: ✭ 429 (-8.14%)
Mutual labels:  library
Candybar Library
Android icon pack material dashboard
Stars: ✭ 437 (-6.42%)
Mutual labels:  library
React Native Vision Camera
📸 The Camera library that sees the vision.
Stars: ✭ 443 (-5.14%)
Mutual labels:  library
Graph
Graph algorithms and data structures
Stars: ✭ 431 (-7.71%)
Mutual labels:  library
Android Dev Sources
All those Android development sources that you need to be and stay awesome!
Stars: ✭ 434 (-7.07%)
Mutual labels:  library
Ponder
C++ reflection library with Lua binding, and JSON and XML serialisation.
Stars: ✭ 442 (-5.35%)
Mutual labels:  library
Qsimpleupdater
Updater system for Qt applications
Stars: ✭ 429 (-8.14%)
Mutual labels:  library
Compiler
The Hoa\Compiler library.
Stars: ✭ 458 (-1.93%)
Mutual labels:  library
Pyrlang
Erlang node implemented in Python 3.5+ (Asyncio-based)
Stars: ✭ 436 (-6.64%)
Mutual labels:  library
Curl
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl offers a myriad of powerful features
Stars: ✭ 22,875 (+4798.29%)
Mutual labels:  library
Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+875.16%)
Mutual labels:  library
React Native Blurhash
🖼️ A library to show colorful blurry placeholders while your content loads.
Stars: ✭ 430 (-7.92%)
Mutual labels:  library
Cordova Plugin Whitelist
Apache Cordova plugin whitelist
Stars: ✭ 442 (-5.35%)
Mutual labels:  library
Jsstore
A complete IndexedDB wrapper with SQL like syntax.
Stars: ✭ 430 (-7.92%)
Mutual labels:  library
Chat Api
WhatsApp's Private API
Stars: ✭ 4,251 (+810.28%)
Mutual labels:  library
Cordova Plugin Network Information
Apache Cordova Plugin network-information
Stars: ✭ 429 (-8.14%)
Mutual labels:  library
Lambdahack
Haskell game engine library for roguelike dungeon crawlers; please offer feedback, e.g., after trying out the sample game with the web frontend at
Stars: ✭ 439 (-6%)
Mutual labels:  library
Sleepy Discord
C++ library for the Discord chat client
Stars: ✭ 459 (-1.71%)
Mutual labels:  library
Certificationy
The core library to create tests and certifications
Stars: ✭ 457 (-2.14%)
Mutual labels:  library
Ivi
🔥 Javascript (TypeScript) library for building web user interfaces
Stars: ✭ 445 (-4.71%)
Mutual labels:  library

tempfile

Crate Build Status Build status

A secure, cross-platform, temporary file library for Rust. In addition to creating temporary files, this library also allows users to securely open multiple independent references to the same temporary file (useful for consumer/producer patterns and surprisingly difficult to implement securely).

Documentation

Usage

Minimum required Rust version: 1.40.0

Add this to your Cargo.toml:

[dependencies]
tempfile = "3"

Example

use std::fs::File;
use std::io::{Write, Read, Seek, SeekFrom};

fn main() {
    // Write
    let mut tmpfile: File = tempfile::tempfile().unwrap();
    write!(tmpfile, "Hello World!").unwrap();

    // Seek to start
    tmpfile.seek(SeekFrom::Start(0)).unwrap();

    // Read
    let mut buf = String::new();
    tmpfile.read_to_string(&mut buf).unwrap();
    assert_eq!("Hello World!", buf);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].