Skip to content

Latest commit

 

History

History
127 lines (85 loc) · 1.58 KB

source-guide.md

File metadata and controls

127 lines (85 loc) · 1.58 KB

1. Install Rust

On Linux/macOS :

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"

On Windows : Download the installer et suivez les instructions.


2. Install system dependencies

Debian/Ubuntu :

sudo apt-get update && sudo apt-get install -y \
    build-essential \
    cmake \
    pkg-config \
    libssl-dev \
    git

Fedora :

sudo dnf install gcc cmake pkgconfig openssl-devel git

3. Clone the repository

git clone https://github.com/UwUDev/ygege.git
cd ygege

4. Compile the application

Development mode (debugging) :

cargo build

Production mode (optimized) :

cargo build --release

5. Run the application

**Debug version ** :

./target/debug/ygege --help

Optimized version :

./target/release/ygege --help

Required configuration

Make sure your config.json contains valid YGG credentials :

{
    "username": "your_ygg_username",
    "password": "your_ygg_password",
    "bind_ip": "0.0.0.0",
    "bind_port": 8715,
    "log_level": "debug"
}

Bonus: UPX compression (optional)

  1. Install UPX :
sudo apt-get install upx-ucl  # Debian/Ubuntu
  1. Compress the binary :
upx --best --lzma ./target/release/ygege

Common troubleshooting

Missing library error :

sudo apt-get install libssl3

Update Rust :

rustup update

Project clean-up :

cargo clean