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

Petgraph #29

Merged
merged 15 commits into from
Jun 2, 2024
Merged
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
846 changes: 527 additions & 319 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
name = "plox"
version = "0.3.1"
version = "0.4.0"
authors = ["Moritz Baron"]
description = "PLOX - Plugin Load Order eXpert. PLOX is a tool for analyzing and sorting your plugin load order. Supports Morrowind, OpenMW and Cyberpunk"
documentation = ""
Expand All @@ -26,10 +26,10 @@ documentation.workspace = true
[dependencies]
openmw-cfg = "0.5" # move to feature flag
clap = { version = "4.1", features = ["derive"] }
toposort-scc = "0.5"
petgraph = "0.6"
rust-ini = "0.21"
regex = "1.10"
reqwest = { version = "0.11", features = ["blocking", "json"] }
reqwest = { version = "0.12", features = ["blocking", "json"] }
serde_json = "1.0"
seahash = "4.1"
filetime = "0.2"
Expand All @@ -45,6 +45,7 @@ serde = { workspace = true }
pretty_assertions = "1.3"
rand = "0.8"


[profile.release]
opt-level = 2 # fast and small wasm

Expand Down
8 changes: 8 additions & 0 deletions _clean.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off

cd ./tmp

:: delete all *.dot files in ./tmp
del /F /Q *.dot
:: delete all *.png files in ./tmp
del /F /Q *.png
23 changes: 23 additions & 0 deletions _graph.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off

:: run clean
call _clean.bat

cd ./tmp

sccmap ./scc_base/graphviz.dot -o ./scc_base.dot
dot -Tpng ./scc_base.dot -O

echo "Graphs generated for base"

sccmap ./scc_user/graphviz.dot -o ./scc_user.dot
dot -Tpng ./scc_user.dot -O

echo "Graphs generated for user"

sccmap ./scc_full/graphviz.dot -o ./scc_full.dot
dot -Tpng ./scc_full.dot -O

echo "Graphs generated for full"

pause
Loading
Loading