Update configs for release ready

This commit is contained in:
NGnius (Graham) committed 2025-04-02 20:59:52 -04:00
1 parent 69d1bfaee0
commit d5f9a4562d
22 files changed
+156 -38

No files matched your search

+7 -2
View File
@@ -6,8 +6,13 @@ mod cardlife;
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]