Skip to content

Commit

Permalink
Take advantage of workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Feb 2, 2024
1 parent 2e509f4 commit 3bf5aa8
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 47 deletions.
13 changes: 2 additions & 11 deletions Cargo.lock

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

14 changes: 14 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
[workspace]
resolver = "2"
members = ["runtime", "shell", "stdlib", "syntax"]
default-members = ["shell"]

[workspace.package]
version = "0.2.0"
authors = ["Stephen M. Coakley <[email protected]>"]
license = "MIT"
edition = "2021"

# Dependency versions used by multiple crates.
[workspace.dependencies]
log = "0.4"
scopeguard = "1.2"
serde = "1"
tokio = "1.2"
17 changes: 8 additions & 9 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
[package]
name = "riptide-runtime"
version = "0.2.0"
authors = ["Stephen M. Coakley <[email protected]>"]
description = "The Riptide programming language interpreter"
edition = "2021"
rust-version = "1.70.0"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
async-recursion = "1.0"
bstr = "1.9"
directories = "3.0"
futures = "0.3"
log = "0.4"
log.workspace = true
regex = "1.10"
scopeguard = "1.2"
riptide-syntax.path = "../syntax"
scopeguard.workspace = true
tokio-pipe = "0.2"

[dependencies.gc]
Expand All @@ -24,11 +26,8 @@ features = ["derive"]
version = "0.27"
features = ["fs", "process"]

[dependencies.riptide-syntax]
path = "../syntax"

[dependencies.tokio]
version = "1.2"
workspace = true
features = [
"fs",
"io-std",
Expand Down
23 changes: 10 additions & 13 deletions shell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
[package]
name = "riptide-shell"
version = "0.2.0"
authors = ["Stephen M. Coakley <[email protected]>"]
description = "The Riptide programming language interpreter"
edition = "2021"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
clipboard = "0.5"
directories = "3.0"
exitcode = "1.1"
flume = "0.11"
futures = "0.3"
scopeguard = "1.2"
riptide-runtime.path = "../runtime"
riptide-stdlib.path = "../stdlib"
scopeguard.workspace = true
syslog = "6"
toml = "0.8"
yansi = "0.5"
Expand All @@ -21,29 +24,23 @@ version = "4.4"
features = ["derive"]

[dependencies.log]
version = "0.4"
workspace = true
features = ["std"]

[dependencies.log-panics]
version = "2.1"
features = ["with-backtrace"]

[dependencies.riptide-runtime]
path = "../runtime"

[dependencies.riptide-stdlib]
path = "../stdlib"

[dependencies.rusqlite]
version = "0.25"
features = ["bundled"]

[dependencies.serde]
version = "1"
workspace = true
features = ["derive"]

[dependencies.tokio]
version = "1.2"
workspace = true
features = [
"io-util",
"process",
Expand Down
15 changes: 7 additions & 8 deletions stdlib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
[package]
name = "riptide-stdlib"
version = "0.2.0"
authors = ["Stephen M. Coakley <[email protected]>"]
description = "The Riptide standard library"
edition = "2021"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
glob = "0.3"
log = "0.4"

[dependencies.riptide-runtime]
path = "../runtime"
log.workspace = true
riptide-runtime.path = "../runtime"

[dependencies.tokio]
version = "1.2"
workspace = true
features = [
"fs",
"io-util",
Expand Down
13 changes: 7 additions & 6 deletions syntax/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[package]
name = "riptide-syntax"
version = "0.2.0"
authors = ["Stephen M. Coakley <[email protected]>"]
description = "The Riptide language parser"
edition = "2021"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true

[dependencies]
pest = "2.7"
Expand All @@ -13,11 +14,11 @@ regex-syntax = "0.8"
[dev-dependencies]
difference = "2.0"
glob = "0.3"
log = "0.4"
log.workspace = true
stderrlog = "0.6"
test-generator = "0.3"
toml = "0.5"
toml = "0.8"

[dev-dependencies.serde]
version = "1"
workspace = true
features = ["derive"]

0 comments on commit 3bf5aa8

Please sign in to comment.