Skip to content

Commit

Permalink
Merge pull request #348 from koto-lang/improve-rc-build-selection
Browse files Browse the repository at this point in the history
Simplify Rc build variant selection
  • Loading branch information
irh authored Jun 18, 2024
2 parents 8712f14 + a0ca733 commit e12572d
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 76 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

3 changes: 3 additions & 0 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ pulldown-cmark = { workspace = true }
rustyline = { workspace = true }
textwrap = { workspace = true }
unicode-width = { workspace = true }

[dev-dependencies]
test_bin = { workspace = true }
File renamed without changes.
5 changes: 2 additions & 3 deletions crates/koto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_bytecode/arc", "koto_runtime/arc", "koto_parser/arc"]
rc = ["koto_bytecode/rc", "koto_runtime/rc", "koto_parser/rc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
koto_bytecode = { path = "../bytecode", version = "^0.15.0", default-features = false }
Expand All @@ -29,7 +29,6 @@ koto_test_utils = { path = "../test_utils" }
anyhow = { workspace = true }
criterion = { workspace = true }
mimalloc = { workspace = true }
test_bin = { workspace = true }

[[bench]]
name = "koto_benchmark"
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ chrono = { workspace = true, features = ["wasmbind"] }
instant = { workspace = true, features = ["wasm-bindgen"] }

[dev-dependencies]
koto_test_utils = { path = "../test_utils", default-features = false }
koto_test_utils = { path = "../test_utils" }
test-case = { workspace = true }
5 changes: 0 additions & 5 deletions crates/serialize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
serde = { workspace = true }

Expand Down
5 changes: 0 additions & 5 deletions crates/test_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
itertools = { workspace = true }
pulldown-cmark = { workspace = true }
Expand Down
13 changes: 8 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ test *args:
cargo test {{args}}

test_rc *args:
cargo test --no-default-features --features rc \
cargo test --tests --no-default-features --features rc \
-p koto_parser \
-p koto_bytecode \
-p koto_runtime \
-p koto \
-p lib_tests \
{{args}}

Expand All @@ -52,14 +55,14 @@ test_koto:
test_libs:
cargo test --test lib_tests

test_parser:
cargo test --package koto_lexer --package koto_parser
test_parser *args:
cargo test -p koto_lexer -p koto_parser {{args}}

test_release *args:
just test --release {{args}}

test_runtime:
cargo test --package koto_runtime
test_runtime *args:
cargo test -p koto_runtime -p koto_bytecode {{args}}

wasm:
cd crates/koto/examples/wasm && wasm-pack test --node
Expand Down
7 changes: 1 addition & 6 deletions libs/color/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
palette = { workspace = true }

Expand All @@ -23,4 +18,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
7 changes: 1 addition & 6 deletions libs/geometry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
nannou_core = { workspace = true }

Expand All @@ -23,4 +18,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
7 changes: 1 addition & 6 deletions libs/json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
serde_json = { workspace = true }

Expand All @@ -28,4 +23,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
16 changes: 8 additions & 8 deletions libs/lib_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ rc = ["koto/rc"]

[dev-dependencies]
koto = { path = "../../crates/koto", version = "^0.15.0", default-features = false }
koto_color = { path = "../color", version = "^0.15.0", default-features = false }
koto_geometry = { path = "../geometry", version = "^0.15.0", default-features = false }
koto_json = { path = "../json", version = "^0.15.0", default-features = false }
koto_random = { path = "../random", version = "^0.15.0", default-features = false }
koto_regex = { path = "../regex", version = "^0.15.0", default-features = false }
koto_tempfile = { path = "../tempfile", version = "^0.15.0", default-features = false }
koto_toml = { path = "../toml", version = "^0.15.0", default-features = false }
koto_yaml = { path = "../yaml", version = "^0.15.0", default-features = false }
koto_color = { path = "../color", version = "^0.15.0" }
koto_geometry = { path = "../geometry", version = "^0.15.0" }
koto_json = { path = "../json", version = "^0.15.0" }
koto_random = { path = "../random", version = "^0.15.0" }
koto_regex = { path = "../regex", version = "^0.15.0" }
koto_tempfile = { path = "../tempfile", version = "^0.15.0" }
koto_toml = { path = "../toml", version = "^0.15.0" }
koto_yaml = { path = "../yaml", version = "^0.15.0" }
7 changes: 1 addition & 6 deletions libs/random/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
koto_derive = { path = "../../crates/derive", version = "^0.15.0" }

Expand All @@ -30,4 +25,4 @@ default-features = false
getrandom = { workspace = true }

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
7 changes: 1 addition & 6 deletions libs/regex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
regex = { workspace = true }

Expand All @@ -23,4 +18,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
7 changes: 1 addition & 6 deletions libs/tempfile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
tempfile = { workspace = true }

Expand All @@ -23,4 +18,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
7 changes: 1 addition & 6 deletions libs/toml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
toml = { workspace = true }

Expand All @@ -28,4 +23,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }
7 changes: 1 addition & 6 deletions libs/yaml/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ homepage = "https://koto.dev"
repository = "https://github.com/koto-lang/koto"
keywords = ["scripting", "language", "koto", "yaml"]

[features]
default = ["arc"]
arc = ["koto_runtime/arc"]
rc = ["koto_runtime/rc"]

[dependencies]
serde_yaml = { workspace = true }

Expand All @@ -28,4 +23,4 @@ version = "^0.15.0"
default-features = false

[dev-dependencies]
koto_test_utils = { path = "../../crates/test_utils", default-features = false }
koto_test_utils = { path = "../../crates/test_utils" }

0 comments on commit e12572d

Please sign in to comment.