1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Update configs for release ready

This commit is contained in:
NGnius (Graham)
2025-04-02 20:59:52 -04:00
parent 69d1bfaee0
commit d5f9a4562d
22 changed files with 156 additions and 38 deletions

View File

@@ -1,7 +1,11 @@
[package]
name = "rc_microtransactions"
version = "0.1.0"
edition = "2021"
version.workspace = true
edition.workspace = true
readme.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
[dependencies]
rocket.workspace = true

View File

@@ -1,8 +1,13 @@
mod robocraft;
#[rocket::get("/")]
fn index() -> &'static str {
"Hello, world!"
fn index() -> String {
let name = env!("CARGO_PKG_NAME");
let version = env!("CARGO_PKG_VERSION");
let authors = env!("CARGO_PKG_AUTHORS");
let license = env!("CARGO_PKG_LICENSE");
let repo = env!("CARGO_PKG_REPOSITORY");
format!("{} {} by [{}]\n{}\n{}", name, version, authors, license, repo)
}
#[rocket::launch]