Skip to content

Commit

Permalink
[CI/CD] Fix crates.io deployment (#75)
Browse files Browse the repository at this point in the history
* [Cargo.toml] specify graphviz_parser version

`cargo publish` requires a version although the dependency is optional and the feature is not activated

* [README] added badge
  • Loading branch information
mxsph committed Aug 16, 2022
1 parent 2cfbe8e commit e83d1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ itertools = "0.10.3"
rand = "0.8.5"
petgraph = "0.6.2"
clap = {version = "3.2.16", features = ["derive"], optional = true}
graphviz_parser = {git = "https://github.com/saresend/dotfile-parser", rev = "2df14b311f16a72a2d13bc777c2754aac79f97b0", optional = true}
graphviz_parser = {git = "https://github.com/saresend/dotfile-parser", rev = "2df14b311f16a72a2d13bc777c2754aac79f97b0", version = "0.1.0", optional = true}

[features]
cli = ["dep:clap", "dep:graphviz_parser"]
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![Coverage Status](https://coveralls.io/repos/github/thm-mni-ii/graph-algo-ptas/badge.svg?branch=main)](https://coveralls.io/github/thm-mni-ii/graph-algo-ptas?branch=main)
[![Docs](https://img.shields.io/github/workflow/status/thm-mni-ii/graph-algo-ptas/Pages/main?label=Docs&logo=Github)](https://thm-mni-ii.github.io/graph-algo-ptas/graph_algo_ptas/)
[![Benchmark](https://img.shields.io/github/workflow/status/thm-mni-ii/graph-algo-ptas/Pages/main?label=Benchmark&logo=Github)](https://thm-mni-ii.github.io/graph-algo-ptas/benchmark/report/)
[![Crates.io](https://img.shields.io/crates/v/graph-algo-ptas)](https://crates.io/crates/graph-algo-ptas)

</div>

Expand Down Expand Up @@ -53,7 +54,7 @@ OPTIONS:
-V, --version Print version information

SUBCOMMANDS:
embed Generates an embeding for the graph
embed Generates an embedding for the graph
help Print this message or the help of the given subcommand(s)
independent-set Calculates Maximal Independent Set (Default)
print Prints the generated/input graph
Expand Down

0 comments on commit e83d1fc

Please sign in to comment.