Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap: add support for kernel-gpu-2404 #20

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
1 change: 1 addition & 0 deletions component-monitor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
326 changes: 326 additions & 0 deletions component-monitor/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions component-monitor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "component-monitor"
version = "0.1.0"
edition = "2021"

[dependencies]
clap = { version = "4", default-features = false, features = ["derive", "env", "help", "std", "usage"] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little surprised that the color, error-context and suggestions features are absent, is this for compatibility? Personally I'm a sucker for pretty terminal applications :D (have you also considered the wrap_help feature?) I see the rest of the dependencies deliberately don't have their default features enabled so I suspect this is all intentional

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really it's just for keeping it tight. It's not really a CLI application, just an internal service.

I dropped default_features across the board b/c I dislike things creeping up on me, is all ;)

And Innes warned me about nix being heavy, so that's probably why ;)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this sounds really good, thanks for the clarification!

exitcode = { version = "1", default-features = false }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this dependency can be safely dropped, it looks like it's just being used to get exitcode::OK, which I think can be equivalently expressed using std::process::ExitCode::SUCCESS

log = { version = "0.4", default-features = false }
nix = { version = "0.29", default-features = false, features = ["inotify"] }
signal-hook = { version = "0.3", default-features = false, features = ["iterator"] }
systemd-journal-logger = { version = "2", default-features = false }
walkdir = { version = "2", default-features = false }
Loading