πŸ¦€Rust

You should not send all your application files to .zip, there are some exceptions, they are:

- File Cargo.lock
- File .gitignore
- Folder target
- Folder .git

For more details on how to Compress your Files according to your Operating System, you can see below

✍ Hosting your bot

This feature needs some basic requirements to be able to be used, please check the requirements here before continuing

Using Rocket

Rocket is a web framework built in rust, currently it only works in the nightly version of rust

rustup override set nightly

Installing Rocket

Consult the official documentation: https://rocket.rs/

Configuring Rocket for DisCloud

Create anrust-toolchain.toml file:

rust-toolchain.toml
[toolchain]
channel = "nightly"

This will instruct rustup to use the nightly version, and download that version if necessary.

discloud.config example for Rocket

discloud.config
ID=subdomino
TYPE=site
MAIN=src/main.rs
RAM=512
AUTORESTART=false
VERSION=latest
APT=tools

Last updated