Skip to content

Commit

Permalink
deps: Update PDKs. (#1794)
Browse files Browse the repository at this point in the history
* First pass.

* Remove serde_yaml.

* Update features.

* chore: Release

* Update tests.
  • Loading branch information
milesj committed Jan 25, 2025
1 parent 9cf9535 commit 12d6f2e
Show file tree
Hide file tree
Showing 24 changed files with 62 additions and 76 deletions.
41 changes: 11 additions & 30 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ serial_test = "3.2.0"
semver = "1.0.25"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.137"
serde_yaml = "0.9.34"
serde_yml = "0.0.12"
sha2 = "0.10.8"
starbase = { version = "0.9.9" }
starbase_archive = { version = "0.9.4", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion crates/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ starbase = { workspace = true }
starbase_events = { workspace = true }
starbase_shell = { workspace = true }
starbase_styles = { workspace = true }
starbase_utils = { workspace = true }
starbase_utils = { workspace = true, features = ["editor-config"] }
system_env = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/tests/run_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,11 @@ mod hashing {
// Hashes change because `.moon/workspace.yml` is different from `walk_strategy`
assert_eq!(
hash_vcs,
"3b3d2d556cfc82c7834975dbed40741e27541a30244dfdc4835edd9503539d55"
"2b8160e1fae996d3fcd1cf4ce888a7888a0e08d7b6d9d9f2adfecc356e86040b"
);
assert_eq!(
hash_glob,
"59ec46f239f4ad40e2bea9fb0cb26f69b55b985b027845e40f41db087e842f38"
"78edc25dadbeae8b2d41073611c686ead7f1c3690b887c45822faa4310cfb573"
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ source: crates/cli/tests/run_test.rs
expression: "[h1, h2, extract_hash_from_run(sandbox.path(), \"outputs:asDep\"),\nextract_hash_from_run(sandbox.path(), \"outputs:withDeps\")]"
---
[
"81670f2e4bc28898288815ee075a8653bb264bf8dcf7fa0246f87e50054c950f",
"1034518a27b7197ff81b5393a98270ca94283e26cdaf61ec370ccbcd5f92112c",
"c2f65dfed7824b8da4986ed97bf2c6c6ce1914b387da407da66c19f7c61571d8",
"e672d267073a26f1d9cf14eaa1136a02c3c588e93ba3792f8f7dc47c49b0cf24",
"9b83821644418128b97f4ca80ea38d073f7531d5704c09dc4ddf0118e3df8cbf",
"1e0aa381a5657c612d921b945b4ada7c2176b62ef9f336e4f7d9cab121a270f9",
"f01e61ef51d40759363813b476a8b3b53d8ecdbe3f575708388d50cbfc390d1b",
"b888471e3a4d5ebfd469efe4a77ab0d8dfe0655efc3f0743b94c3f8738cda5f7",
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ source: crates/cli/tests/run_test.rs
expression: "[extract_hash_from_run(sandbox.path(), \"outputs:asDep\"),\nextract_hash_from_run(sandbox.path(), \"outputs:withDeps\")]"
---
[
"81670f2e4bc28898288815ee075a8653bb264bf8dcf7fa0246f87e50054c950f",
"1034518a27b7197ff81b5393a98270ca94283e26cdaf61ec370ccbcd5f92112c",
"9b83821644418128b97f4ca80ea38d073f7531d5704c09dc4ddf0118e3df8cbf",
"1e0aa381a5657c612d921b945b4ada7c2176b62ef9f336e4f7d9cab121a270f9",
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ expression: assert.output()
Tasks: 2 completed
Time: 100ms

f75fedb1391ec68b3bc9dcc5cd1908bb4ee36793de49fe538185fc077cd38149
091875657f8b955944c45803b2e13d536f257648e04cca859a0c38700b94764f
1 change: 1 addition & 0 deletions crates/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ regex = { workspace = true }
rustc-hash = { workspace = true }
starbase_archive = { workspace = true }
starbase_utils = { workspace = true, features = [
"editor-config",
"glob",
"json",
"net",
Expand Down
2 changes: 1 addition & 1 deletion crates/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_common"
version = "0.0.10"
version = "0.0.11"
edition = "2021"
license = "MIT"
description = "Common utilities."
Expand Down
10 changes: 5 additions & 5 deletions crates/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_config"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
license = "MIT"
description = "Core workspace, project, and moon configuration."
Expand All @@ -12,8 +12,8 @@ publish = true
features = ["loader"]

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_target = { version = "0.0.9", path = "../target" }
moon_common = { version = "0.0.11", path = "../common" }
moon_target = { version = "0.0.10", path = "../target" }
indexmap = { workspace = true }
miette = { workspace = true }
once_cell = { workspace = true }
Expand All @@ -31,12 +31,12 @@ schematic = { workspace = true, features = [
"type_semver",
"validate",
"validate_url",
"yaml",
"yml",
] }
semver = { workspace = true, features = ["serde"] }
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = { workspace = true }
serde_yml = { workspace = true }
version_spec = { workspace = true, features = ["schematic"] }
warpgate_api = { workspace = true, features = ["schematic"] }

Expand Down
4 changes: 2 additions & 2 deletions crates/file-group/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
common-path = "1.0.0"
miette = { workspace = true }
once_cell = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/pdk-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_pdk_api"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
license = "MIT"
description = "Core APIs for creating moon WASM plugins."
Expand All @@ -9,8 +9,8 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
rustc-hash = { workspace = true }
schematic = { workspace = true, features = ["schema_serde"] }
serde = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/pdk-test-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_pdk_test_utils"
version = "0.0.13"
version = "0.0.14"
edition = "2021"
license = "MIT"
description = "Utilities for testing moon WASM plugins."
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_pdk_api = { version = "0.0.12", path = "../pdk-api" }
moon_pdk_api = { version = "0.0.13", path = "../pdk-api" }
warpgate = { workspace = true }
extism = { workspace = true }
serde = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/pdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_pdk"
version = "0.0.12"
version = "0.0.13"
edition = "2021"
license = "MIT"
description = "A plugin development kit for creating moon WASM plugins."
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_pdk_api = { version = "0.0.12", path = "../pdk-api" }
moon_pdk_api = { version = "0.0.13", path = "../pdk-api" }
clap = { workspace = true, features = ["derive"] }
extism-pdk = { workspace = true }
serde = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
[dependencies]
moon_common = { path = "../common" }
moon_env = { path = "../env" }
moon_pdk_api = { version = "0.0.12", path = "../pdk-api" }
moon_pdk_api = { version = "0.0.13", path = "../pdk-api" }
moon_target = { path = "../target" }
moon_workspace_graph = { path = "../workspace-graph" }
async-trait = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/project/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
moon_file_group = { version = "0.0.3", path = "../file-group" }
moon_task = { version = "0.0.3", path = "../task" }
miette = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/target/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "moon_target"
version = "0.0.9"
version = "0.0.10"
edition = "2021"
license = "MIT"
description = "Project + task target identifier."
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_common = { version = "0.0.11", path = "../common" }
compact_str = { workspace = true }
miette = { workspace = true }
once_cell = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/task/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ repository = "https://github.com/moonrepo/moon"
publish = true

[dependencies]
moon_common = { version = "0.0.10", path = "../common" }
moon_config = { version = "0.0.12", path = "../config" }
moon_target = { version = "0.0.9", path = "../target" }
moon_common = { version = "0.0.11", path = "../common" }
moon_config = { version = "0.0.13", path = "../config" }
moon_target = { version = "0.0.10", path = "../target" }
miette = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion legacy/core/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ insta = "1.41.1"
predicates = "3.1.3"
pretty_assertions = "1.4.1"
rustc-hash = { workspace = true }
serde_yaml = { workspace = true }
serde_yml = { workspace = true }
starbase_utils = { workspace = true, features = ["glob"] }

[lints]
Expand Down
6 changes: 3 additions & 3 deletions legacy/core/test-utils/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,16 @@ pub fn create_sandbox_with_config<T: AsRef<str>>(

sandbox.create_file(
".moon/workspace.yml",
serde_yaml::to_string(&workspace_config.unwrap_or_default()).unwrap(),
serde_yml::to_string(&workspace_config.unwrap_or_default()).unwrap(),
);

sandbox.create_file(
".moon/toolchain.yml",
serde_yaml::to_string(&toolchain_config.unwrap_or_default()).unwrap(),
serde_yml::to_string(&toolchain_config.unwrap_or_default()).unwrap(),
);

if let Some(config) = tasks_config {
sandbox.create_file(".moon/tasks.yml", serde_yaml::to_string(&config).unwrap());
sandbox.create_file(".moon/tasks.yml", serde_yml::to_string(&config).unwrap());
}

sandbox
Expand Down
2 changes: 1 addition & 1 deletion legacy/deno/lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ miette = { workspace = true }
rustc-hash = { workspace = true }
serde = { workspace = true }
starbase_styles = { workspace = true }
starbase_utils = { workspace = true, features = ["json"] }
starbase_utils = { workspace = true, features = ["editor-config", "json"] }

[lints]
workspace = true
Loading

0 comments on commit 12d6f2e

Please sign in to comment.