feat: Added changelog

This commit is contained in:
2026-09-24 09:07:31 -04:00
parent eb1d0ba0fd
commit 5be8e31483
11 changed files with 267 additions and 1 deletions
+41
View File
@@ -58,6 +58,7 @@ dependencies = [
"libc",
"open",
"ping-async",
"pulldown-cmark",
"reqwest 0.12.28",
"serde",
"serde_json",
@@ -1367,6 +1368,15 @@ dependencies = [
"version_check",
]
[[package]]
name = "getopts"
version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
dependencies = [
"unicode-width",
]
[[package]]
name = "getrandom"
version = "0.2.17"
@@ -3006,6 +3016,25 @@ dependencies = [
"unicode-ident",
]
[[package]]
name = "pulldown-cmark"
version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e"
dependencies = [
"bitflags 2.13.2",
"getopts",
"memchr",
"pulldown-cmark-escape",
"unicase",
]
[[package]]
name = "pulldown-cmark-escape"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"
[[package]]
name = "quick-xml"
version = "0.42.0"
@@ -4738,6 +4767,12 @@ dependencies = [
"unic-common",
]
[[package]]
name = "unicase"
version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"
[[package]]
name = "unicode-ident"
version = "1.0.26"
@@ -4750,6 +4785,12 @@ version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
[[package]]
name = "unicode-width"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
[[package]]
name = "untrusted"
version = "0.9.0"
+1
View File
@@ -33,6 +33,7 @@ csv = "1"
open = "5.4.4"
reqwest = { version = "0.12", features = ["json"] }
libc = "0.2.189"
pulldown-cmark = { version = "0.13.4", features = ["html"] }
[target.'cfg(windows)'.dependencies]
is_elevated = "0.1"
+16
View File
@@ -0,0 +1,16 @@
use pulldown_cmark::{Options, Parser, html};
const CHANGELOG_MD: &str = include_str!("../../../CHANGELOG.md");
#[tauri::command]
pub async fn get_changelog() -> Result<String, String> {
let options = Options::ENABLE_HEADING_ATTRIBUTES
| Options::ENABLE_STRIKETHROUGH
| Options::ENABLE_TABLES;
let parser = Parser::new_ext(CHANGELOG_MD, options);
let mut html_output = String::new();
html::push_html(&mut html_output, parser);
Ok(html_output)
}
+1
View File
@@ -1,4 +1,5 @@
pub mod actions;
pub mod changelog;
pub mod export;
pub mod monitor;
pub mod nmap;
+1
View File
@@ -31,6 +31,7 @@ pub fn run() {
commands::monitor::monitor_stop,
commands::updater::check_for_update,
commands::actions::check_privileges,
commands::changelog::get_changelog,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
+2 -1
View File
@@ -10,7 +10,7 @@
"withGlobalTauri": true,
"windows": [
{
"title": "argus",
"title": "Argus",
"width": 800,
"height": 600
}
@@ -22,6 +22,7 @@
"bundle": {
"active": true,
"targets": "all",
"copyright": "Copyright \u00A9 2026 James Brotosky. Licensed under AGPLv3. All rights reserved.",
"windows": {
"webviewInstallMode": {
"type": "embedBootstrapper"