diff --git a/Cargo.toml b/Cargo.toml index 4bb5221..34bb0d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,9 @@ name = "sup-smsac" version = "0.1.0-beta.1" edition = "2021" license = "MIT OR Apache-2.0" +authors = ["sup39 "] repository = "https://github.com/sup39/sup-smsac" +description = "A tool to support Super Mario Sunshine academic research and TAS." [dependencies] sup-smsac-derive = { path = "./sup-smsac-derive" } diff --git a/README.md b/README.md index 09e2141..3df4c1a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # sup-smsac A tool to support Super Mario Sunshine academic research and TAS. -It is written in Rust (backend) and JavaScript (frontend), and uses HTTP + WebSocket to communicate between backend and frontend. + +It is written in Rust (backend) and JavaScript (frontend), +and uses HTTP + WebSocket to communicate between backend and frontend. + It only contains a simple Object Viewer at the moment. ## Usage diff --git a/src/main.rs b/src/main.rs index 0a49525..57c006a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,13 @@ use std::path::PathBuf; use clap::Parser; #[derive(Parser)] +#[command(author, version, about)] +#[command(help_template = "\ +{before-help{name} v{version} +{usage-heading} {usage} + +{all-args}{after-help} +")] struct Args { #[arg(long, default_value_t = IpAddr::V4(std::net::Ipv4Addr::LOCALHOST))] host: IpAddr, diff --git a/sup-smsac-derive/Cargo.toml b/sup-smsac-derive/Cargo.toml index df397de..f85f07f 100644 --- a/sup-smsac-derive/Cargo.toml +++ b/sup-smsac-derive/Cargo.toml @@ -3,6 +3,7 @@ name = "sup-smsac-derive" version = "0.1.0-beta.1" edition = "2021" license = "MIT OR Apache-2.0" +authors = ["sup39 "] repository = "https://github.com/sup39/sup-smsac" [lib] diff --git a/www/api.js b/www/api.js index d4f76dd..7aab75e 100644 --- a/www/api.js +++ b/www/api.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 sup39 +// SPDX-License-Identifier: MIT OR Apache-2.0 + // @ts-check /** * @typedef {number|number[]} ReqAddr diff --git a/www/index.css b/www/index.css index 8932f9b..2e1741d 100644 --- a/www/index.css +++ b/www/index.css @@ -1,3 +1,8 @@ +/** + * SPDX-FileCopyrightText: 2023 sup39 + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ + :root { --bg: #fff; --fg: #000; diff --git a/www/index.js b/www/index.js index a42e5e5..2b7840d 100644 --- a/www/index.js +++ b/www/index.js @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2023 sup39 +// SPDX-License-Identifier: MIT OR Apache-2.0 + // @ts-check /** * @typedef {{addr: number, cls: string, name: string, count: number}} Manager