adding cargo-flamegraph and removing unneccessary deps

This commit is contained in:
Chris Cochrun 2025-03-26 09:33:58 -05:00
parent d2e456eae4
commit 427059107a
3 changed files with 22 additions and 19 deletions

View file

@ -29,15 +29,29 @@
"rustfmt" "rustfmt"
]) ])
rust-analyzer rust-analyzer
gtk-layer-shell
gtk3
vulkan-loader vulkan-loader
wayland wayland
wayland-protocols wayland-protocols
libxkbcommon libxkbcommon
pkg-config pkg-config
];
bi = with pkgs; [
gcc
stdenv
gnumake
gdb
cmake
makeWrapper
vulkan-headers
vulkan-loader
vulkan-tools
libGL
cargo-flamegraph
fontconfig
glib
alsa-lib alsa-lib
gst_all_1.gst-devtools
gst_all_1.gst-libav gst_all_1.gst-libav
gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-good gst_all_1.gst-plugins-good
@ -46,22 +60,8 @@
gst_all_1.gst-plugins-rs gst_all_1.gst-plugins-rs
gst_all_1.gst-vaapi gst_all_1.gst-vaapi
gst_all_1.gstreamer gst_all_1.gstreamer
gst_all_1.gstreamermm
];
bi = with pkgs; [
gcc
stdenv
gnumake
gdb
makeWrapper
vulkan-headers
vulkan-loader
vulkan-tools
libGL
# podofo # podofo
mpv # mpv
ffmpeg-full ffmpeg-full
# yt-dlp # yt-dlp

View file

@ -11,6 +11,8 @@ clean:
RUST_LOG=debug cargo clean RUST_LOG=debug cargo clean
test: test:
RUST_LOG=debug cargo test --benches --tests --all-features -- --nocapture RUST_LOG=debug cargo test --benches --tests --all-features -- --nocapture
profile:
cargo flamegraph --image-width 4000 -- {{ui}} {{file}}
alias r := run alias r := run
alias c := clean alias c := clean

View file

@ -1,7 +1,8 @@
(slide :background (image :source "~/pics/frodo.jpg" :fit fill) (slide :background (image :source "~/pics/frodo.jpg" :fit fill)
(text "This is frodo" :font-size 70)) (text "This is frodo" :font-size 70))
(slide (video :source "~/vids/test/camprules2024.mp4" :fit contain)) (slide (video :source "~/vids/test/camprules2024.mp4" :fit contain))
(slide (video :source "~/vids/The magic of Rust's type system.mkv" :fit contain)) (slide (video :source "~/vids/The Basics of Hanging Drywall.mkv" :fit contain))
(slide (video :source "~/vids/Ladybird Is The Future Of Web Browsers.webm" :fit contain))
(song :id 7 :author "North Point Worship" (song :id 7 :author "North Point Worship"
:font "Quicksand Bold" :font-size 60 :font "Quicksand Bold" :font-size 60
:title "Death Was Arrested" :title "Death Was Arrested"