setting up rocket hello world, readme change, license removal

This commit is contained in:
Christoph J. Scherr 2024-02-08 12:24:24 +01:00
parent acd6d41261
commit 2140577b3f
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
4 changed files with 18 additions and 18 deletions

View File

@ -1,16 +1,17 @@
[package]
name = "template"
name = "ganar"
version = "0.1.0"
edition = "2021"
publish = false
authors = ["Christoph J. Scherr <software@cscherr.de>"]
license = "MIT"
description = "No description yet"
description = "ganar"
readme = "README.md"
homepage = "https://git.cscherr.de/PlexSheep/rs-base"
repository = "https://git.cscherr.de/PlexSheep/rs-base"
keywords = ["template"]
homepage = "https://git.cscherr.de/PlexSheep/ganar"
repository = "https://git.cscherr.de/PlexSheep/ganar"
keywords = ["website"]
[dependencies]
rocket = "0.5.0"

View File

@ -1,9 +0,0 @@
MIT License
Copyright (c) 2024 PlexSheep
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,3 +1,3 @@
# rs-base
# ganar2
Base repository for rust projects
Rust webapp that runs www.cscherr.de (eventually)

View File

@ -1,3 +1,11 @@
fn main() {
println!("Hello, world!");
#[macro_use] extern crate rocket;
#[get("/")]
fn index() -> &'static str {
"Hello, world!"
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
}