start_gaming

Crates.iostart_gaming
lib.rsstart_gaming
version0.1.2
sourcesrc
created_at2024-10-13 03:50:23.949974
updated_at2024-10-13 07:17:32.427898
descriptionJust for fun
homepagehttps://github.com/HuaGu-Dragon/start_gaming
repositoryhttps://github.com/HuaGu-Dragon/start_gaming
max_upload_size
id1407055
size15,122
(HuaGu-Dragon)

documentation

https://docs.rs/start_gaming

README

Start_gaming

Just for fun

Warming

This function is only available on Windows.

Documentation

https://docs.rs/start_gaming

Inspiration

from:

https://github.com/Charley-xiao/nogenshin and Rewrite It In Rust

How to use

add this:

[dependencies]
start_gaming = "0.1.2"
game_start_macro = "0.1.0"

to your workspace.

To download the dependencies for your Rust project, run the following command in the terminal:

cargo build

This command will read the Cargo.toml file and download and compile all the listed dependencies.

Example Code

use game_start_macro::start_game;

#[start_game(WutheringWaves)]
fn main() {
    println!("Hello, world!");
    add(1, 1);
    panic!("This is a panic!");
}

#[start_game(Genshin)]
fn add(a: i32, b: i32) -> i32 {
    a + b
}

If the method triggers panic, then he will open Genshin Impact or Wuthering Waves. Just aim to relax you.

Errors

  This function will return an error if the game is not found in the registry.

Panics

  This function will return an PANIC if the game executable is not found.

Safety

  This function is not marked as unsafe, but it is not safe to use in a concurrent environment.
  It is just for fun.
Commit count: 14

cargo fmt