code-executor 2.7.0

A library designed for the backend of competitive programming platforms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;
use std::path::PathBuf;

use uuid::Uuid;

pub fn generate_unique_path() -> PathBuf {
    let id = Uuid::new_v4().to_string();
    let mut path = env::temp_dir();
    path.push(id);

    path
}