Anticimex scripts that I wrote and what could have been if more time was given to me
-
Install Rust and Cargo: Follow the instructions at rustup.rs to install Rust and Cargo.
-
Install Dependencies: Navigate to the project directory and run:
cargo build
-
Build the Application: Run the following command to build the application:
cargo build --release
-
Run the Application: Execute the built application:
./target/release/rust_frontend
-
Run the Python Script: Ensure you have Python installed and run the Python script as needed:
python3 d:\\vicky software\\bkp\\bkp\\automation\\server_upload_smb.py
-
Install Rust and Cargo from rust-lang.org.
-
Install the required Rust toolchains for cross-compilation:
rustup target add x86_64-unknown-linux-gnu rustup target add x86_64-apple-darwin
-
For Linux builds:
- On Windows, install a cross-compilation tool like
mingw-w64orgccfor Linux. - On macOS, you can use
brew install gcc.
- On Windows, install a cross-compilation tool like
-
For macOS builds:
- On Windows, you need a macOS cross-compiler like
osxcross. - On Linux, you can use
osxcrossorclang.
- On Windows, you need a macOS cross-compiler like
Run the following commands to build the application for different platforms:
cargo build --releaseThe executable will be located in target/release/rust_frontend.exe.
cargo build --release --target x86_64-unknown-linux-gnuThe executable will be located in target/x86_64-unknown-linux-gnu/release/rust_frontend.
cargo build --release --target x86_64-apple-darwinThe executable will be located in target/x86_64-apple-darwin/release/rust_frontend.
After building the application, run the executable on the respective platform:
- Windows: Double-click the
.exefile or run it from the command line. - Linux/macOS: Run the executable from the terminal:
./rust_frontend
- Ensure that the Python script (
server_upload_smb.py) is accessible and properly configured. - For macOS, you may need to sign the executable or allow it to run in your system preferences.