Skip to content

Commit

Permalink
Merge pull request #60 from Root-Branch/58-add-cardamon-init-command
Browse files Browse the repository at this point in the history
- Add card run init command
  • Loading branch information
ohuu authored Jul 26, 2024
2 parents 13c6bac + 73b6bab commit 0526d3f
Show file tree
Hide file tree
Showing 15 changed files with 575 additions and 213 deletions.
34 changes: 19 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name = "cardamon"
version = "0.1.0"
edition = "2021"
authors = [
"Oliver Winks <oliver@paperplane.software>",
"William Kimbell <will@kimbell.uk>",
"Oliver Winks <oliver@paperplane.software>",
"William Kimbell <will@kimbell.uk>",
]
description = "Cardamon is a tool to help development teams measure the power consumption and carbon emissions of their software."
# Filled out by @ohuu please
Expand All @@ -13,11 +13,11 @@ repository = "https://github.com/Root-Branch/cardamon"
documentation = "https://docs.rs/cardamon"
homepage = "https://github.com/Root-Branch/cardamon"
keywords = [
"carbon-emissions",
"co2-monitoring",
"process-monitoring",
"environmental",
"sustainability",
"carbon-emissions",
"co2-monitoring",
"process-monitoring",
"environmental",
"sustainability",
]
categories = ["Command line utilities", "Science"]
readme = "README.md"
Expand All @@ -44,28 +44,32 @@ serde_json = "1.0.117"
tokio = { version = "1.37.0", features = ["full"] }
tokio-util = "0.7.11"
itertools = "0.12.0"
spinners = "4.1.1"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = [
"registry",
"env-filter",
"registry",
"env-filter",
] }
tracing-bunyan-formatter = "0.3.9"
toml = "0.8.12"
sqlx = { version = "0.7.4", features = [
"runtime-tokio",
"tls-rustls",
"sqlite",
"migrate",
"runtime-tokio",
"tls-rustls",
"sqlite",
"migrate",
] }
reqwest = { version = "0.12.4", features = ["json"] }
sysinfo = "0.30.12"
bollard = "0.16.1"
futures-util = "0.3.30"
lazy_static = "1.4.0"
uuid = { version = "1.8.0", features = ["v4"] }
subprocess = "0.2.9"
tracing-log = "0.2.0"
shlex = "1.3.0"
bytes = "1.6.0"
scraper = "0.19.0"
url = "2.5.2"
regex = "1.10.5"
tar = "0.4.41"
csv = "1.3.0"
strsim = "0.11.1"
colored = "2.1.0"
27 changes: 0 additions & 27 deletions cardamon.unix.toml

This file was deleted.

27 changes: 0 additions & 27 deletions cardamon.win.toml

This file was deleted.

29 changes: 0 additions & 29 deletions examples/cardamon.example.toml

This file was deleted.

5 changes: 4 additions & 1 deletion fixtures/cardamon.missing_process.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.missing_scenario.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.multiple_iterations.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.multiple_scenarios.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.success.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
Loading

0 comments on commit 0526d3f

Please sign in to comment.