summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2025-12-07 22:17:00 -0500
committerMica White <botahamec@outlook.com>2025-12-07 22:17:00 -0500
commitf15fc62034cab450dc8b6ccd39bfb49b6b205005 (patch)
treef9dd488649b0e0e7cfd6e7fe20ab6d634941b750
parent56ea63502be5ae1ec03d82e98f25217c1224a339 (diff)
Fix the theme
-rw-r--r--Cargo.toml6
-rw-r--r--merged.profdatabin0 -> 3979992 bytes
-rw-r--r--src/main.rs5
3 files changed, 9 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 1bc0f81..c89ae45 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,3 +5,9 @@ edition = "2024"
[dependencies]
syntect = "5"
+
+[profile.release]
+strip = true
+lto = true
+panic = "unwind"
+codegen-units = 1
diff --git a/merged.profdata b/merged.profdata
new file mode 100644
index 0000000..458e7da
--- /dev/null
+++ b/merged.profdata
Binary files differ
diff --git a/src/main.rs b/src/main.rs
index cca25e5..50bc5a9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,7 +8,8 @@ use syntect::parsing::SyntaxSet;
fn main() {
let syntax_set = SyntaxSet::load_defaults_newlines();
let theme_set = ThemeSet::load_defaults();
- let theme = &theme_set.themes["base16-ocean.dark"];
+ let mut theme = theme_set.themes["InspiredGitHub"].clone();
+ theme.settings.background = None;
let filename = std::env::args().nth(1).map(PathBuf::from);
let extension = filename
@@ -26,6 +27,6 @@ fn main() {
};
let highlighted_file =
- highlighted_html_for_string(&file, &syntax_set, syntax, theme).unwrap_or(file);
+ highlighted_html_for_string(&file, &syntax_set, syntax, &theme).unwrap_or(file);
println!("{highlighted_file}");
}