libmake 0.2.6

A code generator to reduce repetitive tasks and build high-quality Rust libraries and applications, by providing a simple interface to create projects, generate code, and manage dependencies.
Documentation
// Copyright notice and licensing information.
// These lines indicate the copyright of the software and its licensing terms.
// SPDX-License-Identifier: Apache-2.0 OR MIT indicates dual licensing under Apache 2.0 or MIT licenses.
// Copyright © 2023-2024 LibMake. All rights reserved.

// Import the Uuid type from the uuid crate
use uuid::Uuid;

/// Generates a unique string.
///
/// This function generates a new unique string using UUID version 4 (random).
///
/// # Returns
///
/// A string containing the generated unique identifier.
///
/// # Examples
///
/// ```
/// use libmake::utilities::uuid::generate_unique_string;
///
/// let unique_string = generate_unique_string();
/// println!("Unique string: {}", unique_string);
/// ```
pub fn generate_unique_string() -> String {
    // Generate a new UUID v4 (random) and convert it to a string
    Uuid::new_v4().to_string()
}