Skip to content

Commit

Permalink
Split library and binary into separate crates.
Browse files Browse the repository at this point in the history
This allows the library to not depend on `clap`.
  • Loading branch information
azriel91 authored and nadavrot committed Oct 29, 2022
1 parent 7b9c088 commit 15df2df
Show file tree
Hide file tree
Showing 36 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[package]
name = "layout"
name = "layout-cli"
version = "0.1.0"
authors = ["Nadav Rotem <[email protected]>"]
edition = "2018"
description = "A graph visualization program"
keywords = ["visualization", "svg", "render", "dot", "graphviz"]

# If you are looking for the library, see the `layout` directory in this repository.

[[bin]]
name = "layout"
test = false
Expand All @@ -16,9 +18,11 @@ name = "run"
test = false
bench = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = ["layout"]

[dependencies]
layout = { path = "layout" }
clap = "4.0.18"
log = "0.4.17"
env_logger = "0.9"
10 changes: 10 additions & 0 deletions layout/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "layout"
version = "0.1.0"
authors = ["Nadav Rotem <[email protected]>"]
edition = "2018"
description = "A graph visualization program"
keywords = ["visualization", "svg", "render", "dot", "graphviz"]

[dependencies]
log = "0.4.17"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 15df2df

Please sign in to comment.