diff --git a/.gitignore b/.gitignore index bd2bc7e..d1292f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,11 @@ config/default.toml -/data +/data/master.key +/data/db.sqlite + +master.key + +db.sqlite + /systemd **/dist @@ -19,10 +25,6 @@ target # rustc will dump stack traces when hitting an internal compiler error to PWD rustc-ice-*.txt -master.key - -db.sqlite - node_modules/ .node_modules/ built/* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ec376f3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) 2026 whiskers + +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. diff --git a/README.md b/README.md index 6aa0408..505a423 100644 --- a/README.md +++ b/README.md @@ -121,16 +121,16 @@ cg.cx is organized as a **Rust workspace** with 10 focused crates. This modular ## Tech Stack -| Layer | Technology | -| ----------------- | ----------------------------------------------------------- | -| **Backend** | Rust (edition 2021), Tokio async runtime | -| **Web Server** | Axum 0.7, Tower HTTP middleware | -| **Telegram Bot** | Teloxide 0.13 | -| **Frontend** | Svelte 5, Vite 5 | -| **Database** | SQLite 3 (WAL mode), `rusqlite` + `rusqlite_migration` | +| Layer | Technology | +| ----------------- | --------------------------------------------------------------------------- | +| **Backend** | Rust (edition 2021), Tokio async runtime | +| **Web Server** | Axum 0.7, Tower HTTP middleware | +| **Telegram Bot** | Teloxide 0.13 | +| **Frontend** | Svelte 5, Vite 5 | +| **Database** | SQLite 3 (WAL mode), `rusqlite` + `rusqlite_migration` | | **Cryptography** | libsodium (via `sodiumoxide`), `aes-kw`, `blake3`, `argon2`, `hmac`, `sha2` | -| **Serialization** | `serde`, `serde_json` | -| **Observability** | `tracing` + `tracing-subscriber` | +| **Serialization** | `serde`, `serde_json` | +| **Observability** | `tracing` + `tracing-subscriber` | --- diff --git a/data/blacklisted_ids.json b/data/blacklisted_ids.json new file mode 100644 index 0000000..ed524a7 --- /dev/null +++ b/data/blacklisted_ids.json @@ -0,0 +1 @@ +{"ids": [], "updated_at": ""} diff --git a/data/whitelisted_ids.json b/data/whitelisted_ids.json new file mode 100644 index 0000000..ed524a7 --- /dev/null +++ b/data/whitelisted_ids.json @@ -0,0 +1 @@ +{"ids": [], "updated_at": ""}