From 4c322d9f0b17bdf4560342dce9f1939713d5c881 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 14:40:39 +0200 Subject: [PATCH 01/15] SRE-984: Read the Cargo workspace natively instead of generated package.json files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turborepo discovers the crates from the Cargo workspace behind `experimentalCargoWorkspaces`: every member is a package under its `Cargo.toml` name, its dependencies follow `Cargo.toml`, and `[workspace.metadata].name` names the package standing for the whole workspace. The 52 generated `package.json` files, `sync-turborepo` with its CLI, mise task, lint step and Cargo metadata sections, and the `@rust/` names go away; every reference uses the Cargo name. The four TypeScript packages that depended on `@apps/hash-graph` and the `hash-graph-integration` crate reach the graph through `hash-graph#start:test:healthcheck` instead, which is what they need from it. `turbo prune` writes the pruned `Cargo.toml`, `Cargo.lock` and Cargo configuration itself and follows dev-dependencies, so the Dockerfiles stop stubbing workspace members and `prune.py` drops its stubs and the rules that mirrored Cargo edges. The task documents cover the tasks a package implements — a `package.json` script or a `command` in a `turbo.json` — so the tasks turbo's Cargo toolchain brings for every crate stay out of them. --- .changeset/config.json | 1 - .config/mise/tasks/sync/turborepo.sh | 10 - .github/CONTRIBUTING.md | 2 +- .github/actions/prune-repository/prune.py | 188 +-- .../actions/prune-repository/prune_test.py | 54 +- .../instructions/code-review.instructions.md | 3 +- .github/workflows/bench.yml | 16 +- .github/workflows/deploy.yml | 2 +- .github/workflows/lint.yml | 6 - .github/workflows/test.yml | 2 +- AGENTS.md | 8 +- Cargo.lock | 16 - Cargo.toml | 5 +- apps/brunch-agent/docker/Dockerfile | 10 +- apps/brunch-agent/docs/task-dependencies.json | 1053 ++++++++--------- apps/hash-ai-worker-ts/docker/Dockerfile | 10 +- .../docs/task-dependencies.json | 451 ++++++- apps/hash-ai-worker-ts/package.json | 1 - apps/hash-ai-worker-ts/turbo.json | 4 +- apps/hash-api/docker/Dockerfile | 10 +- apps/hash-api/docs/task-dependencies.json | 497 +++++++- apps/hash-api/package.json | 1 - apps/hash-api/turbo.json | 8 +- apps/hash-frontend/docker/Dockerfile | 10 +- .../hash-frontend/docs/task-dependencies.json | 870 +++++++------- apps/hash-graph/Cargo.toml | 11 +- apps/hash-graph/docker/Dockerfile | 10 +- apps/hash-graph/docs/task-dependencies.json | 44 +- apps/hash-graph/package.json | 23 - apps/hash-graph/turbo.json | 2 +- .../hash-integration-worker/docker/Dockerfile | 9 +- .../docs/task-dependencies.json | 795 ++++++------- apps/hash-integration-worker/turbo.json | 4 +- .../docs/task-dependencies.json | 89 +- .../docs/task-dependencies.json | 696 ++++++----- .../graph/docs/task-dependencies.json | 64 +- .../type-system/rust/Cargo.toml | 14 +- .../rust/docs/task-dependencies.json | 37 +- .../type-system/rust/package.json | 15 - .../typescript/docs/task-dependencies.json | 100 +- .../typescript/scripts/prepublish.ts | 4 +- .../type-system/typescript/turbo.json | 12 +- .../docs/task-dependencies.json | 48 +- .../design-system/docs/task-dependencies.json | 48 +- .../query-editor/docs/task-dependencies.json | 48 +- .../type-editor/docs/task-dependencies.json | 261 ++-- .../codec/rust/docs/task-dependencies.json | 27 +- libs/@local/codec/rust/package.json | 14 - libs/@local/codec/rust/turbo.json | 2 +- .../typescript/docs/task-dependencies.json | 38 +- libs/@local/codec/typescript/turbo.json | 6 +- .../codegen/docs/task-dependencies.json | 9 +- libs/@local/codegen/package.json | 6 - .../@local/config/docs/task-dependencies.json | 16 +- libs/@local/config/package.json | 9 - libs/@local/config/turbo.json | 2 +- .../hickory/rust/docs/task-dependencies.json | 9 +- .../effect-dns/hickory/rust/package.json | 7 - .../typescript/docs/task-dependencies.json | 8 +- .../effect-dns/hickory/typescript/turbo.json | 4 +- .../graph/api/docs/task-dependencies.json | 75 +- libs/@local/graph/api/package.json | 37 - libs/@local/graph/api/turbo.json | 2 +- libs/@local/graph/atlas/docker/Dockerfile | 10 +- .../graph/atlas/docs/task-dependencies.json | 48 +- libs/@local/graph/atlas/package.json | 23 - libs/@local/graph/atlas/turbo.json | 2 +- .../docs/task-dependencies.json | 28 +- libs/@local/graph/authentication/package.json | 16 - libs/@local/graph/authentication/turbo.json | 2 +- .../rust/docs/task-dependencies.json | 30 +- .../graph/authorization/rust/package.json | 14 - .../graph/authorization/rust/turbo.json | 2 +- .../typescript/docs/task-dependencies.json | 56 +- .../graph/authorization/typescript/turbo.json | 6 +- .../typescript/docs/task-dependencies.json | 176 ++- .../@local/graph/client/typescript/turbo.json | 6 +- .../embeddings/docs/task-dependencies.json | 29 +- libs/@local/graph/embeddings/package.json | 13 - libs/@local/graph/embeddings/turbo.json | 2 +- .../docs/task-dependencies.json | 9 +- .../graph/migrations-macros/package.json | 6 - .../migrations/docs/task-dependencies.json | 16 +- libs/@local/graph/migrations/package.json | 11 - libs/@local/graph/postgres-store/Cargo.toml | 16 +- .../docs/task-dependencies.json | 46 +- libs/@local/graph/postgres-store/package.json | 25 - libs/@local/graph/postgres-store/turbo.json | 4 +- .../typescript/docs/task-dependencies.json | 440 ++++--- .../store/rust/docs/task-dependencies.json | 35 +- libs/@local/graph/store/rust/package.json | 18 - libs/@local/graph/store/rust/turbo.json | 2 +- .../typescript/docs/task-dependencies.json | 74 +- libs/@local/graph/store/typescript/turbo.json | 6 +- .../docs/task-dependencies.json | 16 +- .../graph/temporal-versioning/package.json | 9 - .../graph/temporal-versioning/turbo.json | 7 +- .../type-fetcher/docs/task-dependencies.json | 25 +- libs/@local/graph/type-fetcher/package.json | 16 - libs/@local/graph/types/Cargo.toml | 12 +- .../graph/types/docs/task-dependencies.json | 22 +- libs/@local/graph/types/package.json | 12 - libs/@local/graph/types/turbo.json | 2 +- .../validation/docs/task-dependencies.json | 26 +- libs/@local/graph/validation/package.json | 16 - libs/@local/graph/validation/turbo.json | 2 +- .../client/rust/docs/task-dependencies.json | 23 +- libs/@local/harpc/client/rust/package.json | 14 - .../typescript/docs/task-dependencies.json | 4 +- .../@local/harpc/client/typescript/turbo.json | 4 +- .../harpc/codec/docs/task-dependencies.json | 18 +- libs/@local/harpc/codec/package.json | 10 - libs/@local/harpc/codec/turbo.json | 2 +- .../harpc/net/docs/task-dependencies.json | 24 +- libs/@local/harpc/net/package.json | 13 - libs/@local/harpc/net/turbo.json | 2 +- .../harpc/server/docs/task-dependencies.json | 27 +- libs/@local/harpc/server/package.json | 18 - .../harpc/system/docs/task-dependencies.json | 15 +- libs/@local/harpc/system/package.json | 10 - .../harpc/tower/docs/task-dependencies.json | 22 +- libs/@local/harpc/tower/package.json | 12 - libs/@local/harpc/tower/turbo.json | 2 +- .../harpc/types/docs/task-dependencies.json | 9 +- libs/@local/harpc/types/package.json | 6 - libs/@local/harpc/types/turbo.json | 2 +- .../wire-protocol/docs/task-dependencies.json | 23 +- libs/@local/harpc/wire-protocol/package.json | 10 - libs/@local/harpc/wire-protocol/turbo.json | 2 +- .../docs/task-dependencies.json | 435 ++++--- .../docs/task-dependencies.json | 435 ++++--- libs/@local/hashql/ast/Cargo.toml | 13 +- .../hashql/ast/docs/task-dependencies.json | 18 +- libs/@local/hashql/ast/package.json | 10 - libs/@local/hashql/ast/turbo.json | 2 +- .../compiletest/docs/task-dependencies.json | 29 +- libs/@local/hashql/compiletest/package.json | 16 - libs/@local/hashql/compiletest/turbo.json | 2 +- .../hashql/core/docs/task-dependencies.json | 31 +- libs/@local/hashql/core/package.json | 14 - libs/@local/hashql/core/turbo.json | 2 +- .../diagnostics/docs/task-dependencies.json | 9 +- libs/@local/hashql/diagnostics/package.json | 6 - libs/@local/hashql/diagnostics/turbo.json | 2 +- libs/@local/hashql/eval/Cargo.toml | 11 +- .../hashql/eval/docs/task-dependencies.json | 36 +- libs/@local/hashql/eval/package.json | 20 - libs/@local/hashql/eval/turbo.json | 2 +- libs/@local/hashql/hir/Cargo.toml | 9 +- .../hashql/hir/docs/task-dependencies.json | 20 +- libs/@local/hashql/hir/package.json | 11 - libs/@local/hashql/hir/turbo.json | 2 +- .../hashql/macros/docs/task-dependencies.json | 2 +- libs/@local/hashql/macros/package.json | 6 - libs/@local/hashql/mir/Cargo.toml | 15 +- .../hashql/mir/docs/task-dependencies.json | 29 +- libs/@local/hashql/mir/package.json | 11 - libs/@local/hashql/mir/turbo.json | 2 +- .../syntax-jexpr/docs/task-dependencies.json | 20 +- libs/@local/hashql/syntax-jexpr/package.json | 11 - libs/@local/hashql/syntax-jexpr/turbo.json | 2 +- .../middleware/docs/task-dependencies.json | 19 +- libs/@local/middleware/package.json | 11 - libs/@local/middleware/turbo.json | 2 +- .../node/docs/task-dependencies.json | 348 +++--- libs/@local/repo-chores/rust/Cargo.toml | 51 +- .../rust/docs/task-dependencies.json | 105 +- libs/@local/repo-chores/rust/package.json | 10 - .../rust/src/cli/subcommand/mod.rs | 12 +- .../rust/src/cli/subcommand/sync_turborepo.rs | 47 - libs/@local/repo-chores/rust/src/lib.rs | 2 - .../rust/src/sync_turborepo/mod.rs | 546 --------- .../rust/src/task_dependencies/mod.rs | 158 +-- libs/@local/status/rust/Cargo.toml | 9 +- .../status/rust/docs/task-dependencies.json | 13 +- libs/@local/status/rust/package.json | 10 - .../telemetry/docs/task-dependencies.json | 12 +- libs/@local/telemetry/package.json | 9 - .../docs/task-dependencies.json | 18 +- libs/@local/temporal-client/package.json | 10 - libs/README.md | 16 +- libs/antsi/docs/task-dependencies.json | 2 +- libs/antsi/package.json | 7 - libs/antsi/turbo.json | 2 +- .../codegen/docs/task-dependencies.json | 2 +- libs/darwin-kperf/codegen/package.json | 6 - .../criterion/docs/task-dependencies.json | 8 +- libs/darwin-kperf/criterion/package.json | 11 - libs/darwin-kperf/docs/task-dependencies.json | 10 +- .../events/docs/task-dependencies.json | 2 +- libs/darwin-kperf/events/package.json | 7 - libs/darwin-kperf/package.json | 11 - .../sys/docs/task-dependencies.json | 2 +- libs/darwin-kperf/sys/package.json | 7 - libs/error-stack/Cargo.toml | 37 +- libs/error-stack/docs/task-dependencies.json | 27 +- .../macros/docs/task-dependencies.json | 2 +- libs/error-stack/macros/package.json | 7 - libs/error-stack/package.json | 10 - libs/error-stack/turbo.json | 4 +- libs/problematic/rust/package.json | 14 - package.json | 3 +- tests/graph/benches/Cargo.toml | 11 +- .../graph/benches/docs/task-dependencies.json | 40 +- tests/graph/benches/package.json | 20 - tests/graph/benches/turbo.json | 4 +- tests/graph/http/docs/task-dependencies.json | 10 +- tests/graph/http/package.json | 3 +- tests/graph/http/turbo.json | 2 +- tests/graph/integration/Cargo.toml | 11 +- .../integration/docs/task-dependencies.json | 36 +- tests/graph/integration/package.json | 20 - tests/graph/integration/turbo.json | 2 +- .../rust/docs/task-dependencies.json | 22 +- tests/graph/test-data/rust/package.json | 12 - tests/graph/test-data/rust/turbo.json | 2 +- .../docs/task-dependencies.json | 226 +++- tests/hash-backend-integration/package.json | 1 - tests/hash-backend-integration/turbo.json | 7 +- .../docs/task-dependencies.json | 220 +++- turbo.json | 9 +- yarn.lock | 605 +--------- 222 files changed, 5457 insertions(+), 6079 deletions(-) delete mode 100755 .config/mise/tasks/sync/turborepo.sh delete mode 100644 apps/hash-graph/package.json delete mode 100644 libs/@blockprotocol/type-system/rust/package.json delete mode 100644 libs/@local/codec/rust/package.json delete mode 100644 libs/@local/codegen/package.json delete mode 100644 libs/@local/config/package.json delete mode 100644 libs/@local/effect-dns/hickory/rust/package.json delete mode 100644 libs/@local/graph/api/package.json delete mode 100644 libs/@local/graph/atlas/package.json delete mode 100644 libs/@local/graph/authentication/package.json delete mode 100644 libs/@local/graph/authorization/rust/package.json delete mode 100644 libs/@local/graph/embeddings/package.json delete mode 100644 libs/@local/graph/migrations-macros/package.json delete mode 100644 libs/@local/graph/migrations/package.json delete mode 100644 libs/@local/graph/postgres-store/package.json delete mode 100644 libs/@local/graph/store/rust/package.json delete mode 100644 libs/@local/graph/temporal-versioning/package.json delete mode 100644 libs/@local/graph/type-fetcher/package.json delete mode 100644 libs/@local/graph/types/package.json delete mode 100644 libs/@local/graph/validation/package.json delete mode 100644 libs/@local/harpc/client/rust/package.json delete mode 100644 libs/@local/harpc/codec/package.json delete mode 100644 libs/@local/harpc/net/package.json delete mode 100644 libs/@local/harpc/server/package.json delete mode 100644 libs/@local/harpc/system/package.json delete mode 100644 libs/@local/harpc/tower/package.json delete mode 100644 libs/@local/harpc/types/package.json delete mode 100644 libs/@local/harpc/wire-protocol/package.json delete mode 100644 libs/@local/hashql/ast/package.json delete mode 100644 libs/@local/hashql/compiletest/package.json delete mode 100644 libs/@local/hashql/core/package.json delete mode 100644 libs/@local/hashql/diagnostics/package.json delete mode 100644 libs/@local/hashql/eval/package.json delete mode 100644 libs/@local/hashql/hir/package.json delete mode 100644 libs/@local/hashql/macros/package.json delete mode 100644 libs/@local/hashql/mir/package.json delete mode 100644 libs/@local/hashql/syntax-jexpr/package.json delete mode 100644 libs/@local/middleware/package.json delete mode 100644 libs/@local/repo-chores/rust/package.json delete mode 100644 libs/@local/repo-chores/rust/src/cli/subcommand/sync_turborepo.rs delete mode 100644 libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs delete mode 100644 libs/@local/status/rust/package.json delete mode 100644 libs/@local/telemetry/package.json delete mode 100644 libs/@local/temporal-client/package.json delete mode 100644 libs/antsi/package.json delete mode 100644 libs/darwin-kperf/codegen/package.json delete mode 100644 libs/darwin-kperf/criterion/package.json delete mode 100644 libs/darwin-kperf/events/package.json delete mode 100644 libs/darwin-kperf/package.json delete mode 100644 libs/darwin-kperf/sys/package.json delete mode 100644 libs/error-stack/macros/package.json delete mode 100644 libs/error-stack/package.json delete mode 100644 libs/problematic/rust/package.json delete mode 100644 tests/graph/benches/package.json delete mode 100644 tests/graph/integration/package.json delete mode 100644 tests/graph/test-data/rust/package.json diff --git a/.changeset/config.json b/.changeset/config.json index 9a86ffab056..95d9b15899c 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -13,7 +13,6 @@ "ignore": [ "@apps/*", "@local/*", - "@rust/*", "@tests/*", "@hashintel/block-design-system", "@hashintel/design-system", diff --git a/.config/mise/tasks/sync/turborepo.sh b/.config/mise/tasks/sync/turborepo.sh deleted file mode 100755 index 5e8179e4f9d..00000000000 --- a/.config/mise/tasks/sync/turborepo.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash -#MISE description="Generate package.json files from Cargo.toml metadata" -set -euo pipefail - -#USAGE arg "[arguments]..." double_dash="required" default="" help="Additional arguments that are directly passed to the sync-turborepo command" - -declare -a "ARGUMENTS=($usage_arguments)" # We're using "declare -a" here to allow for quoted arguments to be properly parsed as single array elements - - -cargo run --package hash-repo-chores --bin repo-chores-cli -- sync-turborepo ${ARGUMENTS[@]:+"${ARGUMENTS[@]}"} diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 9d4e92aa8c4..27a532d1f23 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -46,7 +46,7 @@ New local packages should follow these rules: 1. Anything which is imported or consumed by something else belongs in `libs/` and have a `package.json` `"name"`: - beginning with `@local/` for non-published JavaScript dependencies - identical to their `npm` name for published JavaScript dependencies - - begin with `@rust/` for Rust dependencies + - Rust crates carry no `package.json`; Turborepo knows them by their `Cargo.toml` `[package].name` 2. Things which are executed belong in `apps/`, and are named `@apps/app-name 3. Packages which aren't published to `npm` should have `"private": true` in their `package.json` 4. All TypeScript packages should be `"type": "module"` diff --git a/.github/actions/prune-repository/prune.py b/.github/actions/prune-repository/prune.py index b4438b26844..c0f56e319a4 100644 --- a/.github/actions/prune-repository/prune.py +++ b/.github/actions/prune-repository/prune.py @@ -1,49 +1,21 @@ #!/usr/bin/env python3 """Prunes the turbo workspace to only the packages required for the given scope(s). -Handles cyclic and extra dependencies that turbo's dependency graph doesn't track. +`turbo prune` follows the package graph and, across toolchains, the task graph itself. +This adds what neither graph carries: packages a job reads without depending on them, +and paths outside any workspace. """ import argparse -import json import shutil import subprocess from collections.abc import Iterable -from glob import glob from pathlib import Path -import tomllib - -# --------------------------------------------------------------------------- -# Extra dependency rules that turbo doesn't track -# --------------------------------------------------------------------------- - -# If any of these packages appear in the dependency closure, add the -# corresponding extra packages to the scope. Triggers use prefix matching -# so a family root can pull its children (e.g. darwin-kperf). -EXTRA_DEPENDENCIES: dict[str, list[str]] = { - # Cyclic: hashql crates need compiletest - "@rust/hashql-ast": ["@rust/hashql-compiletest"], - "@rust/hashql-hir": ["@rust/hashql-compiletest"], - "@rust/hashql-mir": ["@rust/hashql-compiletest"], - "@rust/hashql-eval": ["@rust/hashql-compiletest"], - # darwin-kperf has all child crates directly as subdirectories and hence need to be included - "@rust/darwin-kperf": [ - "@rust/darwin-kperf", - "@rust/darwin-kperf-sys", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-codegen", - ], - # Test data crates - "@blockprotocol/type-system-rs": ["@rust/hash-graph-test-data"], - "@rust/hash-graph-types": ["@rust/hash-graph-test-data"], -} - # Extras that must not fire on a transitive or prefix match. REQUESTED_DEPENDENCIES: dict[str, list[str]] = { # The frontend's wire-conformance suite decodes the atlas crate's checked-in fixtures - "@apps/hash-frontend": ["@rust/hash-graph-atlas"], + "@apps/hash-frontend": ["hash-graph-atlas"], } # Non-workspace paths required by packages in the *requested* scope. @@ -60,63 +32,6 @@ ], } -TURBO_QUERY = """ - query { - packages { - items { - name - allDependencies { - items { - name - } - } - tasks { - items { - allDependencies { - items { - package { - name - } - } - } - } - } - } - } - } -""" - - -def turbo_dependency_map() -> dict[str, frozenset[str]]: - """Query turbo for all packages and return a map of package name to its dependencies. - - Covers both the package graph and the task graph: task dependencies - (`dependsOn: ["pkg#task"]`) create edges `turbo prune` does not follow. - The package itself and the workspace root ("//") are dropped from every - entry. - """ - - result = subprocess.run( - ["turbo", "query", TURBO_QUERY], - capture_output=True, - text=True, - check=True, - ) - data = json.loads(result.stdout) - - dep_map: dict[str, frozenset[str]] = {} - for item in data["data"]["packages"]["items"]: - deps = {dep["name"] for dep in item["allDependencies"]["items"]} - for task in item["tasks"]["items"]: - deps.update( - dep["package"]["name"] for dep in task["allDependencies"]["items"] - ) - deps.discard(item["name"]) - deps.discard("//") - dep_map[item["name"]] = frozenset(deps) - - return dep_map - def extras_for_requested(requested: Iterable[str]) -> frozenset[str]: """Return extras implied by the job's requested scopes only. @@ -143,43 +58,6 @@ def extra_paths_for_requested(requested: Iterable[str]) -> list[str]: return paths -def expand_scopes(dependencies: Iterable[str]) -> frozenset[str]: - """Return extra scopes implied by the dependency names. - - A rule triggers when any dependency name starts with the trigger prefix. - """ - - extras: set[str] = set() - - for trigger, additions in EXTRA_DEPENDENCIES.items(): - if any(name.startswith(trigger) for name in dependencies): - extras.update(additions) - - return frozenset(extras) - - -def fixpoint_expand( - initial: Iterable[str], dependencies: dict[str, frozenset[str]] -) -> frozenset[str]: - """Expand scopes to a fixpoint using the pre-built dependency map.""" - scopes: set[str] = set(initial) - stable: set[str] = set() - - while True: - frontier = scopes - stable - if not frontier: - break - - for scope in frontier: - stable.add(scope) - deps: frozenset[str] = dependencies.get(scope, frozenset()) - - scopes |= deps - scopes |= expand_scopes(deps | {scope}) - - return frozenset(scopes) - - def turbo_prune(scopes: Iterable[str], *, dry_run: bool = False) -> None: """Run `turbo prune` with the given scopes.""" args = ["turbo", "prune", *sorted(scopes)] @@ -215,53 +93,6 @@ def copy_extra_paths(scopes: Iterable[str], *, dry_run: bool = False) -> None: shutil.copy2(source, destination) -def resolve_workspace_members() -> list[Path]: - """Read workspace members from Cargo.toml and resolve globs to Cargo.toml paths.""" - - with open("Cargo.toml", "rb") as fh: - cargo = tomllib.load(fh) - - members: list[str] = cargo["workspace"]["members"] - paths: list[Path] = [] - - for member in members: - for match in glob(f"{member}/Cargo.toml"): - paths.append(Path(match)) - - return paths - - -def stub_missing_members(*, dry_run: bool = False) -> None: - """Create dummy Cargo.toml stubs for workspace members not included by turbo prune.""" - - for cargo_path in resolve_workspace_members(): - directory = cargo_path.parent - out_cargo = Path("out") / directory / "Cargo.toml" - - if out_cargo.exists(): - continue - - # Read the package name from the real Cargo.toml - with open(cargo_path, "rb") as fh: - pkg = tomllib.load(fh) - - name = pkg.get("package", {}).get("name") - if name is None: - continue - - if dry_run: - print(f"[dry-run] Would stub: {out_cargo} (name={name})") - continue - - # Create the stub - out_dir = out_cargo.parent - src_dir = out_dir / "src" - - src_dir.mkdir(parents=True, exist_ok=True) - (src_dir / "lib.rs").write_text("\n") - out_cargo.write_text(f'[package]\nname = "{name}"\nedition.workspace = true\n') - - def parse_args(argv: list[str] | None = None) -> argparse.Namespace: parser = argparse.ArgumentParser( description="Prune the turbo workspace to only the packages required for the given scopes.", @@ -273,7 +104,7 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace: parser.add_argument( "--dry-run", action="store_true", - help="Print what would be done without executing turbo prune or creating stubs.", + help="Print what would be done without executing turbo prune.", ) return parser.parse_args(argv) @@ -281,15 +112,12 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace: def main(argv: list[str] | None = None) -> None: args = parse_args(argv) - initial = { + requested = { s.strip() for line in args.scope.splitlines() for s in line.split() if s.strip() } - dependencies = turbo_dependency_map() - scopes = fixpoint_expand(initial | extras_for_requested(initial), dependencies) - turbo_prune(scopes, dry_run=args.dry_run) - copy_extra_paths(initial, dry_run=args.dry_run) - stub_missing_members(dry_run=args.dry_run) + turbo_prune(requested | extras_for_requested(requested), dry_run=args.dry_run) + copy_extra_paths(requested, dry_run=args.dry_run) if __name__ == "__main__": diff --git a/.github/actions/prune-repository/prune_test.py b/.github/actions/prune-repository/prune_test.py index 24e4e17b647..93d2d9108e7 100644 --- a/.github/actions/prune-repository/prune_test.py +++ b/.github/actions/prune-repository/prune_test.py @@ -5,12 +5,7 @@ import unittest -from prune import ( - expand_scopes, - extra_paths_for_requested, - extras_for_requested, - fixpoint_expand, -) +from prune import extra_paths_for_requested, extras_for_requested CORE = "@hashintel/brunch-agent" TRANSPORT = "@hashintel/brunch-agent-transport-aisdk" @@ -18,27 +13,14 @@ WEBSITE = "@apps/petrinaut-website" FRONTEND = "@apps/hash-frontend" PLAYWRIGHT = "@tests/hash-playwright" -ATLAS = "@rust/hash-graph-atlas" +ATLAS = "hash-graph-atlas" class FrontendRequestedExtras(unittest.TestCase): def test_frontend_direct(self) -> None: self.assertEqual(extras_for_requested({FRONTEND}), frozenset({ATLAS})) - self.assertIn( - ATLAS, - fixpoint_expand( - {FRONTEND} | extras_for_requested({FRONTEND}), - {FRONTEND: frozenset(), ATLAS: frozenset()}, - ), - ) - def test_frontend_transitive(self) -> None: - dependencies = { - PLAYWRIGHT: frozenset({FRONTEND}), - FRONTEND: frozenset(), - } - expanded = fixpoint_expand({PLAYWRIGHT}, dependencies) - self.assertNotIn(ATLAS, expanded) + def test_dependent_of_frontend_adds_nothing(self) -> None: self.assertEqual(extras_for_requested({PLAYWRIGHT}), frozenset()) @@ -64,38 +46,8 @@ def test_core_adds_only_its_shared_lint_config(self) -> None: def test_sibling_or_website_job_does_not_add_context_paths(self) -> None: self.assertEqual(extra_paths_for_requested({TRANSPORT}), []) self.assertEqual(extra_paths_for_requested({WEBSITE}), []) - - def test_core_transitive(self) -> None: - dependencies = { - WEBSITE: frozenset({CORE, TRANSPORT}), - TRANSPORT: frozenset(), - CORE: frozenset(), - } - expanded = fixpoint_expand({WEBSITE}, dependencies) - self.assertNotIn(APP, expanded) self.assertEqual(extras_for_requested({WEBSITE}), frozenset()) -class DarwinPrefix(unittest.TestCase): - def test_darwin_child(self) -> None: - extras = expand_scopes({"@rust/darwin-kperf-sys"}) - self.assertIn("@rust/darwin-kperf-sys", extras) - self.assertIn("@rust/darwin-kperf-events", extras) - - -TYPE_SYSTEM = "@blockprotocol/type-system" -TYPE_SYSTEM_RS = "@blockprotocol/type-system-rs" - - -class DependencyScopes(unittest.TestCase): - def test_dependencies_become_scopes_and_trigger_extras(self) -> None: - expanded = fixpoint_expand( - {TYPE_SYSTEM}, {TYPE_SYSTEM: frozenset({TYPE_SYSTEM_RS})} - ) - self.assertIn(TYPE_SYSTEM_RS, expanded) - # The rust twin in scope also fires its EXTRA_DEPENDENCIES rule. - self.assertIn("@rust/hash-graph-test-data", expanded) - - if __name__ == "__main__": unittest.main() diff --git a/.github/instructions/code-review.instructions.md b/.github/instructions/code-review.instructions.md index 9a5a02a272c..ce2220f7652 100644 --- a/.github/instructions/code-review.instructions.md +++ b/.github/instructions/code-review.instructions.md @@ -48,7 +48,7 @@ Spend your effort here, in priority order: 3. **Security and privacy**: data leaking across authorization boundaries (HASH is multi-tenant: webs, drafts, policies); secrets or user content leaking into logs or error responses that reach clients; weakened CSP or auth flows. 4. **Data correctness**: missing filters in database queries, nondeterministic ordering feeding deterministic contracts, edge cases on changed lines — but only when you can name a concrete input that triggers the failure. 5. **Tests as behavior specs**: new behavior should have a test asserting it. Ask whether the tests would actually catch a plausible regression. Point to the existing suite where a test belongs (e.g. `tests/graph/integration/postgres/`). -6. **Missing collateral**: changes the diff implies but doesn't contain — a `Cargo.toml` dependency change without the regenerated `package.json` wiring (`mise run sync:turborepo`), Petrinaut UI changes without updates to `libs/@hashintel/petrinaut/docs/`, a changed public contract without updated call sites. +6. **Missing collateral**: changes the diff implies but doesn't contain — a new crate task without its `command` in the crate's `turbo.json`, Petrinaut UI changes without updates to `libs/@hashintel/petrinaut/docs/`, a changed public contract without updated call sites. ## Writing comments that help @@ -63,7 +63,6 @@ Do not review or comment on generated files — they are produced by codegen and - `libs/@local/graph/api/openapi/**` (OpenAPI spec and models, generated from the Rust API) - `libs/@local/hash-isomorphic-utils/src/system-types/**` (codegen'd system types) - `*.gen.ts` files and GraphQL codegen output -- The generated identity/dependency wiring in Rust crates' `package.json` files (managed by `mise run sync:turborepo`) - Lockfiles (`yarn.lock`, `Cargo.lock`) If a generated file looks wrong, the source it is generated from is the only place worth commenting — and only if the generated output being out of sync is NOT something CI would catch. diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index de6e4dd13f6..0cedef3293d 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -117,7 +117,7 @@ jobs: with: scope: | ${{ matrix.name }} - @rust/hash-repo-chores + hash-repo-chores - name: Warm up repository if: github.event_name == 'pull_request' @@ -154,7 +154,7 @@ jobs: with: scope: | ${{ matrix.name }} - @rust/hash-repo-chores + hash-repo-chores - name: Warm up repository uses: $/.github/actions/warm-up-repo @@ -238,7 +238,7 @@ jobs: with: scope: | ${{ matrix.name }} - @rust/hash-repo-chores + hash-repo-chores - name: Warm up repository if: github.event_name == 'pull_request' @@ -274,11 +274,11 @@ jobs: # Optimistically compile background tasks. turbo run compile:release --env-mode=loose mkdir -p logs - turbo run start --filter @apps/hash-graph --env-mode=loose --log-order stream >var/logs/base-background-task.log 2>&1 & + turbo run start --filter hash-graph --env-mode=loose --log-order stream >var/logs/base-background-task.log 2>&1 & PID=$! echo "pid=$PID" | tee -a "$GITHUB_OUTPUT" - turbo run start:healthcheck --filter @apps/hash-graph --env-mode=loose + turbo run start:healthcheck --filter hash-graph --env-mode=loose - name: Run base benches if: github.event_name == 'pull_request' @@ -333,7 +333,7 @@ jobs: with: scope: | ${{ matrix.name }} - @rust/hash-repo-chores + hash-repo-chores - name: Warm up repository uses: $/.github/actions/warm-up-repo @@ -366,11 +366,11 @@ jobs: # Optimistically compile background tasks. turbo run compile:release --env-mode=loose mkdir -p logs - turbo run start --filter @apps/hash-graph --env-mode=loose --log-order stream >var/logs/head-background-task.log 2>&1 & + turbo run start --filter hash-graph --env-mode=loose --log-order stream >var/logs/head-background-task.log 2>&1 & PID=$! echo "pid=$PID" | tee -a "$GITHUB_OUTPUT" - turbo run start:healthcheck --filter @apps/hash-graph --env-mode=loose + turbo run start:healthcheck --filter hash-graph --env-mode=loose - name: Run head benches run: turbo run bench:integration --filter "${{ matrix.name }}" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 79afed910c9..dd6b5c4147a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -146,7 +146,7 @@ jobs: ecs: [{ service: "integration-worker", cluster: "h-stage-euc1-worker", service_name: "h-stage-euc1-worker-integration" }] }, { - package: "@rust/hash-graph-atlas", + package: "hash-graph-atlas", service: "atlas-fit", push: ["ecr", "ghcr"], # The fit runs on x86 GPU hosts, so this image is amd64 rather than diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fa91feb9138..542adbefab2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -243,12 +243,6 @@ jobs: - name: Warm up repository uses: $/.github/actions/warm-up-repo - - name: Validate package.json generated from Cargo.toml - if: ${{ success() || failure() }} - run: | - mise run sync:turborepo - git --no-pager diff --exit-code --color '**/package.json' - - name: Validate Dependency Diagrams if: ${{ success() || failure() }} run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56d82c8677e..16f41b8d66d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -134,7 +134,7 @@ jobs: with: scope: | ${{ matrix.name }} - @rust/hash-repo-chores + hash-repo-chores - name: Warm up repository uses: $/.github/actions/warm-up-repo diff --git a/AGENTS.md b/AGENTS.md index 707b7b605b9..324229d9f13 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -129,13 +129,9 @@ For Rust packages, you can add features as needed with `--all-features`, specifi ### Monorepo wiring for Rust crates -Each Rust crate has a `package.json` whose **identity and workspace-dependency wiring** — its `@rust/` name, version, and the `dependencies` mirroring its `Cargo.toml` — is generated from `Cargo.toml`. After **adding, removing, or renaming a Rust crate**, or changing its `Cargo.toml` dependencies, re-sync that wiring: +Turborepo reads the Cargo workspace directly (`futureFlags.experimentalCargoWorkspaces`): every workspace member is a Turborepo package under its `Cargo.toml` `[package].name`, its dependencies follow `Cargo.toml`, and the root `Cargo.toml`'s `[workspace.metadata].name` names the synthetic package that stands for the whole workspace. Crates carry no `package.json`. -```bash -mise run sync:turborepo # sync package.json identity + deps from Cargo.toml metadata -``` - -`sync:turborepo` only manages that generated wiring. A crate's tasks live in its `turbo.json`, each with the `command` Turborepo runs (e.g. `test:unit`, `lint:clippy`, `doc:dependency-diagram`); the `package.json` carries no `scripts`. Add or edit tasks there by hand. The task wraps the `repo-chores` CLI; the equivalent direct invocation is `cargo run --package hash-repo-chores --bin repo-chores-cli -- sync-turborepo`. A related task, `mise run fix:package-json`, sorts `package.json` keys consistently. +A crate's tasks live in its `turbo.json`, each with the `command` Turborepo runs (e.g. `test:unit`, `lint:clippy`, `doc:dependency-diagram`). A TypeScript package that reads a crate's sources or generated files declares that as a task edge on the crate's task (for example `hash-codec#build:types` or `hash-codec#manifest`), never as a `package.json` dependency. ## Git commits diff --git a/Cargo.lock b/Cargo.lock index b6857b8ac6d..8fffaa2d0ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6480,7 +6480,6 @@ dependencies = [ "hash-telemetry", "inferno", "lcov", - "nodejs_package_json", "serde", "serde_json", "simple-mermaid", @@ -9283,21 +9282,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "nodejs_package_json" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c87ccf239f2f9d82f1efe31340ae1229c50a0e46ddd4d57a2518a25476061cd" -dependencies = [ - "indexmap 2.14.0", - "regex", - "rustc-hash 2.1.2", - "semver", - "serde", - "serde_json", - "thiserror 2.0.18", -] - [[package]] name = "nohash-hasher" version = "0.2.0" diff --git a/Cargo.toml b/Cargo.toml index a5d83f83078..e973f561fc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,6 +54,9 @@ members = [ ] resolver = "3" +[workspace.metadata] +name = "hash" + [workspace.package] authors = ["HASH"] edition = "2024" @@ -451,8 +454,8 @@ shadow_same = "allow" unneeded_field_pattern = "allow" # Actually, the opposite would be a great lint [patch.crates-io] -specta = { git = "https://github.com/specta-rs/specta", rev = "ab7d924" } oxc = { git = "https://github.com/hashdeps/oxc", rev = "73c781b" } +specta = { git = "https://github.com/specta-rs/specta", rev = "ab7d924" } libp2p = { git = "https://github.com/libp2p/rust-libp2p", rev = "86b2122c8ffdd636d0c939b0344bf59a35c97499" } libp2p-allow-block-list = { git = "https://github.com/libp2p/rust-libp2p", rev = "86b2122c8ffdd636d0c939b0344bf59a35c97499" } diff --git a/apps/brunch-agent/docker/Dockerfile b/apps/brunch-agent/docker/Dockerfile index 7b3230fd1bf..5514679de8a 100644 --- a/apps/brunch-agent/docker/Dockerfile +++ b/apps/brunch-agent/docker/Dockerfile @@ -32,16 +32,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked npm:turbo yq COPY . . -# `turbo prune` does not include Cargo workspaces, so we create dummy projects for each workspace member RUN mise trust && \ - turbo prune '@apps/brunch-agent' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/repo/out/full/$1" ] || ( \ - mkdir -p "/repo/out/full/$(dirname "$1")/src" && \ - echo > "/repo/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" -p toml -oy $1)\"" > "/repo/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /repo/out/full/ + turbo prune '@apps/brunch-agent' --docker FROM mise AS rust diff --git a/apps/brunch-agent/docs/task-dependencies.json b/apps/brunch-agent/docs/task-dependencies.json index c0af4e9ed8d..370c247db7a 100644 --- a/apps/brunch-agent/docs/task-dependencies.json +++ b/apps/brunch-agent/docs/task-dependencies.json @@ -2,6 +2,7 @@ "package": "@apps/brunch-agent", "dependencies": [ "@hashintel/brunch-agent", + "@hashintel/brunch-agent-binding-flue", "@hashintel/brunch-agent-plugin-sdcpn", "@hashintel/brunch-agent-transport-aisdk", "@hashintel/petrinaut-core", @@ -11,111 +12,111 @@ "build": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", "@local/hash-backend-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "build:docker": { "dependsOn": [], "cache": false, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "dev": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -124,55 +125,55 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -180,55 +181,55 @@ "@local/hash-backend-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -239,110 +240,110 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", "@local/hash-backend-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "petrinaut:dev": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -351,50 +352,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start": { @@ -404,50 +404,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:healthcheck": { @@ -461,50 +460,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:test:healthcheck": { @@ -517,55 +515,55 @@ ], "cache": false, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:integration": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -576,55 +574,55 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { "dependsOn": [ "@hashintel/brunch-agent#build", + "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -634,51 +632,50 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", "@hashintel/petrinaut", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/apps/hash-ai-worker-ts/docker/Dockerfile b/apps/hash-ai-worker-ts/docker/Dockerfile index d4cdfacfbf8..ad35772d398 100644 --- a/apps/hash-ai-worker-ts/docker/Dockerfile +++ b/apps/hash-ai-worker-ts/docker/Dockerfile @@ -29,16 +29,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked npm:turbo yq COPY . . -# `turbo prune` does not include Cargo workspaces, so we create dummy projects for each workspace member RUN mise trust && \ - turbo prune '@apps/hash-ai-worker-ts' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/app/out/full/$1" ] || ( \ - mkdir -p "/app/out/full/$(dirname "$1")/src" && \ - echo > "/app/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" -p toml -oy $1)\"" > "/app/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /app/out/full/ + turbo prune '@apps/hash-ai-worker-ts' --docker FROM mise AS rust diff --git a/apps/hash-ai-worker-ts/docs/task-dependencies.json b/apps/hash-ai-worker-ts/docs/task-dependencies.json index e14b9ac69da..ae057366a8f 100644 --- a/apps/hash-ai-worker-ts/docs/task-dependencies.json +++ b/apps/hash-ai-worker-ts/docs/task-dependencies.json @@ -1,7 +1,6 @@ { "package": "@apps/hash-ai-worker-ts", "dependencies": [ - "@apps/hash-graph", "@blockprotocol/graph", "@blockprotocol/type-system", "@local/advanced-types", @@ -29,14 +28,98 @@ "@local/status#build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "build:docker": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "dev": { @@ -55,7 +138,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -72,7 +197,49 @@ "@local/status#build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -92,7 +259,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -109,7 +318,49 @@ "@local/status#build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "sentry:sourcemaps": { @@ -117,18 +368,103 @@ "build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start": { "dependsOn": [ - "@apps/hash-graph#start:healthcheck", - "build" + "build", + "hash-graph#start:healthcheck" ], "cache": false, "persistent": true, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:healthcheck": { @@ -137,13 +473,56 @@ }, "start:test": { "dependsOn": [ - "@apps/hash-graph#start:test:healthcheck", - "build" + "build", + "hash-graph#start:test:healthcheck" ], "cache": false, "persistent": true, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:test:healthcheck": { @@ -167,7 +546,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/apps/hash-ai-worker-ts/package.json b/apps/hash-ai-worker-ts/package.json index b21ce449aca..bc66e4735df 100644 --- a/apps/hash-ai-worker-ts/package.json +++ b/apps/hash-ai-worker-ts/package.json @@ -45,7 +45,6 @@ "dependencies": { "@anthropic-ai/bedrock-sdk": "0.26.3", "@anthropic-ai/sdk": "0.74.0", - "@apps/hash-graph": "workspace:*", "@aws-sdk/credential-providers": "3.1055.0", "@blockprotocol/core": "0.1.5", "@blockprotocol/graph": "workspace:*", diff --git a/apps/hash-ai-worker-ts/turbo.json b/apps/hash-ai-worker-ts/turbo.json index 93c33d27858..7807c88ed13 100644 --- a/apps/hash-ai-worker-ts/turbo.json +++ b/apps/hash-ai-worker-ts/turbo.json @@ -12,10 +12,10 @@ "dependsOn": ["^build"] }, "start": { - "dependsOn": ["build", "@apps/hash-graph#start:healthcheck"] + "dependsOn": ["build", "hash-graph#start:healthcheck"] }, "start:test": { - "dependsOn": ["build", "@apps/hash-graph#start:test:healthcheck"] + "dependsOn": ["build", "hash-graph#start:test:healthcheck"] } } } diff --git a/apps/hash-api/docker/Dockerfile b/apps/hash-api/docker/Dockerfile index 8be000168a9..44aad1e2d78 100644 --- a/apps/hash-api/docker/Dockerfile +++ b/apps/hash-api/docker/Dockerfile @@ -29,16 +29,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked npm:turbo yq COPY . . -# `turbo prune` does not include Cargo workspaces, so we create dummy projects for each workspace member RUN mise trust && \ - turbo prune '@apps/hash-api' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/app/out/full/$1" ] || ( \ - mkdir -p "/app/out/full/$(dirname "$1")/src" && \ - echo > "/app/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" $1)\"" > "/app/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /app/out/full/ + turbo prune '@apps/hash-api' --docker FROM mise AS rust diff --git a/apps/hash-api/docs/task-dependencies.json b/apps/hash-api/docs/task-dependencies.json index e91a0b9d5d6..088bc49c25c 100644 --- a/apps/hash-api/docs/task-dependencies.json +++ b/apps/hash-api/docs/task-dependencies.json @@ -1,7 +1,6 @@ { "package": "@apps/hash-api", "dependencies": [ - "@apps/hash-graph", "@blockprotocol/graph", "@blockprotocol/type-system", "@hashintel/petrinaut-core", @@ -24,7 +23,49 @@ "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "codegen": { @@ -34,7 +75,49 @@ "@local/petrinaut-optimizer-client#build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "dev": { @@ -59,7 +142,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -82,7 +207,49 @@ "codegen" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -108,7 +275,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -131,7 +340,49 @@ "codegen" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start": { @@ -141,7 +392,50 @@ "cache": false, "persistent": true, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:healthcheck": { @@ -150,7 +444,6 @@ }, "start:migrate": { "dependsOn": [ - "@apps/hash-graph#start:healthcheck", "@blockprotocol/graph#build", "@blockprotocol/type-system#build", "@hashintel/petrinaut-core#build", @@ -166,11 +459,55 @@ "@local/internal-api-client#build", "@local/petrinaut-optimizer-client#build", "@local/status#build", - "codegen" + "codegen", + "hash-graph#start:healthcheck" ], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:test": { @@ -180,7 +517,50 @@ "cache": false, "persistent": true, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:test:healthcheck": { @@ -189,7 +569,6 @@ }, "start:test:migrate": { "dependsOn": [ - "@apps/hash-graph#start:test:healthcheck", "@blockprotocol/graph#build", "@blockprotocol/type-system#build", "@hashintel/petrinaut-core#build", @@ -205,11 +584,55 @@ "@local/internal-api-client#build", "@local/petrinaut-optimizer-client#build", "@local/status#build", - "codegen" + "codegen", + "hash-graph#start:test:healthcheck" ], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { @@ -235,7 +658,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/apps/hash-api/package.json b/apps/hash-api/package.json index d2575355d1b..be059ed72c9 100644 --- a/apps/hash-api/package.json +++ b/apps/hash-api/package.json @@ -29,7 +29,6 @@ "dependencies": { "@apollo/server": "5.5.0", "@apollo/utils.keyvadapter": "4.0.1", - "@apps/hash-graph": "workspace:*", "@as-integrations/express5": "1.1.2", "@aws-sdk/client-s3": "3.986.0", "@aws-sdk/client-sesv2": "3.986.0", diff --git a/apps/hash-api/turbo.json b/apps/hash-api/turbo.json index 949d704d9a3..7e03ae66b66 100644 --- a/apps/hash-api/turbo.json +++ b/apps/hash-api/turbo.json @@ -25,17 +25,13 @@ "dependsOn": ["codegen", "^build"] }, "start:migrate": { - "dependsOn": ["codegen", "^build", "@apps/hash-graph#start:healthcheck"] + "dependsOn": ["codegen", "^build", "hash-graph#start:healthcheck"] }, "start": { "dependsOn": ["start:migrate"] }, "start:test:migrate": { - "dependsOn": [ - "codegen", - "^build", - "@apps/hash-graph#start:test:healthcheck" - ] + "dependsOn": ["codegen", "^build", "hash-graph#start:test:healthcheck"] }, "start:test": { "dependsOn": ["start:test:migrate"] diff --git a/apps/hash-frontend/docker/Dockerfile b/apps/hash-frontend/docker/Dockerfile index cc7631f41aa..02775c65cbf 100644 --- a/apps/hash-frontend/docker/Dockerfile +++ b/apps/hash-frontend/docker/Dockerfile @@ -26,16 +26,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked npm:turbo yq COPY . . -# `turbo prune` does not include Cargo workspaces, so we create dummy projects for each workspace member RUN mise trust && \ - turbo prune '@apps/hash-frontend' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/app/out/full/$1" ] || ( \ - mkdir -p "/app/out/full/$(dirname "$1")/src" && \ - echo > "/app/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" $1)\"" > "/app/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /app/out/full/ + turbo prune '@apps/hash-frontend' --docker FROM mise AS rust diff --git a/apps/hash-frontend/docs/task-dependencies.json b/apps/hash-frontend/docs/task-dependencies.json index 53023e288e7..648b2179955 100644 --- a/apps/hash-frontend/docs/task-dependencies.json +++ b/apps/hash-frontend/docs/task-dependencies.json @@ -39,100 +39,98 @@ ], "cache": false, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "build:docker": { "dependsOn": [], "cache": false, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "codegen": { @@ -142,50 +140,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "dev": { @@ -207,50 +204,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -270,50 +266,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -336,50 +331,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -399,50 +393,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start": { @@ -454,50 +447,49 @@ "persistent": true, "affectedBy": [ "@apps/hash-api", - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:healthcheck": { @@ -513,50 +505,49 @@ "persistent": true, "affectedBy": [ "@apps/hash-api", - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:test:healthcheck": { @@ -583,50 +574,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/apps/hash-graph/Cargo.toml b/apps/hash-graph/Cargo.toml index a1cc7ed220d..6b6fcf55c5d 100644 --- a/apps/hash-graph/Cargo.toml +++ b/apps/hash-graph/Cargo.toml @@ -1,14 +1,11 @@ [package] -name = "hash-graph" -version.workspace = true +authors.workspace = true +description = "The entity-graph query-layer for the HASH datastore" edition.workspace = true license.workspace = true +name = "hash-graph" publish.workspace = true -authors.workspace = true -description = "The entity-graph query-layer for the HASH datastore" - -[package.metadata.sync.turborepo] -package-name = "@apps/hash-graph" +version.workspace = true [dependencies] # Workspace dependencies diff --git a/apps/hash-graph/docker/Dockerfile b/apps/hash-graph/docker/Dockerfile index 285ea1074e5..744faa4de9d 100644 --- a/apps/hash-graph/docker/Dockerfile +++ b/apps/hash-graph/docker/Dockerfile @@ -30,16 +30,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked npm:turbo yq COPY . . -# `turbo prune` does not include Cargo workspaces, so we create dummy projects for each workspace member RUN mise trust && \ - turbo prune '@apps/hash-graph' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/app/out/full/$1" ] || ( \ - mkdir -p "/app/out/full/$(dirname "$1")/src" && \ - echo > "/app/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" -p toml -oy $1)\"" > "/app/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /app/out/full/ + turbo prune 'hash-graph' --docker FROM mise AS rust diff --git a/apps/hash-graph/docs/task-dependencies.json b/apps/hash-graph/docs/task-dependencies.json index 6f4af829768..ec6411f1802 100644 --- a/apps/hash-graph/docs/task-dependencies.json +++ b/apps/hash-graph/docs/task-dependencies.json @@ -1,27 +1,28 @@ { - "package": "@apps/hash-graph", + "package": "hash-graph", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/harpc-codec", - "@rust/harpc-server", - "@rust/hash-codec", - "@rust/hash-graph-api", - "@rust/hash-graph-atlas", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-type-fetcher", - "@rust/hash-telemetry", - "@rust/hash-temporal-client" + "error-stack", + "harpc-codec", + "harpc-server", + "hash-codec", + "hash-graph-api", + "hash-graph-atlas", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-type-fetcher", + "hash-telemetry", + "hash-temporal-client", + "type-system" ], "tasks": { "build:docker": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "build:docker:dev": { @@ -38,11 +39,12 @@ }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -54,7 +56,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "start": { @@ -101,7 +104,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/apps/hash-graph/package.json b/apps/hash-graph/package.json deleted file mode 100644 index 0c8a04f9a96..00000000000 --- a/apps/hash-graph/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@apps/hash-graph", - "version": "0.0.0-private", - "private": true, - "description": "The entity-graph query-layer for the HASH datastore", - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/harpc-codec": "workspace:*", - "@rust/harpc-server": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-api": "workspace:*", - "@rust/hash-graph-atlas": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-embeddings": "workspace:*", - "@rust/hash-graph-postgres-store": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-type-fetcher": "workspace:*", - "@rust/hash-telemetry": "workspace:*", - "@rust/hash-temporal-client": "workspace:*" - } -} diff --git a/apps/hash-graph/turbo.json b/apps/hash-graph/turbo.json index e87870354b1..e145b52630f 100644 --- a/apps/hash-graph/turbo.json +++ b/apps/hash-graph/turbo.json @@ -129,7 +129,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@apps/hash-graph"] + "command": ["mise", "run", "test:unit", "hash-graph"] } } } diff --git a/apps/hash-integration-worker/docker/Dockerfile b/apps/hash-integration-worker/docker/Dockerfile index 3a40accbf8d..2d3d916f91a 100644 --- a/apps/hash-integration-worker/docker/Dockerfile +++ b/apps/hash-integration-worker/docker/Dockerfile @@ -31,14 +31,7 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ COPY . . RUN mise trust && \ - turbo prune '@apps/hash-integration-worker' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/app/out/full/$1" ] || ( \ - mkdir -p "/app/out/full/$(dirname "$1")/src" && \ - echo > "/app/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" $1)\"" > "/app/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /app/out/full/ + turbo prune '@apps/hash-integration-worker' --docker FROM mise AS rust diff --git a/apps/hash-integration-worker/docs/task-dependencies.json b/apps/hash-integration-worker/docs/task-dependencies.json index 0f8a349e428..ed0c9b23e72 100644 --- a/apps/hash-integration-worker/docs/task-dependencies.json +++ b/apps/hash-integration-worker/docs/task-dependencies.json @@ -24,100 +24,98 @@ "@local/status#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "build:docker": { "dependsOn": [], "cache": false, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "dev": { @@ -134,50 +132,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -192,50 +189,49 @@ "@local/status#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -253,50 +249,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -311,50 +306,49 @@ "@local/status#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "sentry:sourcemaps": { @@ -362,105 +356,103 @@ "build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start": { "dependsOn": [ - "@apps/hash-graph#start:healthcheck", - "build" + "build", + "hash-graph#start:healthcheck" ], "cache": false, "persistent": true, "affectedBy": [ - "@apps/hash-graph", - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:healthcheck": { @@ -469,57 +461,56 @@ }, "start:test": { "dependsOn": [ - "@apps/hash-graph#start:test:healthcheck", - "build" + "build", + "hash-graph#start:test:healthcheck" ], "cache": false, "persistent": true, "affectedBy": [ - "@apps/hash-graph", - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "start:test:healthcheck": { diff --git a/apps/hash-integration-worker/turbo.json b/apps/hash-integration-worker/turbo.json index a84c26211fe..f90c96d1fed 100644 --- a/apps/hash-integration-worker/turbo.json +++ b/apps/hash-integration-worker/turbo.json @@ -9,10 +9,10 @@ "dependsOn": ["^build"] }, "start": { - "dependsOn": ["build", "@apps/hash-graph#start:healthcheck"] + "dependsOn": ["build", "hash-graph#start:healthcheck"] }, "start:test": { - "dependsOn": ["build", "@apps/hash-graph#start:test:healthcheck"] + "dependsOn": ["build", "hash-graph#start:test:healthcheck"] } } } diff --git a/apps/petrinaut-website/docs/task-dependencies.json b/apps/petrinaut-website/docs/task-dependencies.json index 94a80854a04..ac13bf29528 100644 --- a/apps/petrinaut-website/docs/task-dependencies.json +++ b/apps/petrinaut-website/docs/task-dependencies.json @@ -26,7 +26,6 @@ "env": [ "SENTRY_DSN", "VITE_BRUNCH_CHAT_ENDPOINT", - "VITE_PETRINAUT_DEFAULT_ASSISTANT", "VITE_VERCEL_ENV" ] }, @@ -121,7 +120,7 @@ "@apps/brunch-agent", "@blockprotocol/graph", "@blockprotocol/type-system", - "@blockprotocol/type-system-rs", + "@hashintel/brunch-agent-binding-flue", "@local/advanced-types", "@local/harpc-client", "@local/hash-backend-utils", @@ -133,49 +132,49 @@ "@local/hash-isomorphic-utils", "@local/internal-api-client", "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { diff --git a/apps/plugin-browser/docs/task-dependencies.json b/apps/plugin-browser/docs/task-dependencies.json index aa838196306..86856696b2d 100644 --- a/apps/plugin-browser/docs/task-dependencies.json +++ b/apps/plugin-browser/docs/task-dependencies.json @@ -26,50 +26,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "build:firefox": { @@ -85,50 +84,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "build:test": { @@ -144,50 +142,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "codegen": { @@ -195,50 +192,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "dev": { @@ -256,50 +252,49 @@ "cache": false, "persistent": true, "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -315,50 +310,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -377,50 +371,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -436,50 +429,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@blockprotocol/graph/docs/task-dependencies.json b/libs/@blockprotocol/graph/docs/task-dependencies.json index 82352323fa1..eb1beb58a19 100644 --- a/libs/@blockprotocol/graph/docs/task-dependencies.json +++ b/libs/@blockprotocol/graph/docs/task-dependencies.json @@ -12,14 +12,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "fix:eslint": { @@ -28,14 +28,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:eslint": { @@ -47,14 +47,14 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:tsc": { @@ -63,14 +63,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] } } diff --git a/libs/@blockprotocol/type-system/rust/Cargo.toml b/libs/@blockprotocol/type-system/rust/Cargo.toml index 995ce911414..63f18c5b5a9 100644 --- a/libs/@blockprotocol/type-system/rust/Cargo.toml +++ b/libs/@blockprotocol/type-system/rust/Cargo.toml @@ -1,16 +1,16 @@ [package] -name = "type-system" +authors.workspace = true description = "Definitions of types within the Block Protocol Type System" -version.workspace = true edition.workspace = true license = "MIT OR Apache-2.0" +name = "type-system" publish.workspace = true -authors.workspace = true repository = "https://github.com/hashintel/hash/tree/main/libs/@blockprotocol/type-system/rust" +version.workspace = true [lib] -name = "type_system" crate-type = ["cdylib", "rlib"] +name = "type_system" [dependencies] # Public workspace dependencies @@ -71,9 +71,3 @@ wasm-bindgen = { workspace = true, features = ["serde-serialize"] } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-bindgen-test = { workspace = true } - - -[package.metadata.sync.turborepo] -ignore-dev-dependencies = [ - "hash-graph-test-data", -] diff --git a/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json b/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json index 3f42614d3c1..1be9b19f0fb 100644 --- a/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json +++ b/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json @@ -1,25 +1,33 @@ { - "package": "@blockprotocol/type-system-rs", + "package": "type-system", "dependencies": [ - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning" ], "tasks": { "build:types": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "build:wasm": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -29,6 +37,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { @@ -37,10 +48,16 @@ ], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit:doc": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] } } } diff --git a/libs/@blockprotocol/type-system/rust/package.json b/libs/@blockprotocol/type-system/rust/package.json deleted file mode 100644 index 6751f42c673..00000000000 --- a/libs/@blockprotocol/type-system/rust/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "@blockprotocol/type-system-rs", - "version": "0.0.0-private", - "private": true, - "description": "Definitions of types within the Block Protocol Type System", - "license": "MIT OR Apache-2.0", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*" - }, - "devDependencies": { - "@rust/hash-codegen": "workspace:*" - } -} diff --git a/libs/@blockprotocol/type-system/typescript/docs/task-dependencies.json b/libs/@blockprotocol/type-system/typescript/docs/task-dependencies.json index 454b6b3f2de..ce72167db36 100644 --- a/libs/@blockprotocol/type-system/typescript/docs/task-dependencies.json +++ b/libs/@blockprotocol/type-system/typescript/docs/task-dependencies.json @@ -12,30 +12,30 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "codegen": { "dependsOn": [ - "@blockprotocol/type-system-rs#build:types", - "@blockprotocol/type-system-rs#build:wasm" + "type-system#build:types", + "type-system#build:wasm" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "fix:eslint": { @@ -45,14 +45,14 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:eslint": { @@ -65,14 +65,14 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:tsc": { @@ -82,14 +82,14 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "test:unit": { @@ -101,14 +101,14 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] } } diff --git a/libs/@blockprotocol/type-system/typescript/scripts/prepublish.ts b/libs/@blockprotocol/type-system/typescript/scripts/prepublish.ts index 58015e7e471..2c618e0456b 100644 --- a/libs/@blockprotocol/type-system/typescript/scripts/prepublish.ts +++ b/libs/@blockprotocol/type-system/typescript/scripts/prepublish.ts @@ -17,8 +17,6 @@ const updatePackageJson = () => { delete packageJson.devDependencies; - delete packageJson.dependencies["@blockprotocol/type-system-rs"]; - fs.writeFileSync( packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`, @@ -27,7 +25,7 @@ const updatePackageJson = () => { /** * `Real` is the only type the generated declarations pull from another crate. Inlining it keeps the - * published package free of a dependency on the unpublished `@rust/hash-codec`. + * published package free of a dependency on the unpublished `hash-codec` crate. */ const inlineUtilityTypes = () => { const generatedDir = path.join(packageRoot, "src", "generated"); diff --git a/libs/@blockprotocol/type-system/typescript/turbo.json b/libs/@blockprotocol/type-system/typescript/turbo.json index 0d9f06722a9..2e0b6558aaf 100644 --- a/libs/@blockprotocol/type-system/typescript/turbo.json +++ b/libs/@blockprotocol/type-system/typescript/turbo.json @@ -2,22 +2,16 @@ "extends": ["//"], "tasks": { "manifest": { - "dependsOn": ["^manifest", "@blockprotocol/type-system-rs#manifest"] + "dependsOn": ["^manifest", "type-system#manifest"] }, "codegen": { - "dependsOn": [ - "@blockprotocol/type-system-rs#build:types", - "@blockprotocol/type-system-rs#build:wasm" - ], + "dependsOn": ["type-system#build:types", "type-system#build:wasm"], "inputs": [ "$TURBO_DEFAULT$", { "mode": "dependencyOutputs", "globs": ["types/index.snap.d.ts", "pkg/type-system.d.ts"], - "from": [ - "@blockprotocol/type-system-rs#build:types", - "@blockprotocol/type-system-rs#build:wasm" - ] + "from": ["type-system#build:types", "type-system#build:wasm"] } ], "outputs": ["src/generated/**"] diff --git a/libs/@hashintel/block-design-system/docs/task-dependencies.json b/libs/@hashintel/block-design-system/docs/task-dependencies.json index 30f1cf1647b..b90846c0ff3 100644 --- a/libs/@hashintel/block-design-system/docs/task-dependencies.json +++ b/libs/@hashintel/block-design-system/docs/task-dependencies.json @@ -15,14 +15,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:eslint": { @@ -35,14 +35,14 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:tsc": { @@ -52,14 +52,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] } } diff --git a/libs/@hashintel/design-system/docs/task-dependencies.json b/libs/@hashintel/design-system/docs/task-dependencies.json index 1c754739c16..4b63595d476 100644 --- a/libs/@hashintel/design-system/docs/task-dependencies.json +++ b/libs/@hashintel/design-system/docs/task-dependencies.json @@ -12,14 +12,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:eslint": { @@ -31,14 +31,14 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:tsc": { @@ -47,14 +47,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] } } diff --git a/libs/@hashintel/query-editor/docs/task-dependencies.json b/libs/@hashintel/query-editor/docs/task-dependencies.json index f1b78aa5df8..2eed2e6484b 100644 --- a/libs/@hashintel/query-editor/docs/task-dependencies.json +++ b/libs/@hashintel/query-editor/docs/task-dependencies.json @@ -14,14 +14,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:eslint": { @@ -34,14 +34,14 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:tsc": { @@ -51,14 +51,14 @@ "@local/eslint#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-temporal-versioning", + "type-system" ] } } diff --git a/libs/@hashintel/type-editor/docs/task-dependencies.json b/libs/@hashintel/type-editor/docs/task-dependencies.json index ecae25b5662..2bd171d7acc 100644 --- a/libs/@hashintel/type-editor/docs/task-dependencies.json +++ b/libs/@hashintel/type-editor/docs/task-dependencies.json @@ -16,50 +16,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -73,50 +72,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -127,50 +125,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@local/codec/rust/docs/task-dependencies.json b/libs/@local/codec/rust/docs/task-dependencies.json index f455a928c78..b22c37d84f4 100644 --- a/libs/@local/codec/rust/docs/task-dependencies.json +++ b/libs/@local/codec/rust/docs/task-dependencies.json @@ -1,22 +1,27 @@ { - "package": "@rust/hash-codec", + "package": "hash-codec", "dependencies": [ - "@rust/error-stack", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codegen" + "error-stack", + "harpc-types", + "harpc-wire-protocol", + "hash-codegen" ], "tasks": { "build:types": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -26,12 +31,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/codec/rust/package.json b/libs/@local/codec/rust/package.json deleted file mode 100644 index b5fe74b668e..00000000000 --- a/libs/@local/codec/rust/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@rust/hash-codec", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-wire-protocol": "workspace:*" - }, - "devDependencies": { - "@rust/harpc-types": "workspace:*", - "@rust/hash-codegen": "workspace:*" - } -} diff --git a/libs/@local/codec/rust/turbo.json b/libs/@local/codec/rust/turbo.json index e68c45ddcdb..0248867b635 100644 --- a/libs/@local/codec/rust/turbo.json +++ b/libs/@local/codec/rust/turbo.json @@ -49,7 +49,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-codec"] + "command": ["mise", "run", "test:unit", "hash-codec"] } } } diff --git a/libs/@local/codec/typescript/docs/task-dependencies.json b/libs/@local/codec/typescript/docs/task-dependencies.json index 748cfec3c14..76ad377f733 100644 --- a/libs/@local/codec/typescript/docs/task-dependencies.json +++ b/libs/@local/codec/typescript/docs/task-dependencies.json @@ -9,25 +9,25 @@ "codegen" ], "affectedBy": [ - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen" ] }, "codegen": { "dependsOn": [ - "@rust/hash-codec#build:types" + "hash-codec#build:types" ], "affectedBy": [ - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen" ] }, "lint:tsc": { @@ -35,12 +35,12 @@ "codegen" ], "affectedBy": [ - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen" ] } } diff --git a/libs/@local/codec/typescript/turbo.json b/libs/@local/codec/typescript/turbo.json index ab64387eb76..1049a5a9853 100644 --- a/libs/@local/codec/typescript/turbo.json +++ b/libs/@local/codec/typescript/turbo.json @@ -2,16 +2,16 @@ "extends": ["//"], "tasks": { "manifest": { - "dependsOn": ["^manifest", "@rust/hash-codec#manifest"] + "dependsOn": ["^manifest", "hash-codec#manifest"] }, "codegen": { - "dependsOn": ["@rust/hash-codec#build:types"], + "dependsOn": ["hash-codec#build:types"], "inputs": [ "$TURBO_DEFAULT$", { "mode": "dependencyOutputs", "globs": ["types/index.snap.d.ts"], - "from": ["@rust/hash-codec#build:types"] + "from": ["hash-codec#build:types"] } ], "outputs": ["src/generated/**"] diff --git a/libs/@local/codegen/docs/task-dependencies.json b/libs/@local/codegen/docs/task-dependencies.json index 5e8efa4962b..608c7c1bcf4 100644 --- a/libs/@local/codegen/docs/task-dependencies.json +++ b/libs/@local/codegen/docs/task-dependencies.json @@ -1,14 +1,17 @@ { - "package": "@rust/hash-codegen", + "package": "hash-codegen", "dependencies": [], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack", + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { diff --git a/libs/@local/codegen/package.json b/libs/@local/codegen/package.json deleted file mode 100644 index b2f28bc73fa..00000000000 --- a/libs/@local/codegen/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@rust/hash-codegen", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3" -} diff --git a/libs/@local/config/docs/task-dependencies.json b/libs/@local/config/docs/task-dependencies.json index d6cb3b10a92..d043dd7443e 100644 --- a/libs/@local/config/docs/task-dependencies.json +++ b/libs/@local/config/docs/task-dependencies.json @@ -1,16 +1,18 @@ { - "package": "@rust/hash-config", + "package": "hash-config", "dependencies": [ - "@rust/error-stack" + "error-stack" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -20,12 +22,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/config/package.json b/libs/@local/config/package.json deleted file mode 100644 index 73907f875b5..00000000000 --- a/libs/@local/config/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@rust/hash-config", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*" - } -} diff --git a/libs/@local/config/turbo.json b/libs/@local/config/turbo.json index 2d6f5135e88..dfb49ca0047 100644 --- a/libs/@local/config/turbo.json +++ b/libs/@local/config/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-config"] + "command": ["mise", "run", "test:unit", "hash-config"] } } } diff --git a/libs/@local/effect-dns/hickory/rust/docs/task-dependencies.json b/libs/@local/effect-dns/hickory/rust/docs/task-dependencies.json index 1c02dc55a2c..a12d789c960 100644 --- a/libs/@local/effect-dns/hickory/rust/docs/task-dependencies.json +++ b/libs/@local/effect-dns/hickory/rust/docs/task-dependencies.json @@ -1,14 +1,17 @@ { - "package": "@rust/effect-dns-hickory", + "package": "effect-dns-hickory", "dependencies": [], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack", + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { diff --git a/libs/@local/effect-dns/hickory/rust/package.json b/libs/@local/effect-dns/hickory/rust/package.json deleted file mode 100644 index adf3d93f210..00000000000 --- a/libs/@local/effect-dns/hickory/rust/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@rust/effect-dns-hickory", - "version": "0.0.0-private", - "private": true, - "description": "Hickory DNS implementation of DNS effect library", - "license": "MIT OR Apache-2.0" -} diff --git a/libs/@local/effect-dns/hickory/typescript/docs/task-dependencies.json b/libs/@local/effect-dns/hickory/typescript/docs/task-dependencies.json index a42fa74ac27..e7748a186d4 100644 --- a/libs/@local/effect-dns/hickory/typescript/docs/task-dependencies.json +++ b/libs/@local/effect-dns/hickory/typescript/docs/task-dependencies.json @@ -10,7 +10,7 @@ "@local/eslint#build" ], "affectedBy": [ - "@rust/effect-dns-hickory" + "effect-dns-hickory" ] }, "fix:eslint": { @@ -26,7 +26,7 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@rust/effect-dns-hickory" + "effect-dns-hickory" ] }, "lint:tsc": { @@ -34,7 +34,7 @@ "build" ], "affectedBy": [ - "@rust/effect-dns-hickory" + "effect-dns-hickory" ] }, "test:unit": { @@ -45,7 +45,7 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/effect-dns-hickory" + "effect-dns-hickory" ] } } diff --git a/libs/@local/effect-dns/hickory/typescript/turbo.json b/libs/@local/effect-dns/hickory/typescript/turbo.json index 00d9b5945c4..4e111798028 100644 --- a/libs/@local/effect-dns/hickory/typescript/turbo.json +++ b/libs/@local/effect-dns/hickory/typescript/turbo.json @@ -3,10 +3,10 @@ "extends": ["//"], "tasks": { "manifest": { - "dependsOn": ["^manifest", "@rust/effect-dns-hickory#manifest"] + "dependsOn": ["^manifest", "effect-dns-hickory#manifest"] }, "build": { - "dependsOn": ["^build", "@rust/effect-dns-hickory#manifest"], + "dependsOn": ["^build", "effect-dns-hickory#manifest"], "inputs": [ "$TURBO_DEFAULT$", "../rust/src/**", diff --git a/libs/@local/graph/api/docs/task-dependencies.json b/libs/@local/graph/api/docs/task-dependencies.json index cfcc8ffe0bd..e2df32e3295 100644 --- a/libs/@local/graph/api/docs/task-dependencies.json +++ b/libs/@local/graph/api/docs/task-dependencies.json @@ -1,49 +1,51 @@ { - "package": "@rust/hash-graph-api", + "package": "hash-graph-api", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/hash-codec", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr" + "error-stack", + "harpc-client", + "harpc-codec", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "hash-codec", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ], "tasks": { "build:openapi": { "dependsOn": [], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -55,7 +57,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "lint:openapi": { @@ -64,7 +67,8 @@ ], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -75,7 +79,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/graph/api/package.json b/libs/@local/graph/api/package.json deleted file mode 100644 index 1f3a7934f66..00000000000 --- a/libs/@local/graph/api/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@rust/hash-graph-api", - "version": "0.0.0-private", - "private": true, - "description": "HASH Graph API", - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/harpc-client": "workspace:*", - "@rust/harpc-codec": "workspace:*", - "@rust/harpc-server": "workspace:*", - "@rust/harpc-system": "workspace:*", - "@rust/harpc-tower": "workspace:*", - "@rust/harpc-types": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-authentication": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-embeddings": "workspace:*", - "@rust/hash-graph-postgres-store": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-type-fetcher": "workspace:*", - "@rust/hash-graph-types": "workspace:*", - "@rust/hash-graph-validation": "workspace:*", - "@rust/hash-middleware": "workspace:*", - "@rust/hash-status": "workspace:*", - "@rust/hash-temporal-client": "workspace:*", - "@rust/hashql-ast": "workspace:*", - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*", - "@rust/hashql-eval": "workspace:*", - "@rust/hashql-hir": "workspace:*", - "@rust/hashql-mir": "workspace:*", - "@rust/hashql-syntax-jexpr": "workspace:*" - } -} diff --git a/libs/@local/graph/api/turbo.json b/libs/@local/graph/api/turbo.json index db2d63b944b..4f5fdb8c57f 100644 --- a/libs/@local/graph/api/turbo.json +++ b/libs/@local/graph/api/turbo.json @@ -46,7 +46,7 @@ "cache": false }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-graph-api"], + "command": ["mise", "run", "test:unit", "hash-graph-api"], "dependsOn": ["^manifest", "lint:openapi"] } } diff --git a/libs/@local/graph/atlas/docker/Dockerfile b/libs/@local/graph/atlas/docker/Dockerfile index 6d37ca7ad0e..311c710b74b 100644 --- a/libs/@local/graph/atlas/docker/Dockerfile +++ b/libs/@local/graph/atlas/docker/Dockerfile @@ -33,16 +33,8 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked npm:turbo yq COPY . . -# `turbo prune` does not include Cargo workspaces, so we create dummy projects for each workspace member RUN mise trust && \ - turbo prune '@rust/hash-graph-atlas' --docker && \ - find $(yq '.workspace.members' -o tsv Cargo.toml | tr '*' ' ') -maxdepth 2 -name Cargo.toml -exec sh -c ' \ - [ -f "/app/out/full/$1" ] || ( \ - mkdir -p "/app/out/full/$(dirname "$1")/src" && \ - echo > "/app/out/full/$(dirname "$1")/src/lib.rs" && \ - printf "[package]\nname = \"$(yq ".package.name" -p toml -oy $1)\"" > "/app/out/full/$1" \ - )' _ {} \; && \ - cp -R .cargo Cargo.toml Cargo.lock /app/out/full/ + turbo prune 'hash-graph-atlas' --docker # We use the explicit version here, as `nvcc` determines the version, and if absent chooses the newest toolkit known. diff --git a/libs/@local/graph/atlas/docs/task-dependencies.json b/libs/@local/graph/atlas/docs/task-dependencies.json index a812fc20d18..665d881c04b 100644 --- a/libs/@local/graph/atlas/docs/task-dependencies.json +++ b/libs/@local/graph/atlas/docs/task-dependencies.json @@ -1,35 +1,37 @@ { - "package": "@rust/hash-graph-atlas", + "package": "hash-graph-atlas", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/error-stack", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-types", - "@rust/hash-middleware", - "@rust/hash-temporal-client", - "@rust/hashql-core" + "darwin-kperf-criterion", + "darwin-kperf-events", + "error-stack", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-types", + "hash-middleware", + "hash-temporal-client", + "hashql-core", + "type-system" ], "tasks": { "build:docker": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -41,7 +43,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:integration": { @@ -50,13 +53,15 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:miri": { "dependsOn": [], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -65,7 +70,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/graph/atlas/package.json b/libs/@local/graph/atlas/package.json deleted file mode 100644 index e0309a42240..00000000000 --- a/libs/@local/graph/atlas/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "@rust/hash-graph-atlas", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-embeddings": "workspace:*", - "@rust/hash-graph-postgres-store": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-types": "workspace:*", - "@rust/hash-middleware": "workspace:*", - "@rust/hash-temporal-client": "workspace:*", - "@rust/hashql-core": "workspace:*" - }, - "devDependencies": { - "@rust/darwin-kperf-criterion": "workspace:*", - "@rust/darwin-kperf-events": "workspace:*" - } -} diff --git a/libs/@local/graph/atlas/turbo.json b/libs/@local/graph/atlas/turbo.json index cccafd40adf..1587e9ddc39 100644 --- a/libs/@local/graph/atlas/turbo.json +++ b/libs/@local/graph/atlas/turbo.json @@ -63,7 +63,7 @@ "mise", "run", "test:unit", - "@rust/hash-graph-atlas", + "hash-graph-atlas", "--", "--filterset", "not kind(test)" diff --git a/libs/@local/graph/authentication/docs/task-dependencies.json b/libs/@local/graph/authentication/docs/task-dependencies.json index cba5eb9a69e..18f6ec9538d 100644 --- a/libs/@local/graph/authentication/docs/task-dependencies.json +++ b/libs/@local/graph/authentication/docs/task-dependencies.json @@ -1,21 +1,22 @@ { - "package": "@rust/hash-graph-authentication", + "package": "hash-graph-authentication", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-graph-authorization", - "@rust/hash-graph-store", - "@rust/hash-middleware", - "@rust/problematic" + "error-stack", + "hash-graph-authorization", + "hash-graph-store", + "hash-middleware", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -25,18 +26,27 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:integration": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/authentication/package.json b/libs/@local/graph/authentication/package.json deleted file mode 100644 index e07468eeb5d..00000000000 --- a/libs/@local/graph/authentication/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@rust/hash-graph-authentication", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-middleware": "workspace:*" - }, - "devDependencies": { - "@rust/problematic": "workspace:*" - } -} diff --git a/libs/@local/graph/authentication/turbo.json b/libs/@local/graph/authentication/turbo.json index ae43ce16443..ad018ec2b8a 100644 --- a/libs/@local/graph/authentication/turbo.json +++ b/libs/@local/graph/authentication/turbo.json @@ -43,7 +43,7 @@ "mise", "run", "test:unit", - "@rust/hash-graph-authentication", + "hash-graph-authentication", "--", "--filterset", "not kind(test)" diff --git a/libs/@local/graph/authorization/rust/docs/task-dependencies.json b/libs/@local/graph/authorization/rust/docs/task-dependencies.json index 031710751e8..b372b39f814 100644 --- a/libs/@local/graph/authorization/rust/docs/task-dependencies.json +++ b/libs/@local/graph/authorization/rust/docs/task-dependencies.json @@ -1,22 +1,27 @@ { - "package": "@rust/hash-graph-authorization", + "package": "hash-graph-authorization", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-codegen" + "error-stack", + "hash-codec", + "hash-codegen", + "type-system" ], "tasks": { "build:types": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -26,18 +31,27 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:integration": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/authorization/rust/package.json b/libs/@local/graph/authorization/rust/package.json deleted file mode 100644 index 503047f92e8..00000000000 --- a/libs/@local/graph/authorization/rust/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@rust/hash-graph-authorization", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*" - }, - "devDependencies": { - "@rust/hash-codegen": "workspace:*" - } -} diff --git a/libs/@local/graph/authorization/rust/turbo.json b/libs/@local/graph/authorization/rust/turbo.json index 5c48f8ca700..5a343b54993 100644 --- a/libs/@local/graph/authorization/rust/turbo.json +++ b/libs/@local/graph/authorization/rust/turbo.json @@ -65,7 +65,7 @@ "mise", "run", "test:unit", - "@rust/hash-graph-authorization", + "hash-graph-authorization", "--test-strategy=powerset", "--", "--all-targets", diff --git a/libs/@local/graph/authorization/typescript/docs/task-dependencies.json b/libs/@local/graph/authorization/typescript/docs/task-dependencies.json index 589b1e8f516..67daf7eaccb 100644 --- a/libs/@local/graph/authorization/typescript/docs/task-dependencies.json +++ b/libs/@local/graph/authorization/typescript/docs/task-dependencies.json @@ -11,31 +11,31 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-temporal-versioning", + "type-system" ] }, "codegen": { "dependsOn": [ - "@rust/hash-graph-authorization#build:types" + "hash-graph-authorization#build:types" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-temporal-versioning", + "type-system" ] }, "lint:tsc": { @@ -44,15 +44,15 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-temporal-versioning", + "type-system" ] } } diff --git a/libs/@local/graph/authorization/typescript/turbo.json b/libs/@local/graph/authorization/typescript/turbo.json index 57518959b83..390b74ea499 100644 --- a/libs/@local/graph/authorization/typescript/turbo.json +++ b/libs/@local/graph/authorization/typescript/turbo.json @@ -2,16 +2,16 @@ "extends": ["//"], "tasks": { "manifest": { - "dependsOn": ["^manifest", "@rust/hash-graph-authorization#manifest"] + "dependsOn": ["^manifest", "hash-graph-authorization#manifest"] }, "codegen": { - "dependsOn": ["@rust/hash-graph-authorization#build:types"], + "dependsOn": ["hash-graph-authorization#build:types"], "inputs": [ "$TURBO_DEFAULT$", { "mode": "dependencyOutputs", "globs": ["types/index.snap.d.ts"], - "from": ["@rust/hash-graph-authorization#build:types"] + "from": ["hash-graph-authorization#build:types"] } ], "outputs": ["src/generated/**"] diff --git a/libs/@local/graph/client/typescript/docs/task-dependencies.json b/libs/@local/graph/client/typescript/docs/task-dependencies.json index ff9a4b08117..bf18fe5a63d 100644 --- a/libs/@local/graph/client/typescript/docs/task-dependencies.json +++ b/libs/@local/graph/client/typescript/docs/task-dependencies.json @@ -9,101 +9,97 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "codegen": { "dependsOn": [], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@local/graph/client/typescript/turbo.json b/libs/@local/graph/client/typescript/turbo.json index 27d6d10d8bb..6f317d21142 100644 --- a/libs/@local/graph/client/typescript/turbo.json +++ b/libs/@local/graph/client/typescript/turbo.json @@ -2,18 +2,18 @@ "extends": ["//"], "tasks": { "manifest": { - "dependsOn": ["^manifest", "@rust/hash-graph-api#manifest"] + "dependsOn": ["^manifest", "hash-graph-api#manifest"] }, "build": { "dependsOn": ["codegen", "^manifest"], "outputs": ["./dist/**"] }, - // The spec is read from its checked-in copy. `@rust/hash-graph-api#build:openapi` + // The spec is read from its checked-in copy. `hash-graph-api#build:openapi` // writes it and that package's `test:unit` diffs it, so depending on the task // here would only add a Graph API compile to every consumer's build. The manifest // edge keeps a change in the crate selecting this package. "codegen": { - "dependsOn": ["@rust/hash-graph-api#manifest"], + "dependsOn": ["hash-graph-api#manifest"], "inputs": [ "$TURBO_DEFAULT$", "../../api/openapi/openapi.json", diff --git a/libs/@local/graph/embeddings/docs/task-dependencies.json b/libs/@local/graph/embeddings/docs/task-dependencies.json index c9714ef9fd2..202f936b5c1 100644 --- a/libs/@local/graph/embeddings/docs/task-dependencies.json +++ b/libs/@local/graph/embeddings/docs/task-dependencies.json @@ -1,25 +1,28 @@ { - "package": "@rust/hash-graph-embeddings", + "package": "hash-graph-embeddings", "dependencies": [ - "@rust/darwin-kperf-criterion", - "@rust/error-stack", - "@rust/hash-graph-types" + "darwin-kperf-criterion", + "error-stack", + "hash-graph-types" ], "tasks": { "build:codspeed": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -31,20 +34,23 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:codspeed": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:miri": { "dependsOn": [], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -53,7 +59,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/graph/embeddings/package.json b/libs/@local/graph/embeddings/package.json deleted file mode 100644 index 2daff7314fd..00000000000 --- a/libs/@local/graph/embeddings/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@rust/hash-graph-embeddings", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-types": "workspace:*" - }, - "devDependencies": { - "@rust/darwin-kperf-criterion": "workspace:*" - } -} diff --git a/libs/@local/graph/embeddings/turbo.json b/libs/@local/graph/embeddings/turbo.json index 92e38f89d35..1708e86b0da 100644 --- a/libs/@local/graph/embeddings/turbo.json +++ b/libs/@local/graph/embeddings/turbo.json @@ -46,7 +46,7 @@ ] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-graph-embeddings"] + "command": ["mise", "run", "test:unit", "hash-graph-embeddings"] } } } diff --git a/libs/@local/graph/migrations-macros/docs/task-dependencies.json b/libs/@local/graph/migrations-macros/docs/task-dependencies.json index 0cdc1b3b2fa..b83503cd42c 100644 --- a/libs/@local/graph/migrations-macros/docs/task-dependencies.json +++ b/libs/@local/graph/migrations-macros/docs/task-dependencies.json @@ -1,14 +1,17 @@ { - "package": "@rust/hash-graph-migrations-macros", + "package": "hash-graph-migrations-macros", "dependencies": [], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack", + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { diff --git a/libs/@local/graph/migrations-macros/package.json b/libs/@local/graph/migrations-macros/package.json deleted file mode 100644 index 85a9b34e6c9..00000000000 --- a/libs/@local/graph/migrations-macros/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@rust/hash-graph-migrations-macros", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3" -} diff --git a/libs/@local/graph/migrations/docs/task-dependencies.json b/libs/@local/graph/migrations/docs/task-dependencies.json index d1b72cd1859..6c195dfa8eb 100644 --- a/libs/@local/graph/migrations/docs/task-dependencies.json +++ b/libs/@local/graph/migrations/docs/task-dependencies.json @@ -1,18 +1,19 @@ { - "package": "@rust/hash-graph-migrations", + "package": "hash-graph-migrations", "dependencies": [ - "@rust/error-stack", - "@rust/hash-graph-migrations-macros", - "@rust/hash-telemetry" + "error-stack", + "hash-graph-migrations-macros", + "hash-telemetry" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -22,6 +23,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "start:migrate:down": { diff --git a/libs/@local/graph/migrations/package.json b/libs/@local/graph/migrations/package.json deleted file mode 100644 index 34bc8a0a3e9..00000000000 --- a/libs/@local/graph/migrations/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/hash-graph-migrations", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-migrations-macros": "workspace:*", - "@rust/hash-telemetry": "workspace:*" - } -} diff --git a/libs/@local/graph/postgres-store/Cargo.toml b/libs/@local/graph/postgres-store/Cargo.toml index 813e3634879..c4512258503 100644 --- a/libs/@local/graph/postgres-store/Cargo.toml +++ b/libs/@local/graph/postgres-store/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "hash-graph-postgres-store" -version.workspace = true +authors.workspace = true +description = "HASH Graph API" edition.workspace = true license.workspace = true +name = "hash-graph-postgres-store" publish.workspace = true -authors.workspace = true -description = "HASH Graph API" +version.workspace = true [dependencies] # Public workspace dependencies @@ -81,11 +81,3 @@ utoipa = [ [lints] workspace = true - - -[package.metadata.sync.turborepo] -# The self-dependency above only exists to enable the `test-utils` feature for test builds; a -# literal self-reference in `package.json` would make Turborepo reject the package graph. -ignore-dev-dependencies = [ - "hash-graph-postgres-store", -] diff --git a/libs/@local/graph/postgres-store/docs/task-dependencies.json b/libs/@local/graph/postgres-store/docs/task-dependencies.json index 56abe16c32f..9e1e23b1448 100644 --- a/libs/@local/graph/postgres-store/docs/task-dependencies.json +++ b/libs/@local/graph/postgres-store/docs/task-dependencies.json @@ -1,29 +1,30 @@ { - "package": "@rust/hash-graph-postgres-store", + "package": "hash-graph-postgres-store", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client" + "error-stack", + "hash-codec", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-types", + "hash-graph-validation", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -35,18 +36,20 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:integration": { "dependsOn": [ - "@rust/hash-graph-migrations#start:migrate:up" + "hash-graph-migrations#start:migrate:up" ], "env": [ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -55,7 +58,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/graph/postgres-store/package.json b/libs/@local/graph/postgres-store/package.json deleted file mode 100644 index 9e423d1aa96..00000000000 --- a/libs/@local/graph/postgres-store/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@rust/hash-graph-postgres-store", - "version": "0.0.0-private", - "private": true, - "description": "HASH Graph API", - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-embeddings": "workspace:*", - "@rust/hash-graph-migrations": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-types": "workspace:*", - "@rust/hash-graph-validation": "workspace:*", - "@rust/hash-status": "workspace:*", - "@rust/hash-temporal-client": "workspace:*" - }, - "devDependencies": { - "@rust/hash-graph-test-data": "workspace:*", - "@rust/hash-telemetry": "workspace:*" - } -} diff --git a/libs/@local/graph/postgres-store/turbo.json b/libs/@local/graph/postgres-store/turbo.json index ef471e3402e..8453ba51835 100644 --- a/libs/@local/graph/postgres-store/turbo.json +++ b/libs/@local/graph/postgres-store/turbo.json @@ -10,7 +10,7 @@ "--feature-powerset", "--tests" ], - "dependsOn": ["^manifest", "@rust/hash-graph-migrations#start:migrate:up"] + "dependsOn": ["^manifest", "hash-graph-migrations#start:migrate:up"] }, "doc:dependency-diagram": { "command": [ @@ -44,7 +44,7 @@ "mise", "run", "test:unit", - "@rust/hash-graph-postgres-store", + "hash-graph-postgres-store", "--test-strategy=powerset", "--", "--lib" diff --git a/libs/@local/graph/sdk/typescript/docs/task-dependencies.json b/libs/@local/graph/sdk/typescript/docs/task-dependencies.json index 43ac2339fc1..3d5054bf160 100644 --- a/libs/@local/graph/sdk/typescript/docs/task-dependencies.json +++ b/libs/@local/graph/sdk/typescript/docs/task-dependencies.json @@ -24,51 +24,49 @@ "@local/hash-graph-store#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -83,51 +81,49 @@ "@local/hash-graph-store#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -145,51 +141,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -204,51 +198,49 @@ "@local/hash-graph-store#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { @@ -266,51 +258,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@local/status", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@local/graph/store/rust/docs/task-dependencies.json b/libs/@local/graph/store/rust/docs/task-dependencies.json index 1ea37640785..480b5167e77 100644 --- a/libs/@local/graph/store/rust/docs/task-dependencies.json +++ b/libs/@local/graph/store/rust/docs/task-dependencies.json @@ -1,26 +1,31 @@ { - "package": "@rust/hash-graph-store", + "package": "hash-graph-store", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-types", - "@rust/hash-temporal-client" + "error-stack", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-temporal-versioning", + "hash-graph-types", + "hash-temporal-client", + "type-system" ], "tasks": { "build:types": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -30,12 +35,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/store/rust/package.json b/libs/@local/graph/store/rust/package.json deleted file mode 100644 index 3baec136113..00000000000 --- a/libs/@local/graph/store/rust/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@rust/hash-graph-store", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-types": "workspace:*", - "@rust/hash-temporal-client": "workspace:*" - }, - "devDependencies": { - "@rust/hash-codegen": "workspace:*" - } -} diff --git a/libs/@local/graph/store/rust/turbo.json b/libs/@local/graph/store/rust/turbo.json index cfb8554c830..a98d95d201e 100644 --- a/libs/@local/graph/store/rust/turbo.json +++ b/libs/@local/graph/store/rust/turbo.json @@ -49,7 +49,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-graph-store"] + "command": ["mise", "run", "test:unit", "hash-graph-store"] } } } diff --git a/libs/@local/graph/store/typescript/docs/task-dependencies.json b/libs/@local/graph/store/typescript/docs/task-dependencies.json index 8c0b74ff801..09a10c82b4c 100644 --- a/libs/@local/graph/store/typescript/docs/task-dependencies.json +++ b/libs/@local/graph/store/typescript/docs/task-dependencies.json @@ -13,37 +13,37 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-types", - "@rust/hash-temporal-client" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-types", + "hash-temporal-client", + "type-system" ] }, "codegen": { "dependsOn": [ - "@rust/hash-graph-store#build:types" + "hash-graph-store#build:types" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-types", - "@rust/hash-temporal-client" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-types", + "hash-temporal-client", + "type-system" ] }, "lint:tsc": { @@ -53,18 +53,18 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-authorization", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-types", - "@rust/hash-temporal-client" + "error-stack", + "error-stack-macros", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-authorization", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-types", + "hash-temporal-client", + "type-system" ] } } diff --git a/libs/@local/graph/store/typescript/turbo.json b/libs/@local/graph/store/typescript/turbo.json index ae3ff7c6375..6dac47aa89d 100644 --- a/libs/@local/graph/store/typescript/turbo.json +++ b/libs/@local/graph/store/typescript/turbo.json @@ -2,16 +2,16 @@ "extends": ["//"], "tasks": { "manifest": { - "dependsOn": ["^manifest", "@rust/hash-graph-store#manifest"] + "dependsOn": ["^manifest", "hash-graph-store#manifest"] }, "codegen": { - "dependsOn": ["@rust/hash-graph-store#build:types"], + "dependsOn": ["hash-graph-store#build:types"], "inputs": [ "$TURBO_DEFAULT$", { "mode": "dependencyOutputs", "globs": ["types/index.snap.d.ts"], - "from": ["@rust/hash-graph-store#build:types"] + "from": ["hash-graph-store#build:types"] } ], "outputs": ["src/generated/**"] diff --git a/libs/@local/graph/temporal-versioning/docs/task-dependencies.json b/libs/@local/graph/temporal-versioning/docs/task-dependencies.json index 0f6783e5a44..ef4022481c1 100644 --- a/libs/@local/graph/temporal-versioning/docs/task-dependencies.json +++ b/libs/@local/graph/temporal-versioning/docs/task-dependencies.json @@ -1,16 +1,18 @@ { - "package": "@rust/hash-graph-temporal-versioning", + "package": "hash-graph-temporal-versioning", "dependencies": [ - "@rust/hash-codec" + "hash-codec" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -20,12 +22,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/temporal-versioning/package.json b/libs/@local/graph/temporal-versioning/package.json deleted file mode 100644 index c1b69fb5e95..00000000000 --- a/libs/@local/graph/temporal-versioning/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@rust/hash-graph-temporal-versioning", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hash-codec": "workspace:*" - } -} diff --git a/libs/@local/graph/temporal-versioning/turbo.json b/libs/@local/graph/temporal-versioning/turbo.json index 70031a2fc48..bea7bc2ef10 100644 --- a/libs/@local/graph/temporal-versioning/turbo.json +++ b/libs/@local/graph/temporal-versioning/turbo.json @@ -29,12 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": [ - "mise", - "run", - "test:unit", - "@rust/hash-graph-temporal-versioning" - ] + "command": ["mise", "run", "test:unit", "hash-graph-temporal-versioning"] } } } diff --git a/libs/@local/graph/type-fetcher/docs/task-dependencies.json b/libs/@local/graph/type-fetcher/docs/task-dependencies.json index 659e2d839d0..4594cdac4bd 100644 --- a/libs/@local/graph/type-fetcher/docs/task-dependencies.json +++ b/libs/@local/graph/type-fetcher/docs/task-dependencies.json @@ -1,22 +1,24 @@ { - "package": "@rust/hash-graph-type-fetcher", + "package": "hash-graph-type-fetcher", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-graph-authorization", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-types", - "@rust/hash-temporal-client" + "error-stack", + "hash-graph-authorization", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-types", + "hash-temporal-client", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -26,6 +28,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/type-fetcher/package.json b/libs/@local/graph/type-fetcher/package.json deleted file mode 100644 index 8e03260662f..00000000000 --- a/libs/@local/graph/type-fetcher/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@rust/hash-graph-type-fetcher", - "version": "0.0.0-private", - "private": true, - "description": "HTTP service to fetch external BP types", - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-types": "workspace:*", - "@rust/hash-temporal-client": "workspace:*" - } -} diff --git a/libs/@local/graph/types/Cargo.toml b/libs/@local/graph/types/Cargo.toml index 9c3c577c173..2ac89fd57f6 100644 --- a/libs/@local/graph/types/Cargo.toml +++ b/libs/@local/graph/types/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "hash-graph-types" -version.workspace = true +authors.workspace = true edition.workspace = true license.workspace = true +name = "hash-graph-types" publish.workspace = true -authors.workspace = true +version.workspace = true [dependencies] # Public workspace dependencies @@ -43,9 +43,3 @@ utoipa = ["dep:utoipa", "hash-graph-temporal-versioning/utoipa"] [lints] workspace = true - - -[package.metadata.sync.turborepo] -ignore-dev-dependencies = [ - "hash-graph-test-data", -] diff --git a/libs/@local/graph/types/docs/task-dependencies.json b/libs/@local/graph/types/docs/task-dependencies.json index 1638cbf0bca..9db45ba7582 100644 --- a/libs/@local/graph/types/docs/task-dependencies.json +++ b/libs/@local/graph/types/docs/task-dependencies.json @@ -1,19 +1,21 @@ { - "package": "@rust/hash-graph-types", + "package": "hash-graph-types", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-graph-temporal-versioning" + "error-stack", + "hash-codec", + "hash-graph-temporal-versioning", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -23,12 +25,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/types/package.json b/libs/@local/graph/types/package.json deleted file mode 100644 index dc64794bccf..00000000000 --- a/libs/@local/graph/types/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@rust/hash-graph-types", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*" - } -} diff --git a/libs/@local/graph/types/turbo.json b/libs/@local/graph/types/turbo.json index b660269d0eb..775edeec0f9 100644 --- a/libs/@local/graph/types/turbo.json +++ b/libs/@local/graph/types/turbo.json @@ -33,7 +33,7 @@ "mise", "run", "test:unit", - "@rust/hash-graph-types", + "hash-graph-types", "--", "--no-tests", "warn" diff --git a/libs/@local/graph/validation/docs/task-dependencies.json b/libs/@local/graph/validation/docs/task-dependencies.json index df97dd7ea29..acb22cac131 100644 --- a/libs/@local/graph/validation/docs/task-dependencies.json +++ b/libs/@local/graph/validation/docs/task-dependencies.json @@ -1,21 +1,23 @@ { - "package": "@rust/hash-graph-validation", + "package": "hash-graph-validation", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-types" + "error-stack", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-types", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -25,12 +27,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/graph/validation/package.json b/libs/@local/graph/validation/package.json deleted file mode 100644 index a2fb5af3bd1..00000000000 --- a/libs/@local/graph/validation/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@rust/hash-graph-validation", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-types": "workspace:*" - }, - "devDependencies": { - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-test-data": "workspace:*" - } -} diff --git a/libs/@local/graph/validation/turbo.json b/libs/@local/graph/validation/turbo.json index 4b1bf7e64af..4520df3d71e 100644 --- a/libs/@local/graph/validation/turbo.json +++ b/libs/@local/graph/validation/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-graph-validation"] + "command": ["mise", "run", "test:unit", "hash-graph-validation"] } } } diff --git a/libs/@local/harpc/client/rust/docs/task-dependencies.json b/libs/@local/harpc/client/rust/docs/task-dependencies.json index 781d7df9478..bbbecbc7889 100644 --- a/libs/@local/harpc/client/rust/docs/task-dependencies.json +++ b/libs/@local/harpc/client/rust/docs/task-dependencies.json @@ -1,21 +1,23 @@ { - "package": "@rust/harpc-client", + "package": "harpc-client", "dependencies": [ - "@rust/error-stack", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types" + "error-stack", + "harpc-codec", + "harpc-net", + "harpc-system", + "harpc-tower", + "harpc-types" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -25,6 +27,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/client/rust/package.json b/libs/@local/harpc/client/rust/package.json deleted file mode 100644 index a3853d1403c..00000000000 --- a/libs/@local/harpc/client/rust/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@rust/harpc-client", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-codec": "workspace:*", - "@rust/harpc-net": "workspace:*", - "@rust/harpc-system": "workspace:*", - "@rust/harpc-tower": "workspace:*", - "@rust/harpc-types": "workspace:*" - } -} diff --git a/libs/@local/harpc/client/typescript/docs/task-dependencies.json b/libs/@local/harpc/client/typescript/docs/task-dependencies.json index 7e3cc6cdf4f..9faddb53bbc 100644 --- a/libs/@local/harpc/client/typescript/docs/task-dependencies.json +++ b/libs/@local/harpc/client/typescript/docs/task-dependencies.json @@ -28,13 +28,13 @@ }, "test:unit": { "dependsOn": [ - "@rust/harpc-wire-protocol#build:cli" + "harpc-wire-protocol#build:cli" ], "env": [ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/harpc-wire-protocol" + "harpc-wire-protocol" ] } } diff --git a/libs/@local/harpc/client/typescript/turbo.json b/libs/@local/harpc/client/typescript/turbo.json index 0a92a1f6d65..0126dfa4b97 100644 --- a/libs/@local/harpc/client/typescript/turbo.json +++ b/libs/@local/harpc/client/typescript/turbo.json @@ -6,13 +6,13 @@ "outputs": ["./dist/**"] }, "test:unit": { - "dependsOn": ["@rust/harpc-wire-protocol#build:cli"], + "dependsOn": ["harpc-wire-protocol#build:cli"], "inputs": [ "$TURBO_DEFAULT$", { "mode": "dependencyOutputs", "globs": ["./dist/release/codec"], - "from": ["@rust/harpc-wire-protocol#build:cli"] + "from": ["harpc-wire-protocol#build:cli"] } ] } diff --git a/libs/@local/harpc/codec/docs/task-dependencies.json b/libs/@local/harpc/codec/docs/task-dependencies.json index 13f63fb1ea0..7d62d78703f 100644 --- a/libs/@local/harpc/codec/docs/task-dependencies.json +++ b/libs/@local/harpc/codec/docs/task-dependencies.json @@ -1,17 +1,19 @@ { - "package": "@rust/harpc-codec", + "package": "harpc-codec", "dependencies": [ - "@rust/error-stack", - "@rust/harpc-types" + "error-stack", + "harpc-types" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -21,12 +23,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/codec/package.json b/libs/@local/harpc/codec/package.json deleted file mode 100644 index dec67ab74dc..00000000000 --- a/libs/@local/harpc/codec/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/harpc-codec", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-types": "workspace:*" - } -} diff --git a/libs/@local/harpc/codec/turbo.json b/libs/@local/harpc/codec/turbo.json index 2bd671ad557..c277affaa1f 100644 --- a/libs/@local/harpc/codec/turbo.json +++ b/libs/@local/harpc/codec/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/harpc-codec"] + "command": ["mise", "run", "test:unit", "harpc-codec"] } } } diff --git a/libs/@local/harpc/net/docs/task-dependencies.json b/libs/@local/harpc/net/docs/task-dependencies.json index 18eed7a0dcf..7c067603765 100644 --- a/libs/@local/harpc/net/docs/task-dependencies.json +++ b/libs/@local/harpc/net/docs/task-dependencies.json @@ -1,20 +1,22 @@ { - "package": "@rust/harpc-net", + "package": "harpc-net", "dependencies": [ - "@rust/error-stack", - "@rust/harpc-codec", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec" + "error-stack", + "harpc-codec", + "harpc-types", + "harpc-wire-protocol", + "hash-codec" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -24,12 +26,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/net/package.json b/libs/@local/harpc/net/package.json deleted file mode 100644 index 47b08808c91..00000000000 --- a/libs/@local/harpc/net/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@rust/harpc-net", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-codec": "workspace:*", - "@rust/harpc-types": "workspace:*", - "@rust/harpc-wire-protocol": "workspace:*", - "@rust/hash-codec": "workspace:*" - } -} diff --git a/libs/@local/harpc/net/turbo.json b/libs/@local/harpc/net/turbo.json index e95f1701fbc..6ebce786d0f 100644 --- a/libs/@local/harpc/net/turbo.json +++ b/libs/@local/harpc/net/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/harpc-net"] + "command": ["mise", "run", "test:unit", "harpc-net"] } } } diff --git a/libs/@local/harpc/server/docs/task-dependencies.json b/libs/@local/harpc/server/docs/task-dependencies.json index d22a91e7900..f1022e94b84 100644 --- a/libs/@local/harpc/server/docs/task-dependencies.json +++ b/libs/@local/harpc/server/docs/task-dependencies.json @@ -1,23 +1,25 @@ { - "package": "@rust/harpc-server", + "package": "harpc-server", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types" + "error-stack", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-system", + "harpc-tower", + "harpc-types", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -27,6 +29,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/server/package.json b/libs/@local/harpc/server/package.json deleted file mode 100644 index 4d404d79f5d..00000000000 --- a/libs/@local/harpc/server/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@rust/harpc-server", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-codec": "workspace:*", - "@rust/harpc-net": "workspace:*", - "@rust/harpc-system": "workspace:*", - "@rust/harpc-tower": "workspace:*", - "@rust/harpc-types": "workspace:*" - }, - "devDependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/harpc-client": "workspace:*" - } -} diff --git a/libs/@local/harpc/system/docs/task-dependencies.json b/libs/@local/harpc/system/docs/task-dependencies.json index 4238c9fe868..4cc56d2a321 100644 --- a/libs/@local/harpc/system/docs/task-dependencies.json +++ b/libs/@local/harpc/system/docs/task-dependencies.json @@ -1,17 +1,19 @@ { - "package": "@rust/harpc-system", + "package": "harpc-system", "dependencies": [ - "@rust/harpc-tower", - "@rust/harpc-types" + "harpc-tower", + "harpc-types" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -21,6 +23,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/system/package.json b/libs/@local/harpc/system/package.json deleted file mode 100644 index f117aa39ea6..00000000000 --- a/libs/@local/harpc/system/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/harpc-system", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/harpc-tower": "workspace:*", - "@rust/harpc-types": "workspace:*" - } -} diff --git a/libs/@local/harpc/tower/docs/task-dependencies.json b/libs/@local/harpc/tower/docs/task-dependencies.json index 4f2e1b69687..ec3ff091cdd 100644 --- a/libs/@local/harpc/tower/docs/task-dependencies.json +++ b/libs/@local/harpc/tower/docs/task-dependencies.json @@ -1,19 +1,21 @@ { - "package": "@rust/harpc-tower", + "package": "harpc-tower", "dependencies": [ - "@rust/error-stack", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-types" + "error-stack", + "harpc-codec", + "harpc-net", + "harpc-types" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -23,12 +25,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/tower/package.json b/libs/@local/harpc/tower/package.json deleted file mode 100644 index ba4c9135a00..00000000000 --- a/libs/@local/harpc/tower/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@rust/harpc-tower", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-codec": "workspace:*", - "@rust/harpc-net": "workspace:*", - "@rust/harpc-types": "workspace:*" - } -} diff --git a/libs/@local/harpc/tower/turbo.json b/libs/@local/harpc/tower/turbo.json index de134ab5262..09572b9dc3b 100644 --- a/libs/@local/harpc/tower/turbo.json +++ b/libs/@local/harpc/tower/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/harpc-tower"] + "command": ["mise", "run", "test:unit", "harpc-tower"] } } } diff --git a/libs/@local/harpc/types/docs/task-dependencies.json b/libs/@local/harpc/types/docs/task-dependencies.json index 6379d281e09..53be847c1e3 100644 --- a/libs/@local/harpc/types/docs/task-dependencies.json +++ b/libs/@local/harpc/types/docs/task-dependencies.json @@ -1,14 +1,17 @@ { - "package": "@rust/harpc-types", + "package": "harpc-types", "dependencies": [], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack", + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { diff --git a/libs/@local/harpc/types/package.json b/libs/@local/harpc/types/package.json deleted file mode 100644 index 3ad1282d1b7..00000000000 --- a/libs/@local/harpc/types/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@rust/harpc-types", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3" -} diff --git a/libs/@local/harpc/types/turbo.json b/libs/@local/harpc/types/turbo.json index 83cbab0889b..8a0493547bc 100644 --- a/libs/@local/harpc/types/turbo.json +++ b/libs/@local/harpc/types/turbo.json @@ -33,7 +33,7 @@ "mise", "run", "test:unit", - "@rust/harpc-types", + "harpc-types", "--", "--no-tests", "warn" diff --git a/libs/@local/harpc/wire-protocol/docs/task-dependencies.json b/libs/@local/harpc/wire-protocol/docs/task-dependencies.json index 5d67ec51df5..84f86d94b4e 100644 --- a/libs/@local/harpc/wire-protocol/docs/task-dependencies.json +++ b/libs/@local/harpc/wire-protocol/docs/task-dependencies.json @@ -1,8 +1,8 @@ { - "package": "@rust/harpc-wire-protocol", + "package": "harpc-wire-protocol", "dependencies": [ - "@rust/error-stack", - "@rust/harpc-types" + "error-stack", + "harpc-types" ], "tasks": { "build:cli": { @@ -10,11 +10,13 @@ }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -24,15 +26,24 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:miri": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/harpc/wire-protocol/package.json b/libs/@local/harpc/wire-protocol/package.json deleted file mode 100644 index cfacbc2b9de..00000000000 --- a/libs/@local/harpc/wire-protocol/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/harpc-wire-protocol", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/harpc-types": "workspace:*" - } -} diff --git a/libs/@local/harpc/wire-protocol/turbo.json b/libs/@local/harpc/wire-protocol/turbo.json index 5312383dbd9..024dca2f3fe 100644 --- a/libs/@local/harpc/wire-protocol/turbo.json +++ b/libs/@local/harpc/wire-protocol/turbo.json @@ -47,7 +47,7 @@ "command": ["just", "miri"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/harpc-wire-protocol"] + "command": ["mise", "run", "test:unit", "harpc-wire-protocol"] } } } diff --git a/libs/@local/hash-backend-utils/docs/task-dependencies.json b/libs/@local/hash-backend-utils/docs/task-dependencies.json index 710a1a3d7af..8de16e0ed9a 100644 --- a/libs/@local/hash-backend-utils/docs/task-dependencies.json +++ b/libs/@local/hash-backend-utils/docs/task-dependencies.json @@ -26,50 +26,49 @@ "@local/status#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -85,50 +84,49 @@ "@local/status#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -147,50 +145,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -206,50 +203,49 @@ "@local/status#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { @@ -268,50 +264,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json b/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json index 366de589996..21911b74fe4 100644 --- a/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json +++ b/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json @@ -25,50 +25,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "codegen": { @@ -87,50 +86,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -149,50 +147,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -208,50 +205,49 @@ "codegen" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { @@ -270,50 +266,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@local/hashql/ast/Cargo.toml b/libs/@local/hashql/ast/Cargo.toml index 08373e9b04b..03ebbc6e813 100644 --- a/libs/@local/hashql/ast/Cargo.toml +++ b/libs/@local/hashql/ast/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "hashql-ast" -version.workspace = true +authors.workspace = true edition.workspace = true license.workspace = true +name = "hashql-ast" publish.workspace = true -authors.workspace = true +version.workspace = true [dependencies] # Public workspace dependencies @@ -25,10 +25,5 @@ hashql-compiletest = { workspace = true } workspace = true [[test]] -name = "compiletest" harness = false - -[package.metadata.sync.turborepo] -ignore-dev-dependencies = [ - "hashql-compiletest", -] +name = "compiletest" diff --git a/libs/@local/hashql/ast/docs/task-dependencies.json b/libs/@local/hashql/ast/docs/task-dependencies.json index 32a2c09560f..6778107db75 100644 --- a/libs/@local/hashql/ast/docs/task-dependencies.json +++ b/libs/@local/hashql/ast/docs/task-dependencies.json @@ -1,17 +1,19 @@ { - "package": "@rust/hashql-ast", + "package": "hashql-ast", "dependencies": [ - "@rust/hashql-core", - "@rust/hashql-diagnostics" + "hashql-core", + "hashql-diagnostics" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -23,7 +25,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -32,7 +35,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/ast/package.json b/libs/@local/hashql/ast/package.json deleted file mode 100644 index bf40657e3da..00000000000 --- a/libs/@local/hashql/ast/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/hashql-ast", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*" - } -} diff --git a/libs/@local/hashql/ast/turbo.json b/libs/@local/hashql/ast/turbo.json index 84540219bef..b0e2ebd40e3 100644 --- a/libs/@local/hashql/ast/turbo.json +++ b/libs/@local/hashql/ast/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-ast"] + "command": ["mise", "run", "test:unit", "hashql-ast"] } } } diff --git a/libs/@local/hashql/compiletest/docs/task-dependencies.json b/libs/@local/hashql/compiletest/docs/task-dependencies.json index ac6f30f3421..ac5d3840123 100644 --- a/libs/@local/hashql/compiletest/docs/task-dependencies.json +++ b/libs/@local/hashql/compiletest/docs/task-dependencies.json @@ -1,23 +1,24 @@ { - "package": "@rust/hashql-compiletest", + "package": "hashql-compiletest", "dependencies": [ - "@rust/error-stack", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr" + "error-stack", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-mir", + "hashql-syntax-jexpr" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -29,7 +30,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -38,7 +40,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/compiletest/package.json b/libs/@local/hashql/compiletest/package.json deleted file mode 100644 index 691e3661b31..00000000000 --- a/libs/@local/hashql/compiletest/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "@rust/hashql-compiletest", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/hashql-ast": "workspace:*", - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*", - "@rust/hashql-eval": "workspace:*", - "@rust/hashql-hir": "workspace:*", - "@rust/hashql-mir": "workspace:*", - "@rust/hashql-syntax-jexpr": "workspace:*" - } -} diff --git a/libs/@local/hashql/compiletest/turbo.json b/libs/@local/hashql/compiletest/turbo.json index 2dd0ef0d37c..696f361b06b 100644 --- a/libs/@local/hashql/compiletest/turbo.json +++ b/libs/@local/hashql/compiletest/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-compiletest"] + "command": ["mise", "run", "test:unit", "hashql-compiletest"] } } } diff --git a/libs/@local/hashql/core/docs/task-dependencies.json b/libs/@local/hashql/core/docs/task-dependencies.json index 6802d2df67f..d26715875a7 100644 --- a/libs/@local/hashql/core/docs/task-dependencies.json +++ b/libs/@local/hashql/core/docs/task-dependencies.json @@ -1,26 +1,29 @@ { - "package": "@rust/hashql-core", + "package": "hashql-core", "dependencies": [ - "@rust/darwin-kperf-criterion", - "@rust/hash-codec", - "@rust/hashql-diagnostics", - "@rust/hashql-macros" + "darwin-kperf-criterion", + "hash-codec", + "hashql-diagnostics", + "hashql-macros" ], "tasks": { "build:codspeed": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -32,20 +35,23 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:codspeed": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:miri": { "dependsOn": [], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -54,7 +60,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/core/package.json b/libs/@local/hashql/core/package.json deleted file mode 100644 index 464a078a6d8..00000000000 --- a/libs/@local/hashql/core/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@rust/hashql-core", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hash-codec": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*", - "@rust/hashql-macros": "workspace:*" - }, - "devDependencies": { - "@rust/darwin-kperf-criterion": "workspace:*" - } -} diff --git a/libs/@local/hashql/core/turbo.json b/libs/@local/hashql/core/turbo.json index 251b94eda5e..a373a036dc7 100644 --- a/libs/@local/hashql/core/turbo.json +++ b/libs/@local/hashql/core/turbo.json @@ -52,7 +52,7 @@ ] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-core"] + "command": ["mise", "run", "test:unit", "hashql-core"] } } } diff --git a/libs/@local/hashql/diagnostics/docs/task-dependencies.json b/libs/@local/hashql/diagnostics/docs/task-dependencies.json index 3c2c4b5d021..f2703a15ba0 100644 --- a/libs/@local/hashql/diagnostics/docs/task-dependencies.json +++ b/libs/@local/hashql/diagnostics/docs/task-dependencies.json @@ -1,14 +1,17 @@ { - "package": "@rust/hashql-diagnostics", + "package": "hashql-diagnostics", "dependencies": [], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack", + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { diff --git a/libs/@local/hashql/diagnostics/package.json b/libs/@local/hashql/diagnostics/package.json deleted file mode 100644 index 584875a9ced..00000000000 --- a/libs/@local/hashql/diagnostics/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@rust/hashql-diagnostics", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3" -} diff --git a/libs/@local/hashql/diagnostics/turbo.json b/libs/@local/hashql/diagnostics/turbo.json index bf748e2f7e7..4e390c6a17e 100644 --- a/libs/@local/hashql/diagnostics/turbo.json +++ b/libs/@local/hashql/diagnostics/turbo.json @@ -33,7 +33,7 @@ "mise", "run", "test:unit", - "@rust/hashql-diagnostics", + "hashql-diagnostics", "--test-strategy=powerset" ] } diff --git a/libs/@local/hashql/eval/Cargo.toml b/libs/@local/hashql/eval/Cargo.toml index 4e7354e993e..cf9d4788a1d 100644 --- a/libs/@local/hashql/eval/Cargo.toml +++ b/libs/@local/hashql/eval/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "hashql-eval" authors.workspace = true edition.workspace = true license.workspace = true +name = "hashql-eval" publish.workspace = true version.workspace = true @@ -52,14 +52,9 @@ type-system = { workspace = true } workspace = true [[test]] -name = "compiletest" harness = false +name = "compiletest" [[test]] -name = "orchestrator" harness = false - -[package.metadata.sync.turborepo] -ignore-dev-dependencies = [ - "hashql-compiletest", -] +name = "orchestrator" diff --git a/libs/@local/hashql/eval/docs/task-dependencies.json b/libs/@local/hashql/eval/docs/task-dependencies.json index 09b1d44c7d1..dea87686b2f 100644 --- a/libs/@local/hashql/eval/docs/task-dependencies.json +++ b/libs/@local/hashql/eval/docs/task-dependencies.json @@ -1,25 +1,26 @@ { - "package": "@rust/hashql-eval", + "package": "hashql-eval", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-graph-authorization", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-test-data", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-hir", - "@rust/hashql-mir" + "error-stack", + "hash-graph-authorization", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-test-data", + "hashql-core", + "hashql-diagnostics", + "hashql-hir", + "hashql-mir", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -31,13 +32,15 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:miri": { "dependsOn": [], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -46,7 +49,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/eval/package.json b/libs/@local/hashql/eval/package.json deleted file mode 100644 index d0e4d4d262f..00000000000 --- a/libs/@local/hashql/eval/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@rust/hashql-eval", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hash-graph-postgres-store": "workspace:*", - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*", - "@rust/hashql-hir": "workspace:*", - "@rust/hashql-mir": "workspace:*" - }, - "devDependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-test-data": "workspace:*" - } -} diff --git a/libs/@local/hashql/eval/turbo.json b/libs/@local/hashql/eval/turbo.json index 1f7d4a2dda0..2f374dca0f0 100644 --- a/libs/@local/hashql/eval/turbo.json +++ b/libs/@local/hashql/eval/turbo.json @@ -42,7 +42,7 @@ ] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-eval"] + "command": ["mise", "run", "test:unit", "hashql-eval"] } } } diff --git a/libs/@local/hashql/hir/Cargo.toml b/libs/@local/hashql/hir/Cargo.toml index 0383995d32d..ce4d6a41a63 100644 --- a/libs/@local/hashql/hir/Cargo.toml +++ b/libs/@local/hashql/hir/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "hashql-hir" authors.workspace = true edition.workspace = true license.workspace = true +name = "hashql-hir" publish.workspace = true version.workspace = true @@ -28,10 +28,5 @@ hashql-compiletest = { workspace = true } workspace = true [[test]] -name = "compiletest" harness = false - -[package.metadata.sync.turborepo] -ignore-dev-dependencies = [ - "hashql-compiletest", -] +name = "compiletest" diff --git a/libs/@local/hashql/hir/docs/task-dependencies.json b/libs/@local/hashql/hir/docs/task-dependencies.json index ee794772f2b..60481bca40f 100644 --- a/libs/@local/hashql/hir/docs/task-dependencies.json +++ b/libs/@local/hashql/hir/docs/task-dependencies.json @@ -1,18 +1,20 @@ { - "package": "@rust/hashql-hir", + "package": "hashql-hir", "dependencies": [ - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics" + "hashql-ast", + "hashql-core", + "hashql-diagnostics" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -24,7 +26,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -33,7 +36,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/hir/package.json b/libs/@local/hashql/hir/package.json deleted file mode 100644 index 08b2b9e9d72..00000000000 --- a/libs/@local/hashql/hir/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/hashql-hir", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hashql-ast": "workspace:*", - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*" - } -} diff --git a/libs/@local/hashql/hir/turbo.json b/libs/@local/hashql/hir/turbo.json index ec1f3facce9..2f25563b727 100644 --- a/libs/@local/hashql/hir/turbo.json +++ b/libs/@local/hashql/hir/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-hir"] + "command": ["mise", "run", "test:unit", "hashql-hir"] } } } diff --git a/libs/@local/hashql/macros/docs/task-dependencies.json b/libs/@local/hashql/macros/docs/task-dependencies.json index 8c7bef6c056..733da8289a6 100644 --- a/libs/@local/hashql/macros/docs/task-dependencies.json +++ b/libs/@local/hashql/macros/docs/task-dependencies.json @@ -1,5 +1,5 @@ { - "package": "@rust/hashql-macros", + "package": "hashql-macros", "dependencies": [], "tasks": { "fix:clippy": { diff --git a/libs/@local/hashql/macros/package.json b/libs/@local/hashql/macros/package.json deleted file mode 100644 index 79e14f0dd1f..00000000000 --- a/libs/@local/hashql/macros/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@rust/hashql-macros", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3" -} diff --git a/libs/@local/hashql/mir/Cargo.toml b/libs/@local/hashql/mir/Cargo.toml index 5ad97b57774..afd4ca393a8 100644 --- a/libs/@local/hashql/mir/Cargo.toml +++ b/libs/@local/hashql/mir/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "hashql-mir" authors.workspace = true edition.workspace = true license.workspace = true +name = "hashql-mir" publish.workspace = true version.workspace = true @@ -32,22 +32,17 @@ insta = { workspace = true } workspace = true [[test]] -name = "compiletest" harness = false +name = "compiletest" [[bench]] -name = "transform" harness = false +name = "transform" [[bench]] -name = "interpret" harness = false +name = "interpret" [[bench]] -name = "execution" harness = false - -[package.metadata.sync.turborepo] -ignore-dev-dependencies = [ - "hashql-compiletest", -] +name = "execution" diff --git a/libs/@local/hashql/mir/docs/task-dependencies.json b/libs/@local/hashql/mir/docs/task-dependencies.json index 0105624bb37..c00d5eeb501 100644 --- a/libs/@local/hashql/mir/docs/task-dependencies.json +++ b/libs/@local/hashql/mir/docs/task-dependencies.json @@ -1,25 +1,28 @@ { - "package": "@rust/hashql-mir", + "package": "hashql-mir", "dependencies": [ - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-hir" + "hashql-core", + "hashql-diagnostics", + "hashql-hir" ], "tasks": { "build:codspeed": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -31,20 +34,23 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:codspeed": { "dependsOn": [], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:miri": { "dependsOn": [], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -53,7 +59,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/mir/package.json b/libs/@local/hashql/mir/package.json deleted file mode 100644 index f8e5455a45e..00000000000 --- a/libs/@local/hashql/mir/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/hashql-mir", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*", - "@rust/hashql-hir": "workspace:*" - } -} diff --git a/libs/@local/hashql/mir/turbo.json b/libs/@local/hashql/mir/turbo.json index 422e9d662ca..a89a36f8601 100644 --- a/libs/@local/hashql/mir/turbo.json +++ b/libs/@local/hashql/mir/turbo.json @@ -49,7 +49,7 @@ ] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-mir"] + "command": ["mise", "run", "test:unit", "hashql-mir"] } } } diff --git a/libs/@local/hashql/syntax-jexpr/docs/task-dependencies.json b/libs/@local/hashql/syntax-jexpr/docs/task-dependencies.json index ebb72add8da..c43f2be57aa 100644 --- a/libs/@local/hashql/syntax-jexpr/docs/task-dependencies.json +++ b/libs/@local/hashql/syntax-jexpr/docs/task-dependencies.json @@ -1,18 +1,20 @@ { - "package": "@rust/hashql-syntax-jexpr", + "package": "hashql-syntax-jexpr", "dependencies": [ - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics" + "hashql-ast", + "hashql-core", + "hashql-diagnostics" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -24,7 +26,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:unit": { @@ -33,7 +36,8 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] } } diff --git a/libs/@local/hashql/syntax-jexpr/package.json b/libs/@local/hashql/syntax-jexpr/package.json deleted file mode 100644 index 3acf4c07dcf..00000000000 --- a/libs/@local/hashql/syntax-jexpr/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/hashql-syntax-jexpr", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/hashql-ast": "workspace:*", - "@rust/hashql-core": "workspace:*", - "@rust/hashql-diagnostics": "workspace:*" - } -} diff --git a/libs/@local/hashql/syntax-jexpr/turbo.json b/libs/@local/hashql/syntax-jexpr/turbo.json index 3c3eeacf982..906ac4aa9b2 100644 --- a/libs/@local/hashql/syntax-jexpr/turbo.json +++ b/libs/@local/hashql/syntax-jexpr/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hashql-syntax-jexpr"] + "command": ["mise", "run", "test:unit", "hashql-syntax-jexpr"] } } } diff --git a/libs/@local/middleware/docs/task-dependencies.json b/libs/@local/middleware/docs/task-dependencies.json index 657e6ef2e32..582e886a7fe 100644 --- a/libs/@local/middleware/docs/task-dependencies.json +++ b/libs/@local/middleware/docs/task-dependencies.json @@ -1,18 +1,19 @@ { - "package": "@rust/hash-middleware", + "package": "hash-middleware", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/problematic" + "error-stack", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -22,12 +23,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/middleware/package.json b/libs/@local/middleware/package.json deleted file mode 100644 index 5081a5d5002..00000000000 --- a/libs/@local/middleware/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/hash-middleware", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/problematic": "workspace:*" - } -} diff --git a/libs/@local/middleware/turbo.json b/libs/@local/middleware/turbo.json index e978a40679a..1997763b347 100644 --- a/libs/@local/middleware/turbo.json +++ b/libs/@local/middleware/turbo.json @@ -29,7 +29,7 @@ "command": ["just", "clippy"] }, "test:unit": { - "command": ["mise", "run", "test:unit", "@rust/hash-middleware"] + "command": ["mise", "run", "test:unit", "hash-middleware"] } } } diff --git a/libs/@local/repo-chores/node/docs/task-dependencies.json b/libs/@local/repo-chores/node/docs/task-dependencies.json index acd9bcb7c0b..7fbb52fd52b 100644 --- a/libs/@local/repo-chores/node/docs/task-dependencies.json +++ b/libs/@local/repo-chores/node/docs/task-dependencies.json @@ -14,50 +14,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -70,50 +69,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -123,50 +121,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:unit": { @@ -179,50 +176,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@blockprotocol/type-system-rs", - "@rust/darwin-kperf", - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion", - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys", - "@rust/error-stack", - "@rust/error-stack-macros", - "@rust/harpc-client", - "@rust/harpc-codec", - "@rust/harpc-net", - "@rust/harpc-server", - "@rust/harpc-system", - "@rust/harpc-tower", - "@rust/harpc-types", - "@rust/harpc-wire-protocol", - "@rust/hash-codec", - "@rust/hash-codegen", - "@rust/hash-graph-api", - "@rust/hash-graph-authentication", - "@rust/hash-graph-authorization", - "@rust/hash-graph-embeddings", - "@rust/hash-graph-migrations", - "@rust/hash-graph-migrations-macros", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-graph-types", - "@rust/hash-graph-validation", - "@rust/hash-middleware", - "@rust/hash-status", - "@rust/hash-telemetry", - "@rust/hash-temporal-client", - "@rust/hashql-ast", - "@rust/hashql-core", - "@rust/hashql-diagnostics", - "@rust/hashql-eval", - "@rust/hashql-hir", - "@rust/hashql-macros", - "@rust/hashql-mir", - "@rust/hashql-syntax-jexpr", - "@rust/problematic" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/libs/@local/repo-chores/rust/Cargo.toml b/libs/@local/repo-chores/rust/Cargo.toml index 010c848e598..fad3c9a311b 100644 --- a/libs/@local/repo-chores/rust/Cargo.toml +++ b/libs/@local/repo-chores/rust/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "hash-repo-chores" -version.workspace = true +authors.workspace = true edition.workspace = true license.workspace = true +name = "hash-repo-chores" publish.workspace = true -authors.workspace = true +version.workspace = true [dependencies] # Public workspace dependencies @@ -15,29 +15,28 @@ authors.workspace = true error-stack = { workspace = true, public = false, features = ["unstable"] } # Private third-party dependencies -aws-config = { workspace = true } -aws-sdk-s3 = { workspace = true } -aws-types = { workspace = true } -bytes = { workspace = true } -cargo_metadata = { workspace = true } -clap = { workspace = true, features = ["cargo", "derive", "env", "wrap_help"] } -clap_complete = { workspace = true } -criterion = { workspace = true, default-features = true } -derive_more = { workspace = true, features = ["display"] } -globset = { workspace = true } -guppy = { workspace = true } -hash-telemetry = { workspace = true, features = ["clap"] } -inferno = { workspace = true } -lcov = { workspace = true } -nodejs_package_json = { workspace = true, features = ["protocols", "serialize"] } -serde = { workspace = true, features = ["derive", "std"] } -serde_json = { workspace = true } -simple-mermaid = { workspace = true } -sort-package-json = { workspace = true } -thiserror = { workspace = true } -tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs"] } -tracing = { workspace = true } -walkdir = { workspace = true } +aws-config = { workspace = true } +aws-sdk-s3 = { workspace = true } +aws-types = { workspace = true } +bytes = { workspace = true } +cargo_metadata = { workspace = true } +clap = { workspace = true, features = ["cargo", "derive", "env", "wrap_help"] } +clap_complete = { workspace = true } +criterion = { workspace = true, default-features = true } +derive_more = { workspace = true, features = ["display"] } +globset = { workspace = true } +guppy = { workspace = true } +hash-telemetry = { workspace = true, features = ["clap"] } +inferno = { workspace = true } +lcov = { workspace = true } +serde = { workspace = true, features = ["derive", "std"] } +serde_json = { workspace = true } +simple-mermaid = { workspace = true } +sort-package-json = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs"] } +tracing = { workspace = true } +walkdir = { workspace = true } [dev-dependencies] diff --git a/libs/@local/repo-chores/rust/docs/task-dependencies.json b/libs/@local/repo-chores/rust/docs/task-dependencies.json index 01ac9e39d41..ea698d0fd76 100644 --- a/libs/@local/repo-chores/rust/docs/task-dependencies.json +++ b/libs/@local/repo-chores/rust/docs/task-dependencies.json @@ -1,25 +1,110 @@ { - "package": "@rust/hash-repo-chores", + "package": "hash-repo-chores", "dependencies": [ - "@rust/error-stack", - "@rust/hash-telemetry" + "error-stack", + "hash-telemetry" ], "tasks": { "analyze-benchmarks": { "dependsOn": [ "build" ], - "cache": false + "cache": false, + "affectedBy": [ + "error-stack-macros" + ] }, "build": { "dependsOn": [], - "cache": false + "cache": false, + "env": [ + "AR", + "ARFLAGS", + "ARFLAGS_*", + "AR_*", + "CARGO_BUILD_BUILD_DIR", + "CARGO_BUILD_INCREMENTAL", + "CARGO_BUILD_RUSTC", + "CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER", + "CARGO_BUILD_RUSTC_WRAPPER", + "CARGO_BUILD_RUSTDOC", + "CARGO_BUILD_RUSTDOCFLAGS", + "CARGO_BUILD_RUSTFLAGS", + "CARGO_BUILD_TARGET", + "CARGO_ENCODED_RUSTDOCFLAGS", + "CARGO_ENCODED_RUSTFLAGS", + "CARGO_INCREMENTAL", + "CARGO_PROFILE_*", + "CARGO_PROFILE_*_DIR_NAME", + "CARGO_TARGET_*_*", + "CC", + "CC_*", + "CFLAGS", + "CFLAGS_*", + "CRATE_CC_NO_DEFAULTS", + "CROSS_COMPILE", + "CXX", + "CXXFLAGS", + "CXXFLAGS_*", + "CXXSTDLIB", + "CXXSTDLIB_*", + "CXX_*", + "HOST_AR", + "HOST_ARFLAGS", + "HOST_CC", + "HOST_CFLAGS", + "HOST_CXX", + "HOST_CXXFLAGS", + "HOST_CXXSTDLIB", + "HOST_NVCC", + "HOST_RANLIB", + "HOST_RANLIBFLAGS", + "IPHONEOS_DEPLOYMENT_TARGET", + "MACOSX_DEPLOYMENT_TARGET", + "NVCC", + "NVCC_*", + "RANLIB", + "RANLIBFLAGS", + "RANLIBFLAGS_*", + "RANLIB_*", + "RUSTC", + "RUSTC_BOOTSTRAP", + "RUSTC_WORKSPACE_WRAPPER", + "RUSTC_WRAPPER", + "RUSTDOC", + "RUSTDOCFLAGS", + "RUSTFLAGS", + "RUSTUP_TOOLCHAIN", + "SDKROOT", + "TARGET_AR", + "TARGET_ARFLAGS", + "TARGET_CC", + "TARGET_CFLAGS", + "TARGET_CXX", + "TARGET_CXXFLAGS", + "TARGET_CXXSTDLIB", + "TARGET_NVCC", + "TARGET_RANLIB", + "TARGET_RANLIBFLAGS", + "TVOS_DEPLOYMENT_TARGET", + "WASI_SDK_PATH", + "WASI_SYSROOT", + "WASM_MUSL_SYSROOT", + "WATCHOS_DEPLOYMENT_TARGET", + "XROS_DEPLOYMENT_TARGET" + ], + "affectedBy": [ + "error-stack-macros" + ] }, "doc:dependency-diagram": { "dependsOn": [ "build" ], - "cache": false + "cache": false, + "affectedBy": [ + "error-stack-macros" + ] }, "fix:clippy": { "dependsOn": [] @@ -28,13 +113,19 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "upload-benchmarks": { "dependsOn": [ "build" ], - "cache": false + "cache": false, + "affectedBy": [ + "error-stack-macros" + ] } } } diff --git a/libs/@local/repo-chores/rust/package.json b/libs/@local/repo-chores/rust/package.json deleted file mode 100644 index 0f2e75e933a..00000000000 --- a/libs/@local/repo-chores/rust/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/hash-repo-chores", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*", - "@rust/hash-telemetry": "workspace:*" - } -} diff --git a/libs/@local/repo-chores/rust/src/cli/subcommand/mod.rs b/libs/@local/repo-chores/rust/src/cli/subcommand/mod.rs index 52f7d4902fe..736c4e4b47b 100644 --- a/libs/@local/repo-chores/rust/src/cli/subcommand/mod.rs +++ b/libs/@local/repo-chores/rust/src/cli/subcommand/mod.rs @@ -2,17 +2,13 @@ use core::error::Error; use error_stack::ResultExt as _; -use crate::{ - sort_package_json::SortPackageJsonError, sync_turborepo::SyncTurborepoError, - task_dependencies::TaskDependenciesError, -}; +use crate::{sort_package_json::SortPackageJsonError, task_dependencies::TaskDependenciesError}; mod benches; mod completions; mod dependency_diagram; mod lcov; mod sort_package_json; -mod sync_turborepo; mod task_dependencies; /// Subcommand for the program. @@ -27,9 +23,6 @@ pub(super) enum Subcommand { DependencyDiagram(dependency_diagram::Args), /// Tooling around lcov reports for the repository. Lcov(lcov::Args), - /// Sync Cargo.toml metadata to package.json for Turborepo integration. - #[clap(name = "sync-turborepo")] - SyncTurborepo(sync_turborepo::Args), /// Sort package.json files to ensure consistent key ordering. #[clap(name = "sort-package-json")] SortPackageJson(sort_package_json::Args), @@ -48,9 +41,6 @@ impl Subcommand { Self::Benches(args) => benches::run(args).await, Self::DependencyDiagram(args) => Ok(dependency_diagram::run(args)?), Self::Lcov(args) => args.run(), - Self::SyncTurborepo(args) => Ok(sync_turborepo::run(args) - .await - .change_context(SyncTurborepoError::UnableToSync)?), Self::SortPackageJson(args) => Ok(sort_package_json::run(args) .await .change_context(SortPackageJsonError::UnableToSort)?), diff --git a/libs/@local/repo-chores/rust/src/cli/subcommand/sync_turborepo.rs b/libs/@local/repo-chores/rust/src/cli/subcommand/sync_turborepo.rs deleted file mode 100644 index af1f6f94f52..00000000000 --- a/libs/@local/repo-chores/rust/src/cli/subcommand/sync_turborepo.rs +++ /dev/null @@ -1,47 +0,0 @@ -use clap::Parser; -use error_stack::{Report, ResultExt as _}; -use globset::{Glob, GlobSetBuilder}; - -use crate::sync_turborepo::{SyncTurborepoConfig, SyncTurborepoError, sync_turborepo}; - -/// Arguments for the sync-turborepo subcommand. -/// -/// Syncs Cargo.toml metadata to package.json files for Turborepo integration. -/// It reads Rust package metadata and generates corresponding package.json files with -/// the correct name, version, and dependencies. -#[derive(Debug, Parser)] -pub(crate) struct Args { - /// Include only packages matching these glob patterns. - /// - /// Supports glob patterns like "*-graph*" to filter which packages are synced. - /// When multiple patterns are provided, packages matching any pattern are included. - #[arg(short, long)] - include: Vec, -} - -/// Runs the sync-turborepo process based on provided arguments. -/// -/// # Errors -/// -/// Returns an error if syncing any package fails. -pub(super) async fn run(args: Args) -> Result<(), Report<[SyncTurborepoError]>> { - let include = if args.include.is_empty() { - None - } else { - let mut builder = GlobSetBuilder::new(); - for pattern in &args.include { - let glob = Glob::new(pattern).change_context(SyncTurborepoError::MalformedGlob)?; - builder.add(glob); - } - - Some( - builder - .build() - .change_context(SyncTurborepoError::MalformedGlob)?, - ) - }; - - let config = SyncTurborepoConfig { include }; - - sync_turborepo(config).await -} diff --git a/libs/@local/repo-chores/rust/src/lib.rs b/libs/@local/repo-chores/rust/src/lib.rs index 4365323632d..25977dd5202 100644 --- a/libs/@local/repo-chores/rust/src/lib.rs +++ b/libs/@local/repo-chores/rust/src/lib.rs @@ -6,7 +6,6 @@ #![doc = simple_mermaid::mermaid!("../docs/dependency-diagram.mmd")] #![feature( // Library Features - core_io, exit_status_error )] @@ -17,5 +16,4 @@ pub mod cli; pub(crate) mod dependency_diagram; pub(crate) mod lcov; pub(crate) mod sort_package_json; -pub(crate) mod sync_turborepo; pub(crate) mod task_dependencies; diff --git a/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs b/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs deleted file mode 100644 index 02a96681ace..00000000000 --- a/libs/@local/repo-chores/rust/src/sync_turborepo/mod.rs +++ /dev/null @@ -1,546 +0,0 @@ -//! Syncs Cargo workspace metadata to `package.json` files for Turborepo integration. -//! -//! Each Rust workspace crate gets a corresponding `package.json` with the correct name, version, -//! and dependency graph derived from `Cargo.toml`. This allows Turborepo to understand the Rust -//! dependency graph and schedule tasks accordingly. -//! -//! Package naming follows these conventions: -//! - Crates under `@blockprotocol/` → `@blockprotocol/-rs` -//! - Crates with `[package.metadata.sync.turborepo.package-name]` → custom name -//! - All other crates → `@rust/` -//! -//! Additional `Cargo.toml` metadata keys: -//! - `sync.turborepo.ignore` — skip this crate entirely -//! - `sync.turborepo.extra-dependencies` — add non-Rust JS dependencies -//! - `sync.turborepo.extra-dev-dependencies` — add non-Rust JS dev dependencies -//! - `sync.turborepo.ignore-dependencies` — exclude specific Cargo deps from the JS graph -//! - `sync.turborepo.ignore-dev-dependencies` — exclude specific Cargo dev deps - -use alloc::collections::BTreeMap; -use core::{error, fmt::Display}; - -use cargo_metadata::{ - camino::{Utf8Path, Utf8PathBuf}, - semver::{self, Prerelease}, -}; -use error_stack::{Report, ReportSink, ResultExt as _, TryReportTupleExt as _}; -use globset::GlobSet; -use guppy::{ - MetadataCommand, - graph::{DependencyDirection, PackageGraph, PackageMetadata}, -}; -use nodejs_package_json::{PackageJson, VersionProtocol, WorkspaceProtocol}; -use tokio::fs; - -#[derive(Debug, Clone, derive_more::Display)] -pub(crate) enum SyncTurborepoError { - #[display("Failed to execute cargo metadata")] - CargoMetadata, - #[display("Malformed glob pattern")] - MalformedGlob, - #[display("Unexpected type expected {expected}, but found {actual} at {path}")] - UnexpectedType { - path: String, - expected: &'static str, - actual: &'static str, - }, - #[display("Package not found: {_0}")] - PackageNotFound(String), - #[display("Failed to read file: {_0}")] - ReadFile(Utf8PathBuf), - #[display("Failed to parse file: {_0}")] - ParseFile(Utf8PathBuf), - #[display("Failed to write file: {_0}")] - WriteFile(Utf8PathBuf), - #[display("Failed to serialize package.json")] - SerializePackageJson, - #[display("Unable to sync to turborepo")] - UnableToSync, -} - -impl error::Error for SyncTurborepoError {} - -const fn json_type_name(value: &serde_json::Value) -> &'static str { - match value { - serde_json::Value::Null => "null", - serde_json::Value::Bool(_) => "bool", - serde_json::Value::Number(_) => "number", - serde_json::Value::String(_) => "string", - serde_json::Value::Array(_) => "array", - serde_json::Value::Object(_) => "object", - } -} - -fn expect_string( - path: impl FnOnce() -> P, - value: &serde_json::Value, -) -> Result> { - value.as_str().map(ToOwned::to_owned).ok_or_else(|| { - Report::new(SyncTurborepoError::UnexpectedType { - path: path().to_string(), - expected: "string", - actual: json_type_name(value), - }) - }) -} - -fn expect_array( - path: impl FnOnce() -> P, - value: &serde_json::Value, -) -> Result<&[serde_json::Value], Report> { - value.as_array().map(AsRef::as_ref).ok_or_else(|| { - Report::new(SyncTurborepoError::UnexpectedType { - path: path().to_string(), - expected: "array", - actual: json_type_name(value), - }) - }) -} - -fn expect_object( - path: impl FnOnce() -> P, - value: &serde_json::Value, -) -> Result<&serde_json::Map, Report> { - value.as_object().ok_or_else(|| { - Report::new(SyncTurborepoError::UnexpectedType { - path: path().to_string(), - expected: "object", - actual: json_type_name(value), - }) - }) -} - -/// Configuration for the sync-turborepo process. -#[derive(Debug, Clone)] -pub(crate) struct SyncTurborepoConfig { - /// When set, only packages whose names match one of the globs are synced. - pub include: Option, -} - -fn is_blockprotocol(metadata: PackageMetadata) -> bool { - metadata - .manifest_path() - .components() - .any(|component| component.as_str() == "@blockprotocol") -} - -/// Determines the JavaScript package name for a Rust crate. -/// -/// Resolution order: -/// 1. `@blockprotocol/-rs` if the crate lives under the `@blockprotocol` directory -/// 2. Custom name from `[package.metadata.sync.turborepo.package-name]` -/// 3. `@rust/` as fallback -/// -/// # Errors -/// -/// Returns [`UnexpectedType`] if `package-name` metadata exists but is not a string. -/// -/// [`UnexpectedType`]: SyncTurborepoError::UnexpectedType -fn package_name(metadata: PackageMetadata) -> Result> { - if is_blockprotocol(metadata) { - return Ok(format!("@blockprotocol/{}-rs", metadata.name())); - } - - if let Some(package_name) = metadata - .metadata_table() - .pointer("/sync/turborepo/package-name") - { - return expect_string(|| "/sync/turborepo/package-name", package_name); - } - - Ok(format!("@rust/{}", metadata.name())) -} - -/// Returns the semver version for a crate, appending a `-private` pre-release tag for -/// unpublished crates. -fn package_version(metadata: PackageMetadata) -> semver::Version { - if metadata.publish().is_never() { - let mut version = metadata.version().clone(); - version.pre = Prerelease::new("private").expect("infallible"); - version - } else { - metadata.version().clone() - } -} - -/// A JavaScript dependency declared directly in Cargo.toml metadata. -#[derive(Debug, Clone)] -struct JsDependency { - name: String, - version: String, -} - -/// Extracts extra JS dependencies from Cargo.toml metadata at the given JSON pointer `path`. -/// -/// These are declared as objects with `name` and `version` fields: -/// ```toml -/// extra-dependencies = [ -/// { name = "@local/status", version = "0.0.0-private" }, -/// ] -/// ``` -/// -/// # Errors -/// -/// Returns [`UnexpectedType`] if the metadata value at `path` is not an array of objects with -/// string `name` and `version` fields. Collects all errors via [`ReportSink`] so that multiple -/// malformed entries are reported together. -/// -/// [`UnexpectedType`]: SyncTurborepoError::UnexpectedType -fn extract_javascript_dependencies( - path: &str, - metadata: PackageMetadata<'_>, -) -> Result, Report<[SyncTurborepoError]>> { - let Some(deps) = metadata.metadata_table().pointer(path) else { - return Ok(Vec::new()); - }; - - let deps = expect_array(|| path, deps)?; - - let mut output = Vec::with_capacity(deps.len()); - let mut sink: ReportSink = ReportSink::new_armed(); - - for (index, dep) in deps.iter().enumerate() { - let dep_path = format!("{path}/{index}"); - let Some(obj) = sink.attempt(expect_object(|| &dep_path, dep)) else { - continue; - }; - - let name = obj.get("name").ok_or_else(|| { - Report::new(SyncTurborepoError::UnexpectedType { - path: format!("{dep_path}/name"), - expected: "string", - actual: "missing", - }) - }); - let Some(name) = sink.attempt(name) else { - continue; - }; - let Some(name) = sink.attempt(expect_string(|| format!("{dep_path}/name"), name)) else { - continue; - }; - - let version = obj.get("version").ok_or_else(|| { - Report::new(SyncTurborepoError::UnexpectedType { - path: format!("{dep_path}/version"), - expected: "string", - actual: "missing", - }) - }); - let Some(version) = sink.attempt(version) else { - continue; - }; - let Some(version) = sink.attempt(expect_string(|| format!("{dep_path}/version"), version)) - else { - continue; - }; - - output.push(JsDependency { name, version }); - } - - sink.finish_ok(output) -} - -/// Extracts Cargo package names from metadata for ignore lists at the given JSON pointer `path`. -/// -/// These are declared as simple strings (Cargo package names): -/// ```toml -/// ignore-dependencies = ["some-crate"] -/// ``` -/// -/// # Errors -/// -/// - [`UnexpectedType`] if the value is not an array of strings. -/// - [`PackageNotFound`] if a listed crate name cannot be resolved in the package graph. -/// -/// [`UnexpectedType`]: SyncTurborepoError::UnexpectedType -/// [`PackageNotFound`]: SyncTurborepoError::PackageNotFound -fn extract_cargo_dependencies<'graph>( - path: &str, - metadata: PackageMetadata<'graph>, -) -> Result>, Report<[SyncTurborepoError]>> { - let Some(deps) = metadata.metadata_table().pointer(path) else { - return Ok(Vec::new()); - }; - - let deps = expect_array(|| path, deps)?; - - let mut output = Vec::with_capacity(deps.len()); - let mut sink: ReportSink = ReportSink::new_armed(); - - for (index, dependency) in deps.iter().enumerate() { - let dependency = expect_string(|| format!("{path}/{index}"), dependency); - let Some(dependency) = sink.attempt(dependency) else { - continue; - }; - - let package = metadata - .graph() - .resolve_package_name(&dependency) - .packages(DependencyDirection::Forward) - .next() - .ok_or_else(|| Report::new(SyncTurborepoError::PackageNotFound(dependency.clone()))); - let Some(package) = sink.attempt(package) else { - continue; - }; - - output.push(package); - } - - sink.finish_ok(output) -} - -/// Extra JavaScript dependencies parsed from `[package.metadata.sync.turborepo]`. -struct ExtraDependencies { - normal: Vec, - dev: Vec, -} - -impl ExtraDependencies { - fn new(metadata: PackageMetadata<'_>) -> Result> { - let normal = - extract_javascript_dependencies("/sync/turborepo/extra-dependencies", metadata); - let dev = - extract_javascript_dependencies("/sync/turborepo/extra-dev-dependencies", metadata); - - let (normal, dev) = (normal, dev).try_collect()?; - Ok(Self { normal, dev }) - } -} - -/// Cargo dependencies to exclude from the generated `package.json`. -struct IgnoreDependencies<'graph> { - normal: Vec>, - dev: Vec>, -} - -impl<'graph> IgnoreDependencies<'graph> { - fn new(metadata: PackageMetadata<'graph>) -> Result> { - let normal = extract_cargo_dependencies("/sync/turborepo/ignore-dependencies", metadata); - let dev = extract_cargo_dependencies("/sync/turborepo/ignore-dev-dependencies", metadata); - - let (normal, dev) = (normal, dev).try_collect()?; - Ok(Self { normal, dev }) - } -} - -fn is_ignored(metadata: PackageMetadata) -> bool { - metadata - .metadata_table() - .pointer("/sync/turborepo/ignore") - .and_then(serde_json::Value::as_bool) - .unwrap_or(false) -} - -async fn read_package_json(path: &Utf8Path) -> Result> { - match fs::read_to_string(path).await { - Ok(contents) => serde_json::from_str(&contents) - .change_context_lazy(|| SyncTurborepoError::ParseFile(path.to_owned())), - Err(err) if err.kind() == core::io::ErrorKind::NotFound => { - tracing::info!("package.json does not exist at {path}, creating new one"); - Ok(PackageJson::default()) - } - Err(err) => Err(Report::new(err)) - .change_context_lazy(|| SyncTurborepoError::ReadFile(path.to_owned())), - } -} - -fn version_protocol_from_str(version: &str) -> VersionProtocol { - version - .parse() - .unwrap_or_else(|_| VersionProtocol::Tag(version.to_owned())) -} - -/// Computes the target `package.json` content for a single Rust crate. -/// -/// Merges Cargo workspace dependencies, extra JS dependencies, and ignore lists into the -/// existing `package_json`. Non-workspace dependencies (e.g. manually added JS packages) are -/// preserved across syncs. -/// -/// # Errors -/// -/// Returns errors from [`package_name`], [`ExtraDependencies::new`], or -/// [`IgnoreDependencies::new`] if metadata is malformed. -fn compute_package_json( - metadata: PackageMetadata<'_>, - mut package_json: PackageJson, -) -> Result> { - package_json.name = Some(package_name(metadata)?); - package_json.version = Some(package_version(metadata)); - - if let Some(description) = metadata.description() { - package_json - .other_fields - .insert("description".to_owned(), description.to_owned().into()); - } else { - package_json.other_fields.remove("description"); - } - - if let Some(license) = metadata.license() { - package_json - .other_fields - .insert("license".to_owned(), license.to_owned().into()); - } else { - package_json.other_fields.remove("license"); - } - - package_json - .other_fields - .insert("private".to_owned(), true.into()); - - // Start with existing dependencies, but filter out workspace-protocol packages. - // These are always managed by the sync tool and will be re-added from Cargo.toml below. - // This ensures removed Cargo dependencies are also removed from package.json. - let mut dependencies: BTreeMap<_, _> = package_json.dependencies.unwrap_or_default(); - dependencies.retain(|_, version| !matches!(version, VersionProtocol::Workspace(_))); - - let mut dev_dependencies: BTreeMap<_, _> = package_json.dev_dependencies.unwrap_or_default(); - dev_dependencies.retain(|_, version| !matches!(version, VersionProtocol::Workspace(_))); - - // Add computed dependencies from Rust workspace - for dependency in metadata.direct_links() { - if !dependency.to().in_workspace() { - continue; - } - - if dependency.dev_only() { - dev_dependencies.insert( - package_name(dependency.to())?, - VersionProtocol::Workspace(WorkspaceProtocol::Any { alias: None }), - ); - } else { - dependencies.insert( - package_name(dependency.to())?, - VersionProtocol::Workspace(WorkspaceProtocol::Any { alias: None }), - ); - } - } - - let ExtraDependencies { normal, dev } = ExtraDependencies::new(metadata)?; - for js_dep in normal { - dependencies.insert(js_dep.name, version_protocol_from_str(&js_dep.version)); - } - for js_dep in dev { - dev_dependencies.insert(js_dep.name, version_protocol_from_str(&js_dep.version)); - } - - let IgnoreDependencies { normal, dev } = IgnoreDependencies::new(metadata)?; - for dep_metadata in normal { - dependencies.remove(&package_name(dep_metadata)?); - } - for dep_metadata in dev { - dev_dependencies.remove(&package_name(dep_metadata)?); - } - - package_json.dependencies = if dependencies.is_empty() { - None - } else { - Some(dependencies) - }; - - package_json.dev_dependencies = if dev_dependencies.is_empty() { - None - } else { - Some(dev_dependencies) - }; - - Ok(package_json) -} - -async fn write_package_json_if_changed( - path: &Utf8Path, - package_json: PackageJson, -) -> Result<(), Report> { - let serialized = serde_json::to_string(&package_json) - .change_context(SyncTurborepoError::SerializePackageJson)?; - let output = sort_package_json::sort_package_json(&serialized) - .change_context(SyncTurborepoError::SerializePackageJson)?; - - match fs::read_to_string(path).await { - Ok(current) if current == output => { - tracing::debug!("Skipping unchanged package.json: {path}"); - return Ok(()); - } - Ok(_) => {} - Err(err) if err.kind() == core::io::ErrorKind::NotFound => {} - Err(err) => { - tracing::warn!("Failed to read {path} for change detection, overwriting: {err}"); - } - } - - fs::write(path, &output) - .await - .change_context_lazy(|| SyncTurborepoError::WriteFile(path.to_owned()))?; - - tracing::info!("Updated package.json: {path}"); - Ok(()) -} - -#[tracing::instrument(level = "debug", skip(metadata), fields(package = %metadata.name()))] -async fn sync_package_json( - metadata: PackageMetadata<'_>, -) -> Result<(), Report<[SyncTurborepoError]>> { - let path = metadata - .manifest_path() - .parent() - .expect("package should have a parent directory") - .join("package.json"); - - let package_json = read_package_json(&path).await?; - let package_json = compute_package_json(metadata, package_json)?; - write_package_json_if_changed(&path, package_json).await?; - - Ok(()) -} - -/// Runs the sync-turborepo process across all (optionally filtered) workspace crates. -/// -/// # Errors -/// -/// - [`CargoMetadata`] if `cargo metadata` fails. -/// - Individual per-package errors are collected and returned together. -/// -/// [`CargoMetadata`]: SyncTurborepoError::CargoMetadata -#[tracing::instrument(level = "info", skip_all)] -pub(crate) async fn sync_turborepo( - SyncTurborepoConfig { include }: SyncTurborepoConfig, -) -> Result<(), Report<[SyncTurborepoError]>> { - tracing::debug!("Retrieving cargo metadata using guppy"); - let graph = PackageGraph::from_command(&mut MetadataCommand::new()) - .change_context(SyncTurborepoError::CargoMetadata)?; - - tracing::info!(packages = graph.package_count(), "Package graph loaded"); - - let mut view = graph.resolve_workspace(); - if let Some(include) = &include { - tracing::debug!("Filtering packages by include patterns"); - view = view.filter(DependencyDirection::Forward, |metadata| { - include.is_match(metadata.name()) - }); - } - - let packages: Vec<_> = view - .packages(DependencyDirection::Forward) - .filter(|package| { - if is_ignored(*package) { - tracing::debug!(package = %package.name(), "Skipping ignored package"); - false - } else { - true - } - }) - .collect(); - - let mut sink: ReportSink = ReportSink::new_armed(); - let total = packages.len(); - let mut failed = 0_usize; - - for package in packages { - if let Err(error) = sync_package_json(package).await { - failed += 1; - sink.append(error); - } - } - - tracing::info!(total, failed, "Sync complete"); - sink.finish() -} diff --git a/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs b/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs index affdc688ec2..51cee2daa0c 100644 --- a/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs +++ b/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs @@ -11,12 +11,14 @@ //! its own reach into, and the packages nested in any of those directories, whose files turbo //! counts as the surrounding package's own. //! -//! Only tasks turbo reports a command for are recorded: a task without a command never -//! executes — turbo folds its hash into its dependents and skips it. An edge to such a task -//! is replaced by the commanded tasks behind it, so a list stays what turbo runs first. +//! A package's document lists the tasks the package implements: a `package.json` script or a +//! `command` in a `turbo.json`. Turbo also runs tasks nobody declared — the ones its Cargo +//! toolchain brings for every crate — and tasks without a command it skips, folding their +//! hash into their dependents. An edge to a skipped task is replaced by the commanded tasks +//! behind it, so a list stays what turbo runs first. //! //! The graph is read from `turbo run --dry=json`, the only view that reports a task's -//! command; `affectedTasks` serves to enumerate the task names to plan. +//! command; the `turbo.json` files enumerate the task names to plan. use alloc::collections::{BTreeMap, BTreeSet}; use core::error; @@ -71,10 +73,17 @@ struct TurboConfig { tasks: BTreeMap, } -/// The task names to plan, and the subset a `turbo.json` declares. -struct TaskNames { - all: Vec, - declared: BTreeSet, +#[derive(Debug, serde::Deserialize)] +struct PackageJson { + #[serde(default)] + scripts: BTreeMap, +} + +/// What the packages declare: the task names to plan, and per package the tasks it +/// implements, through a `package.json` script or a `command` in a `turbo.json`. +struct Declarations { + names: BTreeSet, + implemented: BTreeMap>, } #[derive(Debug, serde::Deserialize)] @@ -84,7 +93,6 @@ struct Package { path: String, direct_dependencies: Items, all_dependencies: Items, - tasks: Items, } #[derive(Debug, serde::Deserialize)] @@ -217,36 +225,52 @@ where Ok(response.data) } -/// Every task name a package could run. -/// -/// Two sources, because neither is complete on its own: a package's `tasks` carry the ones -/// turbo synthesizes for a Cargo crate, which no `turbo.json` declares, while the -/// `turbo.json` files carry the declared names, which that query drops for a crate. Names -/// nothing implements are dropped by the dry run. +/// Reads a file that may not exist. +async fn read_optional(path: &Path) -> Result, Report> { + match fs::read_to_string(path).await { + Ok(contents) => Ok(Some(contents)), + Err(error) if error.kind() == std::io::ErrorKind::NotFound => Ok(None), + Err(error) => { + Err(Report::new(error) + .change_context(TaskDependenciesError::ReadFile(path.to_path_buf()))) + } + } +} + +/// Whether a `turbo.json` task entry carries a command turbo runs. +fn has_command(definition: &serde_json::Value) -> bool { + definition + .get("command") + .is_some_and(|command| !command.is_null()) +} + +/// The task names the `turbo.json` files declare, and the tasks each package implements. /// -/// `affectedTasks` would list both but answers with the tasks of the packages a diff -/// touches, which would tie the documents to the branch they are generated on. -async fn task_names( +/// A `turbo.json` key `package#task` configures another package's task: it is not a name to +/// run, but a `command` under it implements the task for that package. Names nothing +/// implements are dropped by the dry run. +async fn declarations( root: &Path, packages: &[Package], -) -> Result> { - let mut declared = BTreeSet::new(); - let mut names: BTreeSet = packages - .iter() - .flat_map(|package| &package.tasks.items) - .map(|task| task.name.clone()) - .filter(|name| !name.contains('#')) - .collect(); +) -> Result> { + let mut names = BTreeSet::new(); + let mut implemented: BTreeMap> = BTreeMap::new(); for package in packages { - let path = root.join(&package.path).join("turbo.json"); - let contents = match fs::read_to_string(&path).await { - Ok(contents) => contents, - Err(error) if error.kind() == std::io::ErrorKind::NotFound => continue, - Err(error) => { - return Err(Report::new(error) - .change_context(TaskDependenciesError::ReadFile(path.clone()))); - } + let directory = root.join(&package.path); + + if let Some(contents) = read_optional(&directory.join("package.json")).await? { + let manifest: PackageJson = serde_json::from_str(&contents) + .change_context_lazy(|| TaskDependenciesError::ReadFile(directory.clone()))?; + implemented + .entry(package.name.clone()) + .or_default() + .extend(manifest.scripts.into_keys()); + } + + let path = directory.join("turbo.json"); + let Some(contents) = read_optional(&path).await? else { + continue; }; // `turbo.json` allows comments, which serde_json does not. @@ -259,22 +283,27 @@ async fn task_names( let config: TurboConfig = serde_json::from_str(&stripped) .change_context_lazy(|| TaskDependenciesError::ReadFile(path.clone()))?; - // A `package#task` key configures another package's task, it is not a name to run. - declared.extend(config.tasks.into_keys().filter(|name| !name.contains('#'))); + for (key, definition) in config.tasks { + let (owner, task) = match key.split_once('#') { + Some((owner, task)) => (owner.to_owned(), task.to_owned()), + None => { + names.insert(key.clone()); + (package.name.clone(), key) + } + }; + if has_command(&definition) { + implemented.entry(owner).or_default().insert(task); + } + } } - names.extend(declared.iter().cloned()); - if names.is_empty() { return Err( Report::new(TaskDependenciesError::TaskNames).attach("no turbo.json declares a task") ); } - Ok(TaskNames { - all: names.into_iter().collect(), - declared, - }) + Ok(Declarations { names, implemented }) } /// Task names turbo refused to run. @@ -290,16 +319,13 @@ fn rejected_names(stderr: &str) -> BTreeSet<&str> { /// The task graph turbo would execute for `names`. /// -/// A name that no package both declares and implements makes turbo refuse the whole -/// invocation, so rejected names are dropped and the run is retried. +/// A name that no package implements makes turbo refuse the whole invocation, so rejected +/// names are dropped and the run is retried. async fn dry_run( root: &Path, - names: TaskNames, + names: &BTreeSet, ) -> Result, Report> { - let TaskNames { - all: mut names, - declared, - } = names; + let mut names: Vec<&str> = names.iter().map(String::as_str).collect(); loop { let output = Command::new("turbo") @@ -325,19 +351,12 @@ async fn dry_run( ); } - // A name that only a `package.json` script carries is a candidate turbo was never - // meant to accept; a declared one that nothing implements is a stale declaration. - let (stale, scripts): (Vec<&str>, Vec<&str>) = - rejected.iter().partition(|name| declared.contains(**name)); - - if !stale.is_empty() { - tracing::warn!(?stale, "Dropping declared task names no package implements"); - } - if !scripts.is_empty() { - tracing::debug!(?scripts, "Dropping task names no turbo.json declares"); - } + tracing::warn!( + ?rejected, + "Dropping declared task names no package implements" + ); let planned = names.len(); - names.retain(|name| !rejected.contains(name.as_str())); + names.retain(|name| !rejected.contains(name)); // Without a shrinking name list the same invocation would be retried forever. if names.len() == planned { @@ -514,6 +533,7 @@ fn local_name(package: &str, id: String) -> String { fn documents( packages: Vec, tasks: &[DryRunTask], + implemented: &BTreeMap>, ) -> Result, Report> { let by_id: BTreeMap<&str, &DryRunTask> = tasks .iter() @@ -553,7 +573,11 @@ fn documents( .collect(); for task in tasks { - if task.command == NONEXISTENT { + if task.command == NONEXISTENT + || !implemented + .get(&task.package) + .is_some_and(|tasks| tasks.contains(&task.task)) + { continue; } let Some(document) = documents.get_mut(task.package.as_str()) else { @@ -655,15 +679,15 @@ pub(crate) async fn sync_task_dependencies() -> Result<(), Report<[TaskDependenc let packages: PackagesData = query( &root, "{ packages { items { name path directDependencies { items { name } } allDependencies { \ - items { name } } tasks { items { name } } } } }", + items { name } } } } }", TaskDependenciesError::PackageList, ) .await?; - let names = task_names(&root, &packages.packages.items).await?; - tracing::debug!(count = names.all.len(), "Found task names"); + let Declarations { names, implemented } = declarations(&root, &packages.packages.items).await?; + tracing::debug!(count = names.len(), "Found task names"); - let tasks = dry_run(&root, names).await?; + let tasks = dry_run(&root, &names).await?; // The marker is what separates the tasks turbo runs from the ones it skips; a graph // without a single skipped task means it stopped matching. @@ -673,7 +697,7 @@ pub(crate) async fn sync_task_dependencies() -> Result<(), Report<[TaskDependenc .expand()); } - let documents = documents(packages.packages.items, &tasks)?; + let documents = documents(packages.packages.items, &tasks, &implemented)?; if documents.is_empty() { return Err(Report::new(TaskDependenciesError::PackageList) .attach("turbo reported no packages with a directory") diff --git a/libs/@local/status/rust/Cargo.toml b/libs/@local/status/rust/Cargo.toml index 69552933d21..de6868a0c4d 100644 --- a/libs/@local/status/rust/Cargo.toml +++ b/libs/@local/status/rust/Cargo.toml @@ -1,14 +1,11 @@ [package] -name = "hash-status" +authors.workspace = true description = "The HASH Status and Error Model." -version.workspace = true edition.workspace = true license = "MIT OR Apache-2.0" +name = "hash-status" publish.workspace = true -authors.workspace = true - -[package.metadata.sync.turborepo] -extra-dependencies = [{ name = "@local/status", version = "workspace:*" }] +version.workspace = true [dependencies] # Public workspace dependencies diff --git a/libs/@local/status/rust/docs/task-dependencies.json b/libs/@local/status/rust/docs/task-dependencies.json index 0c3956527ff..551b9207a44 100644 --- a/libs/@local/status/rust/docs/task-dependencies.json +++ b/libs/@local/status/rust/docs/task-dependencies.json @@ -1,16 +1,17 @@ { - "package": "@rust/hash-status", - "dependencies": [ - "@local/status" - ], + "package": "hash-status", + "dependencies": [], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack", + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { diff --git a/libs/@local/status/rust/package.json b/libs/@local/status/rust/package.json deleted file mode 100644 index b54d093342e..00000000000 --- a/libs/@local/status/rust/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/hash-status", - "version": "0.0.0-private", - "private": true, - "description": "The HASH Status and Error Model.", - "license": "MIT OR Apache-2.0", - "dependencies": { - "@local/status": "workspace:*" - } -} diff --git a/libs/@local/telemetry/docs/task-dependencies.json b/libs/@local/telemetry/docs/task-dependencies.json index e2d8af88aaa..f0f58a434c0 100644 --- a/libs/@local/telemetry/docs/task-dependencies.json +++ b/libs/@local/telemetry/docs/task-dependencies.json @@ -1,16 +1,17 @@ { - "package": "@rust/hash-telemetry", + "package": "hash-telemetry", "dependencies": [ - "@rust/error-stack" + "error-stack" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores" ] }, "fix:clippy": { @@ -20,6 +21,9 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/telemetry/package.json b/libs/@local/telemetry/package.json deleted file mode 100644 index 1719f111ef6..00000000000 --- a/libs/@local/telemetry/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "@rust/hash-telemetry", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@rust/error-stack": "workspace:*" - } -} diff --git a/libs/@local/temporal-client/docs/task-dependencies.json b/libs/@local/temporal-client/docs/task-dependencies.json index b516e5367ec..d1c1229376d 100644 --- a/libs/@local/temporal-client/docs/task-dependencies.json +++ b/libs/@local/temporal-client/docs/task-dependencies.json @@ -1,17 +1,19 @@ { - "package": "@rust/hash-temporal-client", + "package": "hash-temporal-client", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack" + "error-stack", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -21,12 +23,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:integration": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/@local/temporal-client/package.json b/libs/@local/temporal-client/package.json deleted file mode 100644 index da521a2142f..00000000000 --- a/libs/@local/temporal-client/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/hash-temporal-client", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*" - } -} diff --git a/libs/README.md b/libs/README.md index c91ef34374f..3bf9c847161 100644 --- a/libs/README.md +++ b/libs/README.md @@ -41,14 +41,14 @@ Those packages inside of [`@local`](./@local) are libraries used inside this rep The following list is a non-exhaustive list of packages in `@local`: -| Package | Language(s) | Docs URL | Description | -| ------------------------------------------------------------------------ | ----------- | ------------- | ---------------------------------------------------------------------- | -| [@rust/hash-codec](@local/codec) | Rust | Not hosted | Implementation of different `serde` or byte codes used in HASH | -| [@rust/hash-graph-authorization](@local/graph/authorization) | Rust | Not hosted | Provides the authorization interface and logic used in the Graph | -| [@local/hash-graph-client](@local/graph/client/typescript) | TypeScript | To be written | A generator to create a TypeScript/JavaScript client for the Graph API | -| [@rust/hash-graph-types](@local/graph/types) | Rust | Not hosted | Types used inside of the Graph API | -| [@rust/hash-temporal-client](@local/temporal-client) | Rust | Not hosted | Client implementation to connect to our Temporal.io service | -| [@rust/hash-graph-temporal-versioning](@local/graph/temporal-versioning) | Rust | Not hosted | Implementation of temporal versioning | +| Package | Language(s) | Docs URL | Description | +| ------------------------------------------------------------------ | ----------- | ------------- | ---------------------------------------------------------------------- | +| [hash-codec](@local/codec) | Rust | Not hosted | Implementation of different `serde` or byte codes used in HASH | +| [hash-graph-authorization](@local/graph/authorization) | Rust | Not hosted | Provides the authorization interface and logic used in the Graph | +| [@local/hash-graph-client](@local/graph/client/typescript) | TypeScript | To be written | A generator to create a TypeScript/JavaScript client for the Graph API | +| [hash-graph-types](@local/graph/types) | Rust | Not hosted | Types used inside of the Graph API | +| [hash-temporal-client](@local/temporal-client) | Rust | Not hosted | Client implementation to connect to our Temporal.io service | +| [hash-graph-temporal-versioning](@local/graph/temporal-versioning) | Rust | Not hosted | Implementation of temporal versioning | ## Contributing diff --git a/libs/antsi/docs/task-dependencies.json b/libs/antsi/docs/task-dependencies.json index ba3cac87ab9..97be56355d2 100644 --- a/libs/antsi/docs/task-dependencies.json +++ b/libs/antsi/docs/task-dependencies.json @@ -1,5 +1,5 @@ { - "package": "@rust/antsi", + "package": "antsi", "dependencies": [], "tasks": { "fix:clippy": { diff --git a/libs/antsi/package.json b/libs/antsi/package.json deleted file mode 100644 index 4bda71f3b04..00000000000 --- a/libs/antsi/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@rust/antsi", - "version": "0.0.0-private", - "private": true, - "description": "A no-std mini-crate that provides support ANSI escape sequences", - "license": "MIT OR Apache-2.0" -} diff --git a/libs/antsi/turbo.json b/libs/antsi/turbo.json index ee62466b987..486adc9c33d 100644 --- a/libs/antsi/turbo.json +++ b/libs/antsi/turbo.json @@ -12,7 +12,7 @@ "mise", "run", "test:unit", - "@rust/antsi", + "antsi", "--", "--no-tests", "warn" diff --git a/libs/darwin-kperf/codegen/docs/task-dependencies.json b/libs/darwin-kperf/codegen/docs/task-dependencies.json index 178da89b57d..1079193b2f9 100644 --- a/libs/darwin-kperf/codegen/docs/task-dependencies.json +++ b/libs/darwin-kperf/codegen/docs/task-dependencies.json @@ -1,5 +1,5 @@ { - "package": "@rust/darwin-kperf-codegen", + "package": "darwin-kperf-codegen", "dependencies": [], "tasks": { "lint:clippy": { diff --git a/libs/darwin-kperf/codegen/package.json b/libs/darwin-kperf/codegen/package.json deleted file mode 100644 index 0cb8825cefc..00000000000 --- a/libs/darwin-kperf/codegen/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@rust/darwin-kperf-codegen", - "version": "0.1.1-private", - "private": true, - "license": "MIT OR Apache-2.0" -} diff --git a/libs/darwin-kperf/criterion/docs/task-dependencies.json b/libs/darwin-kperf/criterion/docs/task-dependencies.json index 5c8bbbe18a8..09a29ba8caa 100644 --- a/libs/darwin-kperf/criterion/docs/task-dependencies.json +++ b/libs/darwin-kperf/criterion/docs/task-dependencies.json @@ -1,8 +1,8 @@ { - "package": "@rust/darwin-kperf-criterion", + "package": "darwin-kperf-criterion", "dependencies": [ - "@rust/darwin-kperf", - "@rust/darwin-kperf-events" + "darwin-kperf", + "darwin-kperf-events" ], "tasks": { "lint:clippy": { @@ -11,7 +11,7 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen" ] } } diff --git a/libs/darwin-kperf/criterion/package.json b/libs/darwin-kperf/criterion/package.json deleted file mode 100644 index ed4c4e1f668..00000000000 --- a/libs/darwin-kperf/criterion/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/darwin-kperf-criterion", - "version": "0.1.1", - "private": true, - "description": "Criterion measurement plugin using Apple's hardware performance counters", - "license": "MIT OR Apache-2.0", - "dependencies": { - "@rust/darwin-kperf": "workspace:*", - "@rust/darwin-kperf-events": "workspace:*" - } -} diff --git a/libs/darwin-kperf/docs/task-dependencies.json b/libs/darwin-kperf/docs/task-dependencies.json index 96a8717f5bf..6a7236e8711 100644 --- a/libs/darwin-kperf/docs/task-dependencies.json +++ b/libs/darwin-kperf/docs/task-dependencies.json @@ -1,8 +1,8 @@ { - "package": "@rust/darwin-kperf", + "package": "darwin-kperf", "dependencies": [ - "@rust/darwin-kperf-events", - "@rust/darwin-kperf-sys" + "darwin-kperf-events", + "darwin-kperf-sys" ], "tasks": { "lint:clippy": { @@ -11,8 +11,8 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen", - "@rust/darwin-kperf-criterion" + "darwin-kperf-codegen", + "darwin-kperf-criterion" ] } } diff --git a/libs/darwin-kperf/events/docs/task-dependencies.json b/libs/darwin-kperf/events/docs/task-dependencies.json index 30e84f36759..2c48476e258 100644 --- a/libs/darwin-kperf/events/docs/task-dependencies.json +++ b/libs/darwin-kperf/events/docs/task-dependencies.json @@ -1,5 +1,5 @@ { - "package": "@rust/darwin-kperf-events", + "package": "darwin-kperf-events", "dependencies": [], "tasks": { "lint:clippy": { diff --git a/libs/darwin-kperf/events/package.json b/libs/darwin-kperf/events/package.json deleted file mode 100644 index fb8ae81d6c7..00000000000 --- a/libs/darwin-kperf/events/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@rust/darwin-kperf-events", - "version": "0.1.1", - "private": true, - "description": "Apple Silicon PMU event definitions for darwin-kperf", - "license": "MIT OR Apache-2.0" -} diff --git a/libs/darwin-kperf/package.json b/libs/darwin-kperf/package.json deleted file mode 100644 index 38f74c2949a..00000000000 --- a/libs/darwin-kperf/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@rust/darwin-kperf", - "version": "0.1.1", - "private": true, - "description": "Safe Rust bindings for Apple's kperf/kpc hardware performance counters", - "license": "MIT OR Apache-2.0", - "dependencies": { - "@rust/darwin-kperf-events": "workspace:*", - "@rust/darwin-kperf-sys": "workspace:*" - } -} diff --git a/libs/darwin-kperf/sys/docs/task-dependencies.json b/libs/darwin-kperf/sys/docs/task-dependencies.json index 0c731f68964..f1502eba394 100644 --- a/libs/darwin-kperf/sys/docs/task-dependencies.json +++ b/libs/darwin-kperf/sys/docs/task-dependencies.json @@ -1,5 +1,5 @@ { - "package": "@rust/darwin-kperf-sys", + "package": "darwin-kperf-sys", "dependencies": [], "tasks": { "lint:clippy": { diff --git a/libs/darwin-kperf/sys/package.json b/libs/darwin-kperf/sys/package.json deleted file mode 100644 index b77079c563c..00000000000 --- a/libs/darwin-kperf/sys/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@rust/darwin-kperf-sys", - "version": "0.1.1", - "private": true, - "description": "Raw FFI bindings to Apple's kperf and kperfdata frameworks", - "license": "MIT OR Apache-2.0" -} diff --git a/libs/error-stack/Cargo.toml b/libs/error-stack/Cargo.toml index d0b8048dd2e..8fbfe1194ed 100644 --- a/libs/error-stack/Cargo.toml +++ b/libs/error-stack/Cargo.toml @@ -1,21 +1,16 @@ [package] -name = "error-stack" -version = "0.8.0" authors = { workspace = true } -edition = "2021" -rust-version = "1.83.0" -license = "MIT OR Apache-2.0" +categories = ["rust-patterns", "no-std"] description = "A context-aware error-handling library that supports arbitrary attached user data" documentation = "https://docs.rs/error-stack" -repository = "https://github.com/hashintel/hash/tree/main/libs/error-stack" +edition = "2021" +exclude = ["macros", "experimental"] keywords = ["error", "errorstack", "error-handling", "report", "no_std"] -categories = ["rust-patterns", "no-std"] -exclude = ["package.json", "macros", "experimental"] - -[package.metadata.sync.turborepo] -extra-dependencies = [ - { name = "@rust/error-stack-macros", version = "workspace:*" }, -] +license = "MIT OR Apache-2.0" +name = "error-stack" +repository = "https://github.com/hashintel/hash/tree/main/libs/error-stack" +rust-version = "1.83.0" +version = "0.8.0" [dependencies] # Public workspace dependencies @@ -57,13 +52,13 @@ rustc_version = { workspace = true } [features] default = ["std", "backtrace"] -std = ["anyhow?/std"] # Enables support for `Error` backtrace = ["std"] # Enables automatic capturing of `Backtrace`s (requires Rust 1.65+) +std = ["anyhow?/std"] # Enables support for `Error` -tracing = ["dep:tracing"] # Uses the `tracing` library if messages would be printed to the terminal -spantrace = ["dep:tracing-error", "tracing", "std"] # Enables automatic capturing of `SpanTrace`s -serde = ["dep:serde_core"] # Enables serialization support hooks = ['dep:spin'] # Enables hooks on `no-std` platforms using spin locks +serde = ["dep:serde_core"] # Enables serialization support +spantrace = ["dep:tracing-error", "tracing", "std"] # Enables automatic capturing of `SpanTrace`s +tracing = ["dep:tracing"] # Uses the `tracing` library if messages would be printed to the terminal anyhow = ["dep:anyhow"] # Provides `into_report` to convert `anyhow::Error` to `Report` eyre = ["dep:eyre", "std"] # Provides `into_report` to convert `eyre::Report` to `Report` @@ -81,24 +76,24 @@ cargo-args = ["-Z", "unstable-options", "-Z", "rustdoc-scrape-examples"] targets = ["x86_64-unknown-linux-gnu"] [[example]] +doc-scrape-examples = true name = "demo" required-features = ["std"] -doc-scrape-examples = true [[example]] +doc-scrape-examples = true name = "exit_code" required-features = ["std"] -doc-scrape-examples = true [[example]] +doc-scrape-examples = true name = "parse_config" required-features = ["std"] -doc-scrape-examples = true [[example]] +doc-scrape-examples = true name = "detect" required-features = ['std'] -doc-scrape-examples = true [[test]] name = "common" diff --git a/libs/error-stack/docs/task-dependencies.json b/libs/error-stack/docs/task-dependencies.json index e904f3f3ad3..6a3108cbdcd 100644 --- a/libs/error-stack/docs/task-dependencies.json +++ b/libs/error-stack/docs/task-dependencies.json @@ -1,30 +1,43 @@ { - "package": "@rust/error-stack", - "dependencies": [ - "@rust/error-stack-macros" - ], + "package": "error-stack", + "dependencies": [], "tasks": { "fix:clippy": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "lint:clippy": { "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:miri": { - "dependsOn": [] + "dependsOn": [], + "affectedBy": [ + "error-stack-macros" + ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit:bless": { "dependsOn": [], - "cache": false + "cache": false, + "affectedBy": [ + "error-stack-macros" + ] } } } diff --git a/libs/error-stack/macros/docs/task-dependencies.json b/libs/error-stack/macros/docs/task-dependencies.json index 3320b5e7835..0e925725f93 100644 --- a/libs/error-stack/macros/docs/task-dependencies.json +++ b/libs/error-stack/macros/docs/task-dependencies.json @@ -1,5 +1,5 @@ { - "package": "@rust/error-stack-macros", + "package": "error-stack-macros", "dependencies": [], "tasks": { "fix:clippy": { diff --git a/libs/error-stack/macros/package.json b/libs/error-stack/macros/package.json deleted file mode 100644 index bf585019f4e..00000000000 --- a/libs/error-stack/macros/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@rust/error-stack-macros", - "version": "0.0.0-private", - "private": true, - "description": "Macros for the `error-stack` crate", - "license": "MIT OR Apache-2.0" -} diff --git a/libs/error-stack/package.json b/libs/error-stack/package.json deleted file mode 100644 index d2cde53015a..00000000000 --- a/libs/error-stack/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@rust/error-stack", - "version": "0.8.0", - "private": true, - "description": "A context-aware error-handling library that supports arbitrary attached user data", - "license": "MIT OR Apache-2.0", - "dependencies": { - "@rust/error-stack-macros": "workspace:*" - } -} diff --git a/libs/error-stack/turbo.json b/libs/error-stack/turbo.json index 382ffa55aaf..b747d18e106 100644 --- a/libs/error-stack/turbo.json +++ b/libs/error-stack/turbo.json @@ -17,7 +17,7 @@ "mise", "run", "test:unit", - "@rust/error-stack", + "error-stack", "--test-strategy=extremes" ] }, @@ -33,7 +33,7 @@ "mise", "run", "test:unit", - "@rust/error-stack", + "error-stack", "--test-strategy=extremes" ] } diff --git a/libs/problematic/rust/package.json b/libs/problematic/rust/package.json deleted file mode 100644 index ae2020910ee..00000000000 --- a/libs/problematic/rust/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "@rust/problematic", - "version": "0.0.0", - "private": true, - "description": "HTTP Problem Details with typed extensions and JSON Schema support", - "license": "MIT OR Apache-2.0", - "scripts": { - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/problematic" - }, - "dependencies": { - "@rust/error-stack": "workspace:*" - } -} diff --git a/package.json b/package.json index a8bc6dd0a9c..8b82d395cdf 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "fix:yarn-deduplicate": "yarn dedupe --strategy highest", "generate-ontology-type-ids": "yarn workspace @apps/hash-api generate-ontology-type-ids", "generate-system-types": "yarn workspace @local/hash-isomorphic-utils generate-system-types", - "graph:reset-database": "yarn workspace @rust/hash-graph-http-tests reset-database", + "graph:reset-database": "yarn workspace @tests/hash-graph-http reset-database", "lint": "npm-run-all --continue-on-error \"lint:*\"", "lint:constraints": "yarn constraints", "lint:eslint": "CARGO_TERM_PROGRESS_WHEN=never turbo --continue=always lint:eslint --", @@ -69,7 +69,6 @@ "start:test:graph": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter @apps/hash-graph --env-mode=loose", "start:test:worker": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter '@apps/hash-*-worker*' --env-mode=loose", "start:worker": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter '@apps/hash-*-worker*' --env-mode=loose", - "sync:turborepo": "CARGO_TERM_PROGRESS_WHEN=never cargo run --package hash-repo-chores --bin repo-chores-cli -- sync-turborepo --logging-console-level warn", "test": "npm-run-all --continue-on-error \"test:*\"", "test:integration": "CARGO_TERM_PROGRESS_WHEN=never turbo run test:integration --env-mode=loose --", "test:playwright": "CARGO_TERM_PROGRESS_WHEN=never turbo run test:integration --env-mode=loose --filter @tests/hash-playwright --", diff --git a/tests/graph/benches/Cargo.toml b/tests/graph/benches/Cargo.toml index 7d7f6ad3840..bc111559b1a 100644 --- a/tests/graph/benches/Cargo.toml +++ b/tests/graph/benches/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "hash-graph-benches" -version.workspace = true +authors.workspace = true edition.workspace = true license.workspace = true +name = "hash-graph-benches" publish.workspace = true -authors.workspace = true +version.workspace = true # If we leave `autobenches` enabled, then every module in the benches folder is compiled to be a standalone binary, # which means we can't use modules to group shared logic (importing via `super`, etc.) # @@ -68,8 +68,3 @@ path = "graph/lib.rs" [[bench]] name = "policy" path = "policy/lib.rs" - -[package.metadata.sync.turborepo] -extra-dev-dependencies = [ - { name = "@apps/hash-graph", version = "workspace:*" }, -] diff --git a/tests/graph/benches/docs/task-dependencies.json b/tests/graph/benches/docs/task-dependencies.json index 59d75076787..102e984a363 100644 --- a/tests/graph/benches/docs/task-dependencies.json +++ b/tests/graph/benches/docs/task-dependencies.json @@ -1,27 +1,28 @@ { - "package": "@rust/hash-graph-benches", + "package": "hash-graph-benches", "dependencies": [ - "@apps/hash-graph", - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-graph-api", - "@rust/hash-graph-authorization", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-type-fetcher", - "@rust/hash-repo-chores", - "@rust/hash-telemetry" + "error-stack", + "hash-graph-api", + "hash-graph-authorization", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-repo-chores", + "hash-telemetry", + "type-system" ], "tasks": { "bench:integration": { "dependsOn": [ - "@apps/hash-graph#start:healthcheck" + "hash-graph#start:healthcheck" ], "cache": false, "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros", + "hash-graph" ] }, "bench:integration:manual": { @@ -37,18 +38,21 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:integration": { "dependsOn": [ - "@apps/hash-graph#start:test:healthcheck" + "hash-graph#start:test:healthcheck" ], "env": [ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros", + "hash-graph" ] }, "test:integration:manual": { diff --git a/tests/graph/benches/package.json b/tests/graph/benches/package.json deleted file mode 100644 index e3895131639..00000000000 --- a/tests/graph/benches/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@rust/hash-graph-benches", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "devDependencies": { - "@apps/hash-graph": "workspace:*", - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-graph-api": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-postgres-store": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-test-data": "workspace:*", - "@rust/hash-graph-type-fetcher": "workspace:*", - "@rust/hash-repo-chores": "workspace:*", - "@rust/hash-telemetry": "workspace:*" - } -} diff --git a/tests/graph/benches/turbo.json b/tests/graph/benches/turbo.json index f399cd895e3..c7bddc03241 100644 --- a/tests/graph/benches/turbo.json +++ b/tests/graph/benches/turbo.json @@ -14,11 +14,11 @@ "--bench", "policy" ], - "dependsOn": ["^manifest", "@apps/hash-graph#start:healthcheck"] + "dependsOn": ["^manifest", "hash-graph#start:healthcheck"] }, "test:integration": { "command": ["cargo", "test", "--benches"], - "dependsOn": ["^manifest", "@apps/hash-graph#start:test:healthcheck"] + "dependsOn": ["^manifest", "hash-graph#start:test:healthcheck"] }, "bench:integration:manual": { "cache": false, diff --git a/tests/graph/http/docs/task-dependencies.json b/tests/graph/http/docs/task-dependencies.json index 67c13f78ef5..ad654d41cfb 100644 --- a/tests/graph/http/docs/task-dependencies.json +++ b/tests/graph/http/docs/task-dependencies.json @@ -1,18 +1,16 @@ { - "package": "@rust/hash-graph-http-tests", - "dependencies": [ - "@apps/hash-graph" - ], + "package": "@tests/hash-graph-http", + "dependencies": [], "tasks": { "test:integration": { "dependsOn": [ - "@apps/hash-graph#start:test:healthcheck" + "hash-graph#start:test:healthcheck" ], "env": [ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "hash-graph" ] } } diff --git a/tests/graph/http/package.json b/tests/graph/http/package.json index add9223e83c..6faeb6ef4f9 100644 --- a/tests/graph/http/package.json +++ b/tests/graph/http/package.json @@ -1,5 +1,5 @@ { - "name": "@rust/hash-graph-http-tests", + "name": "@tests/hash-graph-http", "version": "0.0.0-private", "private": true, "license": "AGPL-3", @@ -8,7 +8,6 @@ "test:integration": "sh test.sh" }, "devDependencies": { - "@apps/hash-graph": "workspace:*", "httpyac": "6.16.7" } } diff --git a/tests/graph/http/turbo.json b/tests/graph/http/turbo.json index ece5f4719ed..c22c2400654 100644 --- a/tests/graph/http/turbo.json +++ b/tests/graph/http/turbo.json @@ -2,7 +2,7 @@ "extends": ["//"], "tasks": { "test:integration": { - "dependsOn": ["^manifest", "@apps/hash-graph#start:test:healthcheck"] + "dependsOn": ["^manifest", "hash-graph#start:test:healthcheck"] } } } diff --git a/tests/graph/integration/Cargo.toml b/tests/graph/integration/Cargo.toml index 8943b95e193..6b62af55d0b 100644 --- a/tests/graph/integration/Cargo.toml +++ b/tests/graph/integration/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "hash-graph-integration" -version.workspace = true +authors.workspace = true edition.workspace = true license.workspace = true +name = "hash-graph-integration" publish.workspace = true -authors.workspace = true +version.workspace = true [dev-dependencies] # Private workspace dependencies @@ -38,8 +38,3 @@ workspace = true [[test]] name = "postgres" path = "postgres/lib.rs" - -[package.metadata.sync.turborepo] -extra-dev-dependencies = [ - { name = "@apps/hash-graph", version = "workspace:*" }, -] diff --git a/tests/graph/integration/docs/task-dependencies.json b/tests/graph/integration/docs/task-dependencies.json index f8db582dc23..a75d77cefb9 100644 --- a/tests/graph/integration/docs/task-dependencies.json +++ b/tests/graph/integration/docs/task-dependencies.json @@ -1,18 +1,17 @@ { - "package": "@rust/hash-graph-integration", + "package": "hash-graph-integration", "dependencies": [ - "@apps/hash-graph", - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-graph-authorization", - "@rust/hash-graph-postgres-store", - "@rust/hash-graph-store", - "@rust/hash-graph-temporal-versioning", - "@rust/hash-graph-test-data", - "@rust/hash-graph-types", - "@rust/hash-status", - "@rust/hash-telemetry" + "error-stack", + "hash-codec", + "hash-graph-authorization", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-types", + "hash-status", + "hash-telemetry", + "type-system" ], "tasks": { "fix:clippy": { @@ -24,16 +23,21 @@ "GITHUB_EVENT_NAME" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros" ] }, "test:integration": { - "dependsOn": [], + "dependsOn": [ + "hash-graph#start:test:healthcheck" + ], "env": [ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf-codegen", + "error-stack-macros", + "hash-graph" ] } } diff --git a/tests/graph/integration/package.json b/tests/graph/integration/package.json deleted file mode 100644 index 27d66028c94..00000000000 --- a/tests/graph/integration/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "@rust/hash-graph-integration", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "devDependencies": { - "@apps/hash-graph": "workspace:*", - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-authorization": "workspace:*", - "@rust/hash-graph-postgres-store": "workspace:*", - "@rust/hash-graph-store": "workspace:*", - "@rust/hash-graph-temporal-versioning": "workspace:*", - "@rust/hash-graph-test-data": "workspace:*", - "@rust/hash-graph-types": "workspace:*", - "@rust/hash-status": "workspace:*", - "@rust/hash-telemetry": "workspace:*" - } -} diff --git a/tests/graph/integration/turbo.json b/tests/graph/integration/turbo.json index 8608a1a4065..397b54cd5ff 100644 --- a/tests/graph/integration/turbo.json +++ b/tests/graph/integration/turbo.json @@ -3,7 +3,7 @@ "tasks": { "test:integration": { "command": ["cargo", "nextest", "run", "--all-features", "--all-targets"], - "dependsOn": ["^manifest"] + "dependsOn": ["^manifest", "hash-graph#start:test:healthcheck"] }, "fix:clippy": { "command": ["just", "clippy", "--fix"] diff --git a/tests/graph/test-data/rust/docs/task-dependencies.json b/tests/graph/test-data/rust/docs/task-dependencies.json index 30475ad9bd5..b4a04d83753 100644 --- a/tests/graph/test-data/rust/docs/task-dependencies.json +++ b/tests/graph/test-data/rust/docs/task-dependencies.json @@ -1,19 +1,21 @@ { - "package": "@rust/hash-graph-test-data", + "package": "hash-graph-test-data", "dependencies": [ - "@blockprotocol/type-system-rs", - "@rust/error-stack", - "@rust/hash-codec", - "@rust/hash-graph-store" + "error-stack", + "hash-codec", + "hash-graph-store", + "type-system" ], "tasks": { "doc:dependency-diagram": { "dependsOn": [ - "@rust/hash-repo-chores#build" + "hash-repo-chores#build" ], "cache": false, "affectedBy": [ - "@rust/hash-repo-chores" + "error-stack-macros", + "hash-repo-chores", + "hash-telemetry" ] }, "fix:clippy": { @@ -23,12 +25,18 @@ "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/tests/graph/test-data/rust/package.json b/tests/graph/test-data/rust/package.json deleted file mode 100644 index d1e710754fe..00000000000 --- a/tests/graph/test-data/rust/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@rust/hash-graph-test-data", - "version": "0.0.0-private", - "private": true, - "license": "AGPL-3", - "dependencies": { - "@blockprotocol/type-system-rs": "workspace:*", - "@rust/error-stack": "workspace:*", - "@rust/hash-codec": "workspace:*", - "@rust/hash-graph-store": "workspace:*" - } -} diff --git a/tests/graph/test-data/rust/turbo.json b/tests/graph/test-data/rust/turbo.json index 33e178e5331..433b3f4557f 100644 --- a/tests/graph/test-data/rust/turbo.json +++ b/tests/graph/test-data/rust/turbo.json @@ -33,7 +33,7 @@ "mise", "run", "test:unit", - "@rust/hash-graph-test-data", + "hash-graph-test-data", "--test-strategy=powerset" ] } diff --git a/tests/hash-backend-integration/docs/task-dependencies.json b/tests/hash-backend-integration/docs/task-dependencies.json index e8de38c765e..ff16975ff88 100644 --- a/tests/hash-backend-integration/docs/task-dependencies.json +++ b/tests/hash-backend-integration/docs/task-dependencies.json @@ -3,7 +3,6 @@ "dependencies": [ "@apps/hash-ai-worker-ts", "@apps/hash-api", - "@apps/hash-graph", "@apps/hash-integration-worker", "@blockprotocol/graph", "@blockprotocol/type-system", @@ -24,7 +23,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -50,7 +91,49 @@ "codegen" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -79,7 +162,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -105,7 +230,49 @@ "codegen" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:integration": { @@ -114,7 +281,6 @@ "@apps/hash-ai-worker-ts#start:test:healthcheck", "@apps/hash-api#codegen", "@apps/hash-api#start:test:healthcheck", - "@apps/hash-graph#start:test:healthcheck", "@apps/hash-integration-worker#build", "@apps/hash-integration-worker#start:test:healthcheck", "@blockprotocol/graph#build", @@ -132,13 +298,57 @@ "@local/internal-api-client#build", "@local/petrinaut-optimizer-client#build", "@local/status#build", - "codegen" + "codegen", + "hash-graph#start:test:healthcheck" ], "env": [ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/tests/hash-backend-integration/package.json b/tests/hash-backend-integration/package.json index fc14dd15d77..7aa638a64d4 100644 --- a/tests/hash-backend-integration/package.json +++ b/tests/hash-backend-integration/package.json @@ -30,7 +30,6 @@ }, "devDependencies": { "@apps/hash-ai-worker-ts": "workspace:*", - "@apps/hash-graph": "workspace:*", "@apps/hash-integration-worker": "workspace:*", "@blockprotocol/graph": "workspace:*", "@graphql-codegen/cli": "^6.2.1", diff --git a/tests/hash-backend-integration/turbo.json b/tests/hash-backend-integration/turbo.json index 52dd1627724..0d8b5ea3471 100644 --- a/tests/hash-backend-integration/turbo.json +++ b/tests/hash-backend-integration/turbo.json @@ -7,7 +7,12 @@ "dependsOn": ["@local/hash-isomorphic-utils#build"] }, "test:integration": { - "dependsOn": ["codegen", "^build", "^start:test:healthcheck"] + "dependsOn": [ + "codegen", + "^build", + "^start:test:healthcheck", + "hash-graph#start:test:healthcheck" + ] } } } diff --git a/tests/hash-playwright/docs/task-dependencies.json b/tests/hash-playwright/docs/task-dependencies.json index 940a3835f7d..d86f9832f8e 100644 --- a/tests/hash-playwright/docs/task-dependencies.json +++ b/tests/hash-playwright/docs/task-dependencies.json @@ -18,7 +18,49 @@ "@local/hash-isomorphic-utils#build" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "fix:eslint": { @@ -31,7 +73,49 @@ "codegen" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:eslint": { @@ -47,7 +131,49 @@ "CHECK_TEMPORARILY_DISABLED_RULES" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "lint:tsc": { @@ -59,7 +185,49 @@ "codegen" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] }, "test:integration": { @@ -74,7 +242,49 @@ "TEST_COVERAGE" ], "affectedBy": [ - "@rust/darwin-kperf-codegen" + "darwin-kperf", + "darwin-kperf-codegen", + "darwin-kperf-criterion", + "darwin-kperf-events", + "darwin-kperf-sys", + "error-stack", + "error-stack-macros", + "harpc-client", + "harpc-codec", + "harpc-net", + "harpc-server", + "harpc-system", + "harpc-tower", + "harpc-types", + "harpc-wire-protocol", + "hash-codec", + "hash-codegen", + "hash-graph-api", + "hash-graph-authentication", + "hash-graph-authorization", + "hash-graph-embeddings", + "hash-graph-migrations", + "hash-graph-migrations-macros", + "hash-graph-postgres-store", + "hash-graph-store", + "hash-graph-temporal-versioning", + "hash-graph-test-data", + "hash-graph-type-fetcher", + "hash-graph-types", + "hash-graph-validation", + "hash-middleware", + "hash-status", + "hash-telemetry", + "hash-temporal-client", + "hashql-ast", + "hashql-core", + "hashql-diagnostics", + "hashql-eval", + "hashql-hir", + "hashql-macros", + "hashql-mir", + "hashql-syntax-jexpr", + "type-system" ] } } diff --git a/turbo.json b/turbo.json index b1496749961..98ccc7d43d5 100644 --- a/turbo.json +++ b/turbo.json @@ -22,14 +22,10 @@ "codegen": {}, "doc:dependency-diagram": { "cache": false, - "dependsOn": ["@rust/hash-repo-chores#build"] - }, - "//#sync:turborepo": { - "cache": false + "dependsOn": ["hash-repo-chores#build"] }, "//#doc:task-dependencies": { - "cache": false, - "dependsOn": ["//#sync:turborepo"] + "cache": false }, "build": {}, // An image copies the repository and generates and builds inside it, so the host @@ -168,6 +164,7 @@ ], "futureFlags": { "affectedUsingTaskInputs": true, + "experimentalCargoWorkspaces": true, "experimentalTaskCommand": true } } diff --git a/yarn.lock b/yarn.lock index 6948617dcd0..2237e540d27 100644 --- a/yarn.lock +++ b/yarn.lock @@ -478,7 +478,6 @@ __metadata: dependencies: "@anthropic-ai/bedrock-sdk": "npm:0.26.3" "@anthropic-ai/sdk": "npm:0.74.0" - "@apps/hash-graph": "workspace:*" "@aws-sdk/credential-providers": "npm:3.1055.0" "@blockprotocol/core": "npm:0.1.5" "@blockprotocol/graph": "workspace:*" @@ -560,7 +559,6 @@ __metadata: dependencies: "@apollo/server": "npm:5.5.0" "@apollo/utils.keyvadapter": "npm:4.0.1" - "@apps/hash-graph": "workspace:*" "@as-integrations/express5": "npm:1.1.2" "@aws-sdk/client-s3": "npm:3.986.0" "@aws-sdk/client-sesv2": "npm:3.986.0" @@ -845,27 +843,6 @@ __metadata: languageName: unknown linkType: soft -"@apps/hash-graph@workspace:*, @apps/hash-graph@workspace:apps/hash-graph": - version: 0.0.0-use.local - resolution: "@apps/hash-graph@workspace:apps/hash-graph" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/harpc-codec": "workspace:*" - "@rust/harpc-server": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-graph-api": "workspace:*" - "@rust/hash-graph-atlas": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-embeddings": "workspace:*" - "@rust/hash-graph-postgres-store": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-type-fetcher": "workspace:*" - "@rust/hash-telemetry": "workspace:*" - "@rust/hash-temporal-client": "workspace:*" - languageName: unknown - linkType: soft - "@apps/hash-integration-worker@workspace:*, @apps/hash-integration-worker@workspace:apps/hash-integration-worker": version: 0.0.0-use.local resolution: "@apps/hash-integration-worker@workspace:apps/hash-integration-worker" @@ -4312,17 +4289,6 @@ __metadata: languageName: node linkType: hard -"@blockprotocol/type-system-rs@workspace:*, @blockprotocol/type-system-rs@workspace:libs/@blockprotocol/type-system/rust": - version: 0.0.0-use.local - resolution: "@blockprotocol/type-system-rs@workspace:libs/@blockprotocol/type-system/rust" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-codegen": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - languageName: unknown - linkType: soft - "@blockprotocol/type-system@npm:0.1.1": version: 0.1.1 resolution: "@blockprotocol/type-system@npm:0.1.1" @@ -15011,568 +14977,6 @@ __metadata: languageName: node linkType: hard -"@rust/antsi@workspace:libs/antsi": - version: 0.0.0-use.local - resolution: "@rust/antsi@workspace:libs/antsi" - languageName: unknown - linkType: soft - -"@rust/darwin-kperf-codegen@workspace:libs/darwin-kperf/codegen": - version: 0.0.0-use.local - resolution: "@rust/darwin-kperf-codegen@workspace:libs/darwin-kperf/codegen" - languageName: unknown - linkType: soft - -"@rust/darwin-kperf-criterion@workspace:*, @rust/darwin-kperf-criterion@workspace:libs/darwin-kperf/criterion": - version: 0.0.0-use.local - resolution: "@rust/darwin-kperf-criterion@workspace:libs/darwin-kperf/criterion" - dependencies: - "@rust/darwin-kperf": "workspace:*" - "@rust/darwin-kperf-events": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/darwin-kperf-events@workspace:*, @rust/darwin-kperf-events@workspace:libs/darwin-kperf/events": - version: 0.0.0-use.local - resolution: "@rust/darwin-kperf-events@workspace:libs/darwin-kperf/events" - languageName: unknown - linkType: soft - -"@rust/darwin-kperf-sys@workspace:*, @rust/darwin-kperf-sys@workspace:libs/darwin-kperf/sys": - version: 0.0.0-use.local - resolution: "@rust/darwin-kperf-sys@workspace:libs/darwin-kperf/sys" - languageName: unknown - linkType: soft - -"@rust/darwin-kperf@workspace:*, @rust/darwin-kperf@workspace:libs/darwin-kperf": - version: 0.0.0-use.local - resolution: "@rust/darwin-kperf@workspace:libs/darwin-kperf" - dependencies: - "@rust/darwin-kperf-events": "workspace:*" - "@rust/darwin-kperf-sys": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/effect-dns-hickory@workspace:libs/@local/effect-dns/hickory/rust": - version: 0.0.0-use.local - resolution: "@rust/effect-dns-hickory@workspace:libs/@local/effect-dns/hickory/rust" - languageName: unknown - linkType: soft - -"@rust/error-stack-macros@workspace:*, @rust/error-stack-macros@workspace:libs/error-stack/macros": - version: 0.0.0-use.local - resolution: "@rust/error-stack-macros@workspace:libs/error-stack/macros" - languageName: unknown - linkType: soft - -"@rust/error-stack@workspace:*, @rust/error-stack@workspace:libs/error-stack": - version: 0.0.0-use.local - resolution: "@rust/error-stack@workspace:libs/error-stack" - dependencies: - "@rust/error-stack-macros": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-client@workspace:*, @rust/harpc-client@workspace:libs/@local/harpc/client/rust": - version: 0.0.0-use.local - resolution: "@rust/harpc-client@workspace:libs/@local/harpc/client/rust" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/harpc-codec": "workspace:*" - "@rust/harpc-net": "workspace:*" - "@rust/harpc-system": "workspace:*" - "@rust/harpc-tower": "workspace:*" - "@rust/harpc-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-codec@workspace:*, @rust/harpc-codec@workspace:libs/@local/harpc/codec": - version: 0.0.0-use.local - resolution: "@rust/harpc-codec@workspace:libs/@local/harpc/codec" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/harpc-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-net@workspace:*, @rust/harpc-net@workspace:libs/@local/harpc/net": - version: 0.0.0-use.local - resolution: "@rust/harpc-net@workspace:libs/@local/harpc/net" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/harpc-codec": "workspace:*" - "@rust/harpc-types": "workspace:*" - "@rust/harpc-wire-protocol": "workspace:*" - "@rust/hash-codec": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-server@workspace:*, @rust/harpc-server@workspace:libs/@local/harpc/server": - version: 0.0.0-use.local - resolution: "@rust/harpc-server@workspace:libs/@local/harpc/server" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/harpc-client": "workspace:*" - "@rust/harpc-codec": "workspace:*" - "@rust/harpc-net": "workspace:*" - "@rust/harpc-system": "workspace:*" - "@rust/harpc-tower": "workspace:*" - "@rust/harpc-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-system@workspace:*, @rust/harpc-system@workspace:libs/@local/harpc/system": - version: 0.0.0-use.local - resolution: "@rust/harpc-system@workspace:libs/@local/harpc/system" - dependencies: - "@rust/harpc-tower": "workspace:*" - "@rust/harpc-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-tower@workspace:*, @rust/harpc-tower@workspace:libs/@local/harpc/tower": - version: 0.0.0-use.local - resolution: "@rust/harpc-tower@workspace:libs/@local/harpc/tower" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/harpc-codec": "workspace:*" - "@rust/harpc-net": "workspace:*" - "@rust/harpc-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/harpc-types@workspace:*, @rust/harpc-types@workspace:libs/@local/harpc/types": - version: 0.0.0-use.local - resolution: "@rust/harpc-types@workspace:libs/@local/harpc/types" - languageName: unknown - linkType: soft - -"@rust/harpc-wire-protocol@workspace:*, @rust/harpc-wire-protocol@workspace:libs/@local/harpc/wire-protocol": - version: 0.0.0-use.local - resolution: "@rust/harpc-wire-protocol@workspace:libs/@local/harpc/wire-protocol" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/harpc-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-codec@workspace:*, @rust/hash-codec@workspace:libs/@local/codec/rust": - version: 0.0.0-use.local - resolution: "@rust/hash-codec@workspace:libs/@local/codec/rust" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/harpc-types": "workspace:*" - "@rust/harpc-wire-protocol": "workspace:*" - "@rust/hash-codegen": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-codegen@workspace:*, @rust/hash-codegen@workspace:libs/@local/codegen": - version: 0.0.0-use.local - resolution: "@rust/hash-codegen@workspace:libs/@local/codegen" - languageName: unknown - linkType: soft - -"@rust/hash-config@workspace:libs/@local/config": - version: 0.0.0-use.local - resolution: "@rust/hash-config@workspace:libs/@local/config" - dependencies: - "@rust/error-stack": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-api@workspace:*, @rust/hash-graph-api@workspace:libs/@local/graph/api": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-api@workspace:libs/@local/graph/api" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/harpc-client": "workspace:*" - "@rust/harpc-codec": "workspace:*" - "@rust/harpc-server": "workspace:*" - "@rust/harpc-system": "workspace:*" - "@rust/harpc-tower": "workspace:*" - "@rust/harpc-types": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-graph-authentication": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-embeddings": "workspace:*" - "@rust/hash-graph-postgres-store": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-type-fetcher": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - "@rust/hash-graph-validation": "workspace:*" - "@rust/hash-middleware": "workspace:*" - "@rust/hash-status": "workspace:*" - "@rust/hash-temporal-client": "workspace:*" - "@rust/hashql-ast": "workspace:*" - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - "@rust/hashql-eval": "workspace:*" - "@rust/hashql-hir": "workspace:*" - "@rust/hashql-mir": "workspace:*" - "@rust/hashql-syntax-jexpr": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-atlas@workspace:*, @rust/hash-graph-atlas@workspace:libs/@local/graph/atlas": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-atlas@workspace:libs/@local/graph/atlas" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/darwin-kperf-criterion": "workspace:*" - "@rust/darwin-kperf-events": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-embeddings": "workspace:*" - "@rust/hash-graph-postgres-store": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - "@rust/hash-middleware": "workspace:*" - "@rust/hash-temporal-client": "workspace:*" - "@rust/hashql-core": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-authentication@workspace:*, @rust/hash-graph-authentication@workspace:libs/@local/graph/authentication": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-authentication@workspace:libs/@local/graph/authentication" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-middleware": "workspace:*" - "@rust/problematic": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-authorization@workspace:*, @rust/hash-graph-authorization@workspace:libs/@local/graph/authorization/rust": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-authorization@workspace:libs/@local/graph/authorization/rust" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-codegen": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-benches@workspace:tests/graph/benches": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-benches@workspace:tests/graph/benches" - dependencies: - "@apps/hash-graph": "workspace:*" - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-api": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-postgres-store": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-test-data": "workspace:*" - "@rust/hash-graph-type-fetcher": "workspace:*" - "@rust/hash-repo-chores": "workspace:*" - "@rust/hash-telemetry": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-embeddings@workspace:*, @rust/hash-graph-embeddings@workspace:libs/@local/graph/embeddings": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-embeddings@workspace:libs/@local/graph/embeddings" - dependencies: - "@rust/darwin-kperf-criterion": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-http-tests@workspace:tests/graph/http": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-http-tests@workspace:tests/graph/http" - dependencies: - "@apps/hash-graph": "workspace:*" - httpyac: "npm:6.16.7" - languageName: unknown - linkType: soft - -"@rust/hash-graph-integration@workspace:tests/graph/integration": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-integration@workspace:tests/graph/integration" - dependencies: - "@apps/hash-graph": "workspace:*" - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-postgres-store": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-test-data": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - "@rust/hash-status": "workspace:*" - "@rust/hash-telemetry": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-migrations-macros@workspace:*, @rust/hash-graph-migrations-macros@workspace:libs/@local/graph/migrations-macros": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-migrations-macros@workspace:libs/@local/graph/migrations-macros" - languageName: unknown - linkType: soft - -"@rust/hash-graph-migrations@workspace:*, @rust/hash-graph-migrations@workspace:libs/@local/graph/migrations": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-migrations@workspace:libs/@local/graph/migrations" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-migrations-macros": "workspace:*" - "@rust/hash-telemetry": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-postgres-store@workspace:*, @rust/hash-graph-postgres-store@workspace:libs/@local/graph/postgres-store": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-postgres-store@workspace:libs/@local/graph/postgres-store" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-embeddings": "workspace:*" - "@rust/hash-graph-migrations": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-test-data": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - "@rust/hash-graph-validation": "workspace:*" - "@rust/hash-status": "workspace:*" - "@rust/hash-telemetry": "workspace:*" - "@rust/hash-temporal-client": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-store@workspace:*, @rust/hash-graph-store@workspace:libs/@local/graph/store/rust": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-store@workspace:libs/@local/graph/store/rust" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-codegen": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - "@rust/hash-temporal-client": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-temporal-versioning@workspace:*, @rust/hash-graph-temporal-versioning@workspace:libs/@local/graph/temporal-versioning": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-temporal-versioning@workspace:libs/@local/graph/temporal-versioning" - dependencies: - "@rust/hash-codec": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-test-data@workspace:*, @rust/hash-graph-test-data@workspace:tests/graph/test-data/rust": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-test-data@workspace:tests/graph/test-data/rust" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-type-fetcher@workspace:*, @rust/hash-graph-type-fetcher@workspace:libs/@local/graph/type-fetcher": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-type-fetcher@workspace:libs/@local/graph/type-fetcher" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - "@rust/hash-temporal-client": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-types@workspace:*, @rust/hash-graph-types@workspace:libs/@local/graph/types": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-types@workspace:libs/@local/graph/types" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-graph-validation@workspace:*, @rust/hash-graph-validation@workspace:libs/@local/graph/validation": - version: 0.0.0-use.local - resolution: "@rust/hash-graph-validation@workspace:libs/@local/graph/validation" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-temporal-versioning": "workspace:*" - "@rust/hash-graph-test-data": "workspace:*" - "@rust/hash-graph-types": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-middleware@workspace:*, @rust/hash-middleware@workspace:libs/@local/middleware": - version: 0.0.0-use.local - resolution: "@rust/hash-middleware@workspace:libs/@local/middleware" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/problematic": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-repo-chores@workspace:*, @rust/hash-repo-chores@workspace:libs/@local/repo-chores/rust": - version: 0.0.0-use.local - resolution: "@rust/hash-repo-chores@workspace:libs/@local/repo-chores/rust" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/hash-telemetry": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-status@workspace:*, @rust/hash-status@workspace:libs/@local/status/rust": - version: 0.0.0-use.local - resolution: "@rust/hash-status@workspace:libs/@local/status/rust" - dependencies: - "@local/status": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-telemetry@workspace:*, @rust/hash-telemetry@workspace:libs/@local/telemetry": - version: 0.0.0-use.local - resolution: "@rust/hash-telemetry@workspace:libs/@local/telemetry" - dependencies: - "@rust/error-stack": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hash-temporal-client@workspace:*, @rust/hash-temporal-client@workspace:libs/@local/temporal-client": - version: 0.0.0-use.local - resolution: "@rust/hash-temporal-client@workspace:libs/@local/temporal-client" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-ast@workspace:*, @rust/hashql-ast@workspace:libs/@local/hashql/ast": - version: 0.0.0-use.local - resolution: "@rust/hashql-ast@workspace:libs/@local/hashql/ast" - dependencies: - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-compiletest@workspace:libs/@local/hashql/compiletest": - version: 0.0.0-use.local - resolution: "@rust/hashql-compiletest@workspace:libs/@local/hashql/compiletest" - dependencies: - "@rust/error-stack": "workspace:*" - "@rust/hashql-ast": "workspace:*" - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - "@rust/hashql-eval": "workspace:*" - "@rust/hashql-hir": "workspace:*" - "@rust/hashql-mir": "workspace:*" - "@rust/hashql-syntax-jexpr": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-core@workspace:*, @rust/hashql-core@workspace:libs/@local/hashql/core": - version: 0.0.0-use.local - resolution: "@rust/hashql-core@workspace:libs/@local/hashql/core" - dependencies: - "@rust/darwin-kperf-criterion": "workspace:*" - "@rust/hash-codec": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - "@rust/hashql-macros": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-diagnostics@workspace:*, @rust/hashql-diagnostics@workspace:libs/@local/hashql/diagnostics": - version: 0.0.0-use.local - resolution: "@rust/hashql-diagnostics@workspace:libs/@local/hashql/diagnostics" - languageName: unknown - linkType: soft - -"@rust/hashql-eval@workspace:*, @rust/hashql-eval@workspace:libs/@local/hashql/eval": - version: 0.0.0-use.local - resolution: "@rust/hashql-eval@workspace:libs/@local/hashql/eval" - dependencies: - "@blockprotocol/type-system-rs": "workspace:*" - "@rust/error-stack": "workspace:*" - "@rust/hash-graph-authorization": "workspace:*" - "@rust/hash-graph-postgres-store": "workspace:*" - "@rust/hash-graph-store": "workspace:*" - "@rust/hash-graph-test-data": "workspace:*" - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - "@rust/hashql-hir": "workspace:*" - "@rust/hashql-mir": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-hir@workspace:*, @rust/hashql-hir@workspace:libs/@local/hashql/hir": - version: 0.0.0-use.local - resolution: "@rust/hashql-hir@workspace:libs/@local/hashql/hir" - dependencies: - "@rust/hashql-ast": "workspace:*" - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-macros@workspace:*, @rust/hashql-macros@workspace:libs/@local/hashql/macros": - version: 0.0.0-use.local - resolution: "@rust/hashql-macros@workspace:libs/@local/hashql/macros" - languageName: unknown - linkType: soft - -"@rust/hashql-mir@workspace:*, @rust/hashql-mir@workspace:libs/@local/hashql/mir": - version: 0.0.0-use.local - resolution: "@rust/hashql-mir@workspace:libs/@local/hashql/mir" - dependencies: - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - "@rust/hashql-hir": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/hashql-syntax-jexpr@workspace:*, @rust/hashql-syntax-jexpr@workspace:libs/@local/hashql/syntax-jexpr": - version: 0.0.0-use.local - resolution: "@rust/hashql-syntax-jexpr@workspace:libs/@local/hashql/syntax-jexpr" - dependencies: - "@rust/hashql-ast": "workspace:*" - "@rust/hashql-core": "workspace:*" - "@rust/hashql-diagnostics": "workspace:*" - languageName: unknown - linkType: soft - -"@rust/problematic@workspace:*, @rust/problematic@workspace:libs/problematic/rust": - version: 0.0.0-use.local - resolution: "@rust/problematic@workspace:libs/problematic/rust" - dependencies: - "@rust/error-stack": "workspace:*" - languageName: unknown - linkType: soft - "@sec-ant/readable-stream@npm:^0.4.1": version: 0.4.1 resolution: "@sec-ant/readable-stream@npm:0.4.1" @@ -17930,7 +17334,6 @@ __metadata: dependencies: "@apps/hash-ai-worker-ts": "workspace:*" "@apps/hash-api": "workspace:*" - "@apps/hash-graph": "workspace:*" "@apps/hash-integration-worker": "workspace:*" "@blockprotocol/graph": "workspace:*" "@blockprotocol/type-system": "workspace:*" @@ -17962,6 +17365,14 @@ __metadata: languageName: unknown linkType: soft +"@tests/hash-graph-http@workspace:tests/graph/http": + version: 0.0.0-use.local + resolution: "@tests/hash-graph-http@workspace:tests/graph/http" + dependencies: + httpyac: "npm:6.16.7" + languageName: unknown + linkType: soft + "@tests/hash-playwright@workspace:tests/hash-playwright": version: 0.0.0-use.local resolution: "@tests/hash-playwright@workspace:tests/hash-playwright" From 69edb2ddc96f3dd4d410c8df92ae1ddf972ad34d Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 15:01:21 +0200 Subject: [PATCH 02/15] SRE-984: Let the prune action call turbo prune directly `turbo prune` follows the package graph, the task graph and Cargo's dev-dependencies itself, so the closure and the rules `prune.py` computed over them are gone. The Petrinaut docs the Brunch product tests read arrive through a `manifest` edge on their package; what remains to copy are the two Brunch directories and the oxlint configuration that no package owns. The rule that added the atlas crate for the frontend had no reader left in the tree. --- .github/actions/prune-repository/action.yml | 38 +++++- .github/actions/prune-repository/prune.py | 124 ------------------ .../actions/prune-repository/prune_test.py | 53 -------- apps/brunch-agent/docs/task-dependencies.json | 7 + apps/brunch-agent/turbo.json | 4 +- 5 files changed, 43 insertions(+), 183 deletions(-) delete mode 100644 .github/actions/prune-repository/prune.py delete mode 100644 .github/actions/prune-repository/prune_test.py diff --git a/.github/actions/prune-repository/action.yml b/.github/actions/prune-repository/action.yml index a1133a75169..4b41d6da630 100644 --- a/.github/actions/prune-repository/action.yml +++ b/.github/actions/prune-repository/action.yml @@ -12,16 +12,44 @@ runs: shell: bash env: SCOPE: ${{ inputs.scope }} - run: python3 ${{ github.action_path }}/prune.py "$SCOPE" + run: | + read -r -a scopes <<< "${SCOPE//$'\n'/ }" + turbo prune "${scopes[@]}" + + # `turbo prune` copies the workspace directories and the root manifests; paths a package + # reads from outside any workspace are copied here. + - name: Copy paths outside the workspaces + shell: bash + env: + SCOPE: ${{ inputs.scope }} + run: | + copy() { mkdir -p "out/$(dirname "$1")" && cp -R "$1" "out/$1"; } + read -r -a scopes <<< "${SCOPE//$'\n'/ }" + for scope in "${scopes[@]}"; do + case "$scope" in + @hashintel/brunch-agent) + copy .config/oxlint/brunch + ;; + # The app's product tests execute evaluation runners and inspect committed evidence. + @apps/brunch-agent) + copy .config/oxlint/brunch + copy libs/@hashintel/brunch-agent/docs + copy libs/@hashintel/brunch-agent/evaluations + ;; + esac + done - name: Copy required files shell: bash run: | - cp -R Cargo.toml Cargo.lock rust-toolchain.toml oxfmt.config.ts infra/ out/ + cp -R oxfmt.config.ts infra/ out/ - # Globs are fun, especially in Bash. Covers all dot-files except `.`, `..`, and `.git`. - shopt -s extglob - cp -R .[!.!(.git)]* .git?* out/ + # Every dot-file except `.git`; what `turbo prune` already wrote stays as it is. + shopt -s dotglob nullglob + for entry in .[!.]*; do + [ "$entry" = .git ] && continue + [ -e "out/$entry" ] || cp -R "$entry" out/ + done - name: Remove old repository files shell: bash diff --git a/.github/actions/prune-repository/prune.py b/.github/actions/prune-repository/prune.py deleted file mode 100644 index c0f56e319a4..00000000000 --- a/.github/actions/prune-repository/prune.py +++ /dev/null @@ -1,124 +0,0 @@ -#!/usr/bin/env python3 -"""Prunes the turbo workspace to only the packages required for the given scope(s). - -`turbo prune` follows the package graph and, across toolchains, the task graph itself. -This adds what neither graph carries: packages a job reads without depending on them, -and paths outside any workspace. -""" - -import argparse -import shutil -import subprocess -from collections.abc import Iterable -from pathlib import Path - -# Extras that must not fire on a transitive or prefix match. -REQUESTED_DEPENDENCIES: dict[str, list[str]] = { - # The frontend's wire-conformance suite decodes the atlas crate's checked-in fixtures - "@apps/hash-frontend": ["hash-graph-atlas"], -} - -# Non-workspace paths required by packages in the *requested* scope. -# `turbo prune` copies workspace directories and root manifests only. -REQUESTED_PATHS: dict[str, list[str]] = { - "@hashintel/brunch-agent": [".config/oxlint/brunch"], - # The app's product tests execute evaluation runners and inspect committed - # evidence. Those non-workspace inputs are copied explicitly. - "@apps/brunch-agent": [ - ".config/oxlint/brunch", - "libs/@hashintel/brunch-agent/docs", - "libs/@hashintel/brunch-agent/evaluations", - "libs/@hashintel/petrinaut/docs", - ], -} - - -def extras_for_requested(requested: Iterable[str]) -> frozenset[str]: - """Return extras implied by the job's requested scopes only. - - Exact identity: a name that is a prefix of its siblings must not match them. - """ - - names = set(requested) - extras: set[str] = set() - for trigger, additions in REQUESTED_DEPENDENCIES.items(): - if trigger in names: - extras.update(additions) - return frozenset(extras) - - -def extra_paths_for_requested(requested: Iterable[str]) -> list[str]: - """Return non-workspace paths implied by the job's requested scopes only.""" - - names = set(requested) - paths: list[str] = [] - for trigger, trigger_paths in REQUESTED_PATHS.items(): - if trigger in names: - paths.extend(trigger_paths) - return paths - - -def turbo_prune(scopes: Iterable[str], *, dry_run: bool = False) -> None: - """Run `turbo prune` with the given scopes.""" - args = ["turbo", "prune", *sorted(scopes)] - print(f"Pruning with scopes: {' '.join(sorted(scopes))}") - - if dry_run: - print(f"[dry-run] Would run: {' '.join(args)}") - return - - subprocess.run(args, check=True) - - -def copy_extra_paths(scopes: Iterable[str], *, dry_run: bool = False) -> None: - """Copy non-workspace paths that `turbo prune` cannot include.""" - - for path in extra_paths_for_requested(scopes): - source = Path(path) - if not source.exists(): - msg = f"REQUESTED_PATHS names {source}, which does not exist" - raise FileNotFoundError(msg) - - destination = Path("out") / source - - if dry_run: - print(f"[dry-run] Would copy: {source} -> {destination}") - continue - - print(f"Copying extra path: {source} -> {destination}") - if source.is_dir(): - shutil.copytree(source, destination, dirs_exist_ok=True) - else: - destination.parent.mkdir(parents=True, exist_ok=True) - shutil.copy2(source, destination) - - -def parse_args(argv: list[str] | None = None) -> argparse.Namespace: - parser = argparse.ArgumentParser( - description="Prune the turbo workspace to only the packages required for the given scopes.", - ) - parser.add_argument( - "scope", - help="Newline or space-separated list of package scopes to include.", - ) - parser.add_argument( - "--dry-run", - action="store_true", - help="Print what would be done without executing turbo prune.", - ) - return parser.parse_args(argv) - - -def main(argv: list[str] | None = None) -> None: - args = parse_args(argv) - - requested = { - s.strip() for line in args.scope.splitlines() for s in line.split() if s.strip() - } - - turbo_prune(requested | extras_for_requested(requested), dry_run=args.dry_run) - copy_extra_paths(requested, dry_run=args.dry_run) - - -if __name__ == "__main__": - main() diff --git a/.github/actions/prune-repository/prune_test.py b/.github/actions/prune-repository/prune_test.py deleted file mode 100644 index 93d2d9108e7..00000000000 --- a/.github/actions/prune-repository/prune_test.py +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env python3 -"""Hermetic oracles for prune extra-scope rules. Does not run turbo prune.""" - -from __future__ import annotations - -import unittest - -from prune import extra_paths_for_requested, extras_for_requested - -CORE = "@hashintel/brunch-agent" -TRANSPORT = "@hashintel/brunch-agent-transport-aisdk" -APP = "@apps/brunch-agent" -WEBSITE = "@apps/petrinaut-website" -FRONTEND = "@apps/hash-frontend" -PLAYWRIGHT = "@tests/hash-playwright" -ATLAS = "hash-graph-atlas" - - -class FrontendRequestedExtras(unittest.TestCase): - def test_frontend_direct(self) -> None: - self.assertEqual(extras_for_requested({FRONTEND}), frozenset({ATLAS})) - - def test_dependent_of_frontend_adds_nothing(self) -> None: - self.assertEqual(extras_for_requested({PLAYWRIGHT}), frozenset()) - - -class BrunchRequestedExtras(unittest.TestCase): - def test_app_keeps_only_its_non_workspace_product_inputs(self) -> None: - self.assertEqual( - extra_paths_for_requested({APP}), - [ - ".config/oxlint/brunch", - "libs/@hashintel/brunch-agent/docs", - "libs/@hashintel/brunch-agent/evaluations", - "libs/@hashintel/petrinaut/docs", - ], - ) - - def test_core_adds_only_its_shared_lint_config(self) -> None: - self.assertEqual(extras_for_requested({CORE}), frozenset()) - self.assertEqual( - extra_paths_for_requested({CORE}), - [".config/oxlint/brunch"], - ) - - def test_sibling_or_website_job_does_not_add_context_paths(self) -> None: - self.assertEqual(extra_paths_for_requested({TRANSPORT}), []) - self.assertEqual(extra_paths_for_requested({WEBSITE}), []) - self.assertEqual(extras_for_requested({WEBSITE}), frozenset()) - - -if __name__ == "__main__": - unittest.main() diff --git a/apps/brunch-agent/docs/task-dependencies.json b/apps/brunch-agent/docs/task-dependencies.json index 370c247db7a..41be3cb29e0 100644 --- a/apps/brunch-agent/docs/task-dependencies.json +++ b/apps/brunch-agent/docs/task-dependencies.json @@ -632,7 +632,14 @@ "TEST_COVERAGE" ], "affectedBy": [ + "@apps/petrinaut-opt", + "@hashintel/ds-components", + "@hashintel/ds-helpers", "@hashintel/petrinaut", + "@hashintel/petrinaut-cli", + "@hashintel/refractive", + "@local/petrinaut-optimizer-client", + "@local/petrinaut-python", "darwin-kperf", "darwin-kperf-codegen", "darwin-kperf-criterion", diff --git a/apps/brunch-agent/turbo.json b/apps/brunch-agent/turbo.json index d55ad0149e6..d62356f391e 100644 --- a/apps/brunch-agent/turbo.json +++ b/apps/brunch-agent/turbo.json @@ -45,8 +45,10 @@ "dependsOn": ["build", "codegen", "^build"], "env": ["TEST_COVERAGE"] }, + // The product tests read the Petrinaut docs; the `manifest` edge keeps the package in a + // pruned tree, the input glob names the files. "test:unit": { - "dependsOn": ["codegen", "^build"], + "dependsOn": ["codegen", "^build", "@hashintel/petrinaut#manifest"], "env": ["TEST_COVERAGE"], "inputs": [ "$TURBO_DEFAULT$", From e89e967f8cb6ee4c89b1e5e03c798e656b6881d6 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 15:13:47 +0200 Subject: [PATCH 03/15] SRE-984: Drop the dependencyOutputs inputs until turbo loads crate scopes before validating them Under `experimentalCargoWorkspaces`, turbo 2.10.14-canary.3 validates a `dependencyOutputs.from` selector that names a crate task before it has loaded the crate's scope, so every package whose dependency closure holds such a block fails under a single `--filter`. The five blocks go until the fix lands; the `dependsOn` edges stay, so the crate tasks keep hashing into their consumers, and only the narrowing to the generated files is lost. Revert this commit once turbo resolves the selectors again. --- libs/@blockprotocol/type-system/typescript/turbo.json | 8 -------- libs/@local/codec/typescript/turbo.json | 8 -------- libs/@local/graph/authorization/typescript/turbo.json | 8 -------- libs/@local/graph/store/typescript/turbo.json | 8 -------- libs/@local/harpc/client/typescript/turbo.json | 10 +--------- 5 files changed, 1 insertion(+), 41 deletions(-) diff --git a/libs/@blockprotocol/type-system/typescript/turbo.json b/libs/@blockprotocol/type-system/typescript/turbo.json index 2e0b6558aaf..b1705c9d553 100644 --- a/libs/@blockprotocol/type-system/typescript/turbo.json +++ b/libs/@blockprotocol/type-system/typescript/turbo.json @@ -6,14 +6,6 @@ }, "codegen": { "dependsOn": ["type-system#build:types", "type-system#build:wasm"], - "inputs": [ - "$TURBO_DEFAULT$", - { - "mode": "dependencyOutputs", - "globs": ["types/index.snap.d.ts", "pkg/type-system.d.ts"], - "from": ["type-system#build:types", "type-system#build:wasm"] - } - ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/codec/typescript/turbo.json b/libs/@local/codec/typescript/turbo.json index 1049a5a9853..da228822bb3 100644 --- a/libs/@local/codec/typescript/turbo.json +++ b/libs/@local/codec/typescript/turbo.json @@ -6,14 +6,6 @@ }, "codegen": { "dependsOn": ["hash-codec#build:types"], - "inputs": [ - "$TURBO_DEFAULT$", - { - "mode": "dependencyOutputs", - "globs": ["types/index.snap.d.ts"], - "from": ["hash-codec#build:types"] - } - ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/graph/authorization/typescript/turbo.json b/libs/@local/graph/authorization/typescript/turbo.json index 390b74ea499..ca8626aec75 100644 --- a/libs/@local/graph/authorization/typescript/turbo.json +++ b/libs/@local/graph/authorization/typescript/turbo.json @@ -6,14 +6,6 @@ }, "codegen": { "dependsOn": ["hash-graph-authorization#build:types"], - "inputs": [ - "$TURBO_DEFAULT$", - { - "mode": "dependencyOutputs", - "globs": ["types/index.snap.d.ts"], - "from": ["hash-graph-authorization#build:types"] - } - ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/graph/store/typescript/turbo.json b/libs/@local/graph/store/typescript/turbo.json index 6dac47aa89d..fe41673086c 100644 --- a/libs/@local/graph/store/typescript/turbo.json +++ b/libs/@local/graph/store/typescript/turbo.json @@ -6,14 +6,6 @@ }, "codegen": { "dependsOn": ["hash-graph-store#build:types"], - "inputs": [ - "$TURBO_DEFAULT$", - { - "mode": "dependencyOutputs", - "globs": ["types/index.snap.d.ts"], - "from": ["hash-graph-store#build:types"] - } - ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/harpc/client/typescript/turbo.json b/libs/@local/harpc/client/typescript/turbo.json index 0126dfa4b97..3f1fea1e93b 100644 --- a/libs/@local/harpc/client/typescript/turbo.json +++ b/libs/@local/harpc/client/typescript/turbo.json @@ -6,15 +6,7 @@ "outputs": ["./dist/**"] }, "test:unit": { - "dependsOn": ["harpc-wire-protocol#build:cli"], - "inputs": [ - "$TURBO_DEFAULT$", - { - "mode": "dependencyOutputs", - "globs": ["./dist/release/codec"], - "from": ["harpc-wire-protocol#build:cli"] - } - ] + "dependsOn": ["harpc-wire-protocol#build:cli"] } } } From 73f347a0a876c41a40f9759ef204ca96bbf88894 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 15:17:13 +0200 Subject: [PATCH 04/15] SRE-984: Match the retried harpc-net tests by name in the nextest config nextest rejects a `package()` matcher that names no package of the workspace, and a pruned workspace holds only the crates a job needs, so the CI profile matched nothing for every other crate and failed to parse. The two test paths exist only in `harpc-net`. --- .config/nextest.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 62a82f94c44..836ea3b6f68 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -3,6 +3,9 @@ fail-fast = false failure-output = "final" status-level = "skip" +# The two tests live in `harpc-net`. A package matcher would name the crate, but nextest +# rejects a matcher that names no package of the workspace, and a pruned workspace may not +# contain the crate. [[profile.ci.overrides]] -filter = 'package(harpc-net) and (test(session::test::echo_tcp_concurrent) or test(session::test::echo_memory_concurrent))' +filter = 'test(session::test::echo_tcp_concurrent) or test(session::test::echo_memory_concurrent)' retries = 3 From c5b8d6adc3301cc1d710c92389ed2d3f7e5af5d0 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 15:26:27 +0200 Subject: [PATCH 05/15] SRE-984: Name the graph image's package by its Cargo name in the deploy catalog --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dd6b5c4147a..255cab7079f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -91,7 +91,7 @@ jobs: CATALOG=$(jq -nc '[ { - package: "@apps/hash-graph", + package: "hash-graph", service: "graph", push: ["ecr", "ghcr"], dockerfile: "apps/hash-graph/docker/Dockerfile", From a561c9829701ce0fbb2ad10846c7047e67b3b798 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 15:39:43 +0200 Subject: [PATCH 06/15] SRE-984: Give the image prune stage the Rust toolchain turbo prune needs --- apps/brunch-agent/docker/Dockerfile | 25 ++++++++--------- apps/hash-ai-worker-ts/docker/Dockerfile | 25 ++++++++--------- apps/hash-api/docker/Dockerfile | 25 ++++++++--------- apps/hash-frontend/docker/Dockerfile | 25 ++++++++--------- apps/hash-graph/docker/Dockerfile | 25 ++++++++--------- .../hash-integration-worker/docker/Dockerfile | 27 ++++++++++--------- apps/petrinaut-opt/docker/Dockerfile | 9 +++++++ libs/@local/graph/atlas/docker/Dockerfile | 8 +++++- 8 files changed, 95 insertions(+), 74 deletions(-) diff --git a/apps/brunch-agent/docker/Dockerfile b/apps/brunch-agent/docker/Dockerfile index 5514679de8a..e61aea4a694 100644 --- a/apps/brunch-agent/docker/Dockerfile +++ b/apps/brunch-agent/docker/Dockerfile @@ -24,18 +24,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked node -FROM mise AS base - -WORKDIR /repo - -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq - -COPY . . -RUN mise trust && \ - turbo prune '@apps/brunch-agent' --docker - - FROM mise AS rust WORKDIR /usr/local/ @@ -54,6 +42,19 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ rm rust-toolchain.toml +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +FROM rust AS base + +WORKDIR /repo + +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked npm:turbo yq + +COPY . . +RUN mise trust && \ + turbo prune '@apps/brunch-agent' --docker + + FROM rust AS builder WORKDIR /repo diff --git a/apps/hash-ai-worker-ts/docker/Dockerfile b/apps/hash-ai-worker-ts/docker/Dockerfile index ad35772d398..196c74ed273 100644 --- a/apps/hash-ai-worker-ts/docker/Dockerfile +++ b/apps/hash-ai-worker-ts/docker/Dockerfile @@ -21,18 +21,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked node -FROM mise AS base - -WORKDIR /app - -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq - -COPY . . -RUN mise trust && \ - turbo prune '@apps/hash-ai-worker-ts' --docker - - FROM mise AS rust WORKDIR /usr/local/ @@ -52,6 +40,19 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ rm rust-toolchain.toml +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +FROM rust AS base + +WORKDIR /app + +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked npm:turbo yq + +COPY . . +RUN mise trust && \ + turbo prune '@apps/hash-ai-worker-ts' --docker + + FROM rust AS builder WORKDIR /usr/local/src/ diff --git a/apps/hash-api/docker/Dockerfile b/apps/hash-api/docker/Dockerfile index 44aad1e2d78..0fd978ae4fb 100644 --- a/apps/hash-api/docker/Dockerfile +++ b/apps/hash-api/docker/Dockerfile @@ -21,18 +21,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked node -FROM mise AS base - -WORKDIR /app - -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq - -COPY . . -RUN mise trust && \ - turbo prune '@apps/hash-api' --docker - - FROM mise AS rust WORKDIR /usr/local/ @@ -52,6 +40,19 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ rm rust-toolchain.toml +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +FROM rust AS base + +WORKDIR /app + +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked npm:turbo yq + +COPY . . +RUN mise trust && \ + turbo prune '@apps/hash-api' --docker + + FROM rust AS builder WORKDIR /usr/local/src/ diff --git a/apps/hash-frontend/docker/Dockerfile b/apps/hash-frontend/docker/Dockerfile index 02775c65cbf..3c2484cf98d 100644 --- a/apps/hash-frontend/docker/Dockerfile +++ b/apps/hash-frontend/docker/Dockerfile @@ -18,18 +18,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ eval "$(mise activate bash)" && \ mise install --locked node -FROM mise AS base - -WORKDIR /app - -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq - -COPY . . -RUN mise trust && \ - turbo prune '@apps/hash-frontend' --docker - - FROM mise AS rust WORKDIR /usr/local/ @@ -49,6 +37,19 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ rm rust-toolchain.toml +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +FROM rust AS base + +WORKDIR /app + +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked npm:turbo yq + +COPY . . +RUN mise trust && \ + turbo prune '@apps/hash-frontend' --docker + + FROM rust AS builder WORKDIR /usr/local/src/ diff --git a/apps/hash-graph/docker/Dockerfile b/apps/hash-graph/docker/Dockerfile index 744faa4de9d..ec88102295f 100644 --- a/apps/hash-graph/docker/Dockerfile +++ b/apps/hash-graph/docker/Dockerfile @@ -22,18 +22,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked node -FROM mise AS base - -WORKDIR /app - -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq - -COPY . . -RUN mise trust && \ - turbo prune 'hash-graph' --docker - - FROM mise AS rust WORKDIR /usr/local/ @@ -53,6 +41,19 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ rm rust-toolchain.toml +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +FROM rust AS base + +WORKDIR /app + +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked npm:turbo yq + +COPY . . +RUN mise trust && \ + turbo prune 'hash-graph' --docker + + FROM rust AS builder WORKDIR /usr/local/src/ diff --git a/apps/hash-integration-worker/docker/Dockerfile b/apps/hash-integration-worker/docker/Dockerfile index 2d3d916f91a..ba57fa2eac0 100644 --- a/apps/hash-integration-worker/docker/Dockerfile +++ b/apps/hash-integration-worker/docker/Dockerfile @@ -21,19 +21,6 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ mise install --locked node -FROM mise AS base - -WORKDIR /app - -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq - -COPY . . - -RUN mise trust && \ - turbo prune '@apps/hash-integration-worker' --docker - - FROM mise AS rust WORKDIR /usr/local/ @@ -53,6 +40,20 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ rm rust-toolchain.toml +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +FROM rust AS base + +WORKDIR /app + +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked npm:turbo yq + +COPY . . + +RUN mise trust && \ + turbo prune '@apps/hash-integration-worker' --docker + + FROM rust AS builder WORKDIR /usr/local/src/ diff --git a/apps/petrinaut-opt/docker/Dockerfile b/apps/petrinaut-opt/docker/Dockerfile index f640b6aae5f..e90da0dab98 100644 --- a/apps/petrinaut-opt/docker/Dockerfile +++ b/apps/petrinaut-opt/docker/Dockerfile @@ -30,6 +30,15 @@ FROM bindings-tools AS bindings-pruner WORKDIR /repo +ENV MISE_CARGO_HOME="/usr/local/cargo" \ + PATH="$PATH:/usr/local/cargo/bin" + +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +COPY rust-toolchain.toml . +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + mise install --locked yq && \ + mise use --global rust[profile=minimal]@$(yq '.toolchain.channel' rust-toolchain.toml) + COPY . . RUN mise trust && \ diff --git a/libs/@local/graph/atlas/docker/Dockerfile b/libs/@local/graph/atlas/docker/Dockerfile index 311c710b74b..741e897dc00 100644 --- a/libs/@local/graph/atlas/docker/Dockerfile +++ b/libs/@local/graph/atlas/docker/Dockerfile @@ -29,8 +29,14 @@ FROM mise AS base WORKDIR /app +ENV MISE_CARGO_HOME="/usr/local/cargo" \ + PATH="$PATH:/usr/local/cargo/bin" + +# `turbo prune` reads the Cargo workspace through `cargo metadata`. +COPY rust-toolchain.toml . RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked npm:turbo yq + mise install --locked npm:turbo yq && \ + mise use --global rust[profile=minimal]@$(yq '.toolchain.channel' rust-toolchain.toml) COPY . . RUN mise trust && \ From a285f642b86bdb951775bc0613bff9b48a2b74f5 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 16:07:24 +0200 Subject: [PATCH 07/15] SRE-984: Merge the dot-files into the pruned tree instead of skipping present directories --- .github/actions/prune-repository/action.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/actions/prune-repository/action.yml b/.github/actions/prune-repository/action.yml index 4b41d6da630..186d1e9e789 100644 --- a/.github/actions/prune-repository/action.yml +++ b/.github/actions/prune-repository/action.yml @@ -27,12 +27,8 @@ runs: read -r -a scopes <<< "${SCOPE//$'\n'/ }" for scope in "${scopes[@]}"; do case "$scope" in - @hashintel/brunch-agent) - copy .config/oxlint/brunch - ;; # The app's product tests execute evaluation runners and inspect committed evidence. @apps/brunch-agent) - copy .config/oxlint/brunch copy libs/@hashintel/brunch-agent/docs copy libs/@hashintel/brunch-agent/evaluations ;; @@ -44,11 +40,12 @@ runs: run: | cp -R oxfmt.config.ts infra/ out/ - # Every dot-file except `.git`; what `turbo prune` already wrote stays as it is. + # Every dot-file except `.git`, merged into what `turbo prune` already wrote there (the + # pruned `.cargo/config.toml`, the `.claude/hooks` workspace), which stays as it is. shopt -s dotglob nullglob for entry in .[!.]*; do [ "$entry" = .git ] && continue - [ -e "out/$entry" ] || cp -R "$entry" out/ + rsync --archive --ignore-existing "$entry" out/ done - name: Remove old repository files From ab71e966edd5fafbbf0885295891b73a26125132 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 16:07:42 +0200 Subject: [PATCH 08/15] SRE-984: Satisfy rustfmt and clippy in the task-dependencies generator --- .../rust/src/task_dependencies/mod.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs b/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs index 51cee2daa0c..7ecd981f0b5 100644 --- a/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs +++ b/libs/@local/repo-chores/rust/src/task_dependencies/mod.rs @@ -284,12 +284,11 @@ async fn declarations( .change_context_lazy(|| TaskDependenciesError::ReadFile(path.clone()))?; for (key, definition) in config.tasks { - let (owner, task) = match key.split_once('#') { - Some((owner, task)) => (owner.to_owned(), task.to_owned()), - None => { - names.insert(key.clone()); - (package.name.clone(), key) - } + let (owner, task) = if let Some((owner, task)) = key.split_once('#') { + (owner.to_owned(), task.to_owned()) + } else { + names.insert(key.clone()); + (package.name.clone(), key) }; if has_command(&definition) { implemented.entry(owner).or_default().insert(task); @@ -625,14 +624,16 @@ fn documents( ); } - Ok(documents + // The workspace roots are packages without a directory of their own. + let documents = documents .into_iter() - // The workspace roots are packages without a directory of their own. .filter_map(|(name, document)| match paths.remove(&name) { Some(path) if !path.is_empty() => Some((path, document)), _ => None, }) - .collect()) + .collect(); + + Ok(documents) } fn render(document: &Document) -> Result> { From a104679c1dbde9f36e27c2cbabe7538000ebd168 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 16:07:47 +0200 Subject: [PATCH 09/15] SRE-984: Install the Rust toolchain in the petrinaut-opt bindings tool stage --- apps/petrinaut-opt/docker/Dockerfile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/apps/petrinaut-opt/docker/Dockerfile b/apps/petrinaut-opt/docker/Dockerfile index e90da0dab98..2b09268c678 100644 --- a/apps/petrinaut-opt/docker/Dockerfile +++ b/apps/petrinaut-opt/docker/Dockerfile @@ -14,31 +14,28 @@ SHELL ["/bin/bash", "-euo", "pipefail", "-c"] ENV MISE_DATA_DIR="/mise" ENV MISE_CACHE_DIR="/mise/cache" -ENV PATH="/mise/shims:$PATH" +ENV MISE_CARGO_HOME="/usr/local/cargo" +ENV PATH="/mise/shims:/usr/local/cargo/bin:$PATH" COPY .config/mise /etc/mise -RUN apt-get update && \ +# turbo reads the Cargo workspace through `cargo metadata`, in the prune as well as in the build. +COPY rust-toolchain.toml /tmp/rust-toolchain.toml +RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ + apt-get update && \ apt-get install -y --no-install-recommends curl ca-certificates && \ /etc/mise/install.sh && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ - mise install --locked node npm:turbo + mise install --locked node npm:turbo yq && \ + mise use --global rust[profile=minimal]@$(yq '.toolchain.channel' /tmp/rust-toolchain.toml) && \ + rm /tmp/rust-toolchain.toml FROM bindings-tools AS bindings-pruner WORKDIR /repo -ENV MISE_CARGO_HOME="/usr/local/cargo" \ - PATH="$PATH:/usr/local/cargo/bin" - -# `turbo prune` reads the Cargo workspace through `cargo metadata`. -COPY rust-toolchain.toml . -RUN --mount=type=secret,id=GITHUB_TOKEN,env=GITHUB_TOKEN \ - mise install --locked yq && \ - mise use --global rust[profile=minimal]@$(yq '.toolchain.channel' rust-toolchain.toml) - COPY . . RUN mise trust && \ From 2ef808e9e8ed4b7a719496ac8ee1d489ab503890 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Wed, 16 Sep 2026 16:37:49 +0200 Subject: [PATCH 10/15] SRE-984: Keep the brunch-agent turbo.json strict JSON --- apps/brunch-agent/turbo.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/brunch-agent/turbo.json b/apps/brunch-agent/turbo.json index d62356f391e..9353f811cd1 100644 --- a/apps/brunch-agent/turbo.json +++ b/apps/brunch-agent/turbo.json @@ -45,8 +45,6 @@ "dependsOn": ["build", "codegen", "^build"], "env": ["TEST_COVERAGE"] }, - // The product tests read the Petrinaut docs; the `manifest` edge keeps the package in a - // pruned tree, the input glob names the files. "test:unit": { "dependsOn": ["codegen", "^build", "@hashintel/petrinaut#manifest"], "env": ["TEST_COVERAGE"], From e3ebd715d6bdec7ebe785c831f69bdc97c4e9b28 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Thu, 17 Sep 2026 05:10:21 +0200 Subject: [PATCH 11/15] SRE-984: Let turbo map the root Cargo.toml to the crates itself --- turbo.json | 1 - 1 file changed, 1 deletion(-) diff --git a/turbo.json b/turbo.json index 98ccc7d43d5..721b9053a6e 100644 --- a/turbo.json +++ b/turbo.json @@ -151,7 +151,6 @@ // Manifest files "*.lock", ".config/mise/**", - "Cargo.toml", "package.json", "pyproject.toml", "rust-toolchain.toml", From b5613175f4d27d899724e1456bf00f5a0b4c4984 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Fri, 18 Sep 2026 00:41:57 +0200 Subject: [PATCH 12/15] SRE-984: Bring the problematic crate onto the native workspace --- apps/brunch-agent/docs/task-dependencies.json | 21 +++++++++++-------- .../docs/task-dependencies.json | 10 +++++++++ apps/hash-api/docs/task-dependencies.json | 11 ++++++++++ .../hash-frontend/docs/task-dependencies.json | 10 +++++++++ .../docs/task-dependencies.json | 9 ++++++++ .../docs/task-dependencies.json | 3 ++- .../docs/task-dependencies.json | 8 +++++++ .../type-editor/docs/task-dependencies.json | 3 +++ .../graph/atlas/tests/generation_transfer.rs | 2 +- .../docs/task-dependencies.json | 1 + .../typescript/docs/task-dependencies.json | 2 ++ .../typescript/docs/task-dependencies.json | 5 +++++ .../docs/task-dependencies.json | 5 +++++ .../docs/task-dependencies.json | 5 +++++ .../middleware/docs/task-dependencies.json | 1 + .../node/docs/task-dependencies.json | 4 ++++ libs/problematic/rust/Cargo.toml | 10 ++++----- .../rust/docs/task-dependencies.json | 10 +++++++-- libs/problematic/rust/turbo.json | 11 ++++++++++ .../docs/task-dependencies.json | 5 +++++ .../docs/task-dependencies.json | 5 +++++ 21 files changed, 123 insertions(+), 18 deletions(-) create mode 100644 libs/problematic/rust/turbo.json diff --git a/apps/brunch-agent/docs/task-dependencies.json b/apps/brunch-agent/docs/task-dependencies.json index 41be3cb29e0..b513b156ba9 100644 --- a/apps/brunch-agent/docs/task-dependencies.json +++ b/apps/brunch-agent/docs/task-dependencies.json @@ -2,7 +2,6 @@ "package": "@apps/brunch-agent", "dependencies": [ "@hashintel/brunch-agent", - "@hashintel/brunch-agent-binding-flue", "@hashintel/brunch-agent-plugin-sdcpn", "@hashintel/brunch-agent-transport-aisdk", "@hashintel/petrinaut-core", @@ -12,7 +11,6 @@ "build": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -61,6 +59,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -110,13 +109,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "dev": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -167,13 +166,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "fix:eslint": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -223,13 +222,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "lint:eslint": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -282,13 +281,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "lint:tsc": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -337,13 +336,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "petrinaut:dev": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -394,6 +393,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -446,6 +446,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -502,6 +503,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -557,13 +559,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "test:integration": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -616,13 +618,13 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, "test:unit": { "dependsOn": [ "@hashintel/brunch-agent#build", - "@hashintel/brunch-agent-binding-flue#build", "@hashintel/brunch-agent-plugin-sdcpn#build", "@hashintel/brunch-agent-transport-aisdk#build", "@hashintel/petrinaut-core#build", @@ -682,6 +684,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/apps/hash-ai-worker-ts/docs/task-dependencies.json b/apps/hash-ai-worker-ts/docs/task-dependencies.json index ae057366a8f..5bd8d3e1f95 100644 --- a/apps/hash-ai-worker-ts/docs/task-dependencies.json +++ b/apps/hash-ai-worker-ts/docs/task-dependencies.json @@ -70,6 +70,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -119,6 +120,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -180,6 +182,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -239,6 +242,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -301,6 +305,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -360,6 +365,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -410,6 +416,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -464,6 +471,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -522,6 +530,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -588,6 +597,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/apps/hash-api/docs/task-dependencies.json b/apps/hash-api/docs/task-dependencies.json index 088bc49c25c..980c304c25e 100644 --- a/apps/hash-api/docs/task-dependencies.json +++ b/apps/hash-api/docs/task-dependencies.json @@ -65,6 +65,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -117,6 +118,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -184,6 +186,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -249,6 +252,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -317,6 +321,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -382,6 +387,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -435,6 +441,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -507,6 +514,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -560,6 +568,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -632,6 +641,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -700,6 +710,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/apps/hash-frontend/docs/task-dependencies.json b/apps/hash-frontend/docs/task-dependencies.json index 648b2179955..d5fc29c174d 100644 --- a/apps/hash-frontend/docs/task-dependencies.json +++ b/apps/hash-frontend/docs/task-dependencies.json @@ -81,6 +81,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -130,6 +131,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -182,6 +184,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -246,6 +249,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -308,6 +312,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -373,6 +378,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -435,6 +441,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -489,6 +496,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -547,6 +555,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -616,6 +625,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/apps/hash-integration-worker/docs/task-dependencies.json b/apps/hash-integration-worker/docs/task-dependencies.json index ed0c9b23e72..4a2efad24a2 100644 --- a/apps/hash-integration-worker/docs/task-dependencies.json +++ b/apps/hash-integration-worker/docs/task-dependencies.json @@ -66,6 +66,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -115,6 +116,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -174,6 +176,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -231,6 +234,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -291,6 +295,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -348,6 +353,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -398,6 +404,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -452,6 +459,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -510,6 +518,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, diff --git a/apps/petrinaut-website/docs/task-dependencies.json b/apps/petrinaut-website/docs/task-dependencies.json index ac13bf29528..bf80603c3a4 100644 --- a/apps/petrinaut-website/docs/task-dependencies.json +++ b/apps/petrinaut-website/docs/task-dependencies.json @@ -26,6 +26,7 @@ "env": [ "SENTRY_DSN", "VITE_BRUNCH_CHAT_ENDPOINT", + "VITE_PETRINAUT_DEFAULT_ASSISTANT", "VITE_VERCEL_ENV" ] }, @@ -120,7 +121,6 @@ "@apps/brunch-agent", "@blockprotocol/graph", "@blockprotocol/type-system", - "@hashintel/brunch-agent-binding-flue", "@local/advanced-types", "@local/harpc-client", "@local/hash-backend-utils", @@ -174,6 +174,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, diff --git a/apps/plugin-browser/docs/task-dependencies.json b/apps/plugin-browser/docs/task-dependencies.json index 86856696b2d..7d6d8df3b30 100644 --- a/apps/plugin-browser/docs/task-dependencies.json +++ b/apps/plugin-browser/docs/task-dependencies.json @@ -68,6 +68,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -126,6 +127,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -184,6 +186,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -234,6 +237,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -294,6 +298,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -352,6 +357,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -413,6 +419,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -471,6 +478,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/@hashintel/type-editor/docs/task-dependencies.json b/libs/@hashintel/type-editor/docs/task-dependencies.json index 2bd171d7acc..77b1e3e810c 100644 --- a/libs/@hashintel/type-editor/docs/task-dependencies.json +++ b/libs/@hashintel/type-editor/docs/task-dependencies.json @@ -58,6 +58,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -114,6 +115,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -167,6 +169,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/@local/graph/atlas/tests/generation_transfer.rs b/libs/@local/graph/atlas/tests/generation_transfer.rs index 1636864cbee..adf51c2dc5e 100644 --- a/libs/@local/graph/atlas/tests/generation_transfer.rs +++ b/libs/@local/graph/atlas/tests/generation_transfer.rs @@ -1,7 +1,7 @@ //! Generation transfer and file-input integration against MinIO. //! //! Start the local MinIO service on port 9000 with access key `dev-s3-access-key-id` and secret -//! `dev-s3-secret-access-key`, then run `yarn workspace @rust/hash-graph-atlas test:integration`. +//! `dev-s3-secret-access-key`, then run `turbo run test:integration --filter hash-graph-atlas`. //! Each case creates its own bucket and local files. The test fails if the service is unavailable. use hash_graph_atlas::test_utils; diff --git a/libs/@local/graph/authentication/docs/task-dependencies.json b/libs/@local/graph/authentication/docs/task-dependencies.json index 18f6ec9538d..fcd04c33c46 100644 --- a/libs/@local/graph/authentication/docs/task-dependencies.json +++ b/libs/@local/graph/authentication/docs/task-dependencies.json @@ -5,6 +5,7 @@ "hash-graph-authorization", "hash-graph-store", "hash-middleware", + "problematic", "type-system" ], "tasks": { diff --git a/libs/@local/graph/client/typescript/docs/task-dependencies.json b/libs/@local/graph/client/typescript/docs/task-dependencies.json index bf18fe5a63d..b8c3f4e24f0 100644 --- a/libs/@local/graph/client/typescript/docs/task-dependencies.json +++ b/libs/@local/graph/client/typescript/docs/task-dependencies.json @@ -51,6 +51,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -99,6 +100,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/@local/graph/sdk/typescript/docs/task-dependencies.json b/libs/@local/graph/sdk/typescript/docs/task-dependencies.json index 3d5054bf160..bb4537293ee 100644 --- a/libs/@local/graph/sdk/typescript/docs/task-dependencies.json +++ b/libs/@local/graph/sdk/typescript/docs/task-dependencies.json @@ -66,6 +66,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -123,6 +124,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -183,6 +185,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -240,6 +243,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -300,6 +304,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/@local/hash-backend-utils/docs/task-dependencies.json b/libs/@local/hash-backend-utils/docs/task-dependencies.json index 8de16e0ed9a..c8e5353128c 100644 --- a/libs/@local/hash-backend-utils/docs/task-dependencies.json +++ b/libs/@local/hash-backend-utils/docs/task-dependencies.json @@ -68,6 +68,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -126,6 +127,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -187,6 +189,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -245,6 +248,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -306,6 +310,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json b/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json index 21911b74fe4..3f478b12ef1 100644 --- a/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json +++ b/libs/@local/hash-isomorphic-utils/docs/task-dependencies.json @@ -67,6 +67,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -128,6 +129,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -189,6 +191,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -247,6 +250,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -308,6 +312,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/@local/middleware/docs/task-dependencies.json b/libs/@local/middleware/docs/task-dependencies.json index 582e886a7fe..9aa74b18b0c 100644 --- a/libs/@local/middleware/docs/task-dependencies.json +++ b/libs/@local/middleware/docs/task-dependencies.json @@ -2,6 +2,7 @@ "package": "hash-middleware", "dependencies": [ "error-stack", + "problematic", "type-system" ], "tasks": { diff --git a/libs/@local/repo-chores/node/docs/task-dependencies.json b/libs/@local/repo-chores/node/docs/task-dependencies.json index 7fbb52fd52b..eb116d6c103 100644 --- a/libs/@local/repo-chores/node/docs/task-dependencies.json +++ b/libs/@local/repo-chores/node/docs/task-dependencies.json @@ -56,6 +56,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -111,6 +112,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -163,6 +165,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -218,6 +221,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/libs/problematic/rust/Cargo.toml b/libs/problematic/rust/Cargo.toml index 8436a30c56b..30bf77df201 100644 --- a/libs/problematic/rust/Cargo.toml +++ b/libs/problematic/rust/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "problematic" -version = "0.0.0" authors.workspace = true -edition.workspace = true description = "HTTP Problem Details with typed extensions and JSON Schema support" -license = "MIT OR Apache-2.0" documentation = "https://docs.rs/problematic" +edition.workspace = true +exclude = ["turbo.json", "docs/task-dependencies.json"] +license = "MIT OR Apache-2.0" +name = "problematic" repository = "https://github.com/hashintel/hash/tree/main/libs/problematic/rust" -exclude = ["package.json", "turbo.json", "docs/task-dependencies.json"] +version = "0.0.0" [dependencies] # Public workspace dependencies diff --git a/libs/problematic/rust/docs/task-dependencies.json b/libs/problematic/rust/docs/task-dependencies.json index 6854544ee37..b38611e3aa7 100644 --- a/libs/problematic/rust/docs/task-dependencies.json +++ b/libs/problematic/rust/docs/task-dependencies.json @@ -1,19 +1,25 @@ { - "package": "@rust/problematic", + "package": "problematic", "dependencies": [ - "@rust/error-stack" + "error-stack" ], "tasks": { "lint:clippy": { "dependsOn": [], "env": [ "GITHUB_EVENT_NAME" + ], + "affectedBy": [ + "error-stack-macros" ] }, "test:unit": { "dependsOn": [], "env": [ "TEST_COVERAGE" + ], + "affectedBy": [ + "error-stack-macros" ] } } diff --git a/libs/problematic/rust/turbo.json b/libs/problematic/rust/turbo.json new file mode 100644 index 00000000000..f616d7d6aaf --- /dev/null +++ b/libs/problematic/rust/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "problematic"] + } + } +} diff --git a/tests/hash-backend-integration/docs/task-dependencies.json b/tests/hash-backend-integration/docs/task-dependencies.json index ff16975ff88..4c920185bdd 100644 --- a/tests/hash-backend-integration/docs/task-dependencies.json +++ b/tests/hash-backend-integration/docs/task-dependencies.json @@ -65,6 +65,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -133,6 +134,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -204,6 +206,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -272,6 +275,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -348,6 +352,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } diff --git a/tests/hash-playwright/docs/task-dependencies.json b/tests/hash-playwright/docs/task-dependencies.json index d86f9832f8e..96585bea7d8 100644 --- a/tests/hash-playwright/docs/task-dependencies.json +++ b/tests/hash-playwright/docs/task-dependencies.json @@ -60,6 +60,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -115,6 +116,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -173,6 +175,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -227,6 +230,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] }, @@ -284,6 +288,7 @@ "hashql-macros", "hashql-mir", "hashql-syntax-jexpr", + "problematic", "type-system" ] } From f5354d040938c8371d9c95fdf47dbf72e23289c1 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Fri, 18 Sep 2026 00:42:16 +0200 Subject: [PATCH 13/15] SRE-984: Restore the dependencyOutputs inputs now that turbo defers their validation --- libs/@blockprotocol/type-system/typescript/turbo.json | 8 ++++++++ libs/@local/codec/typescript/turbo.json | 8 ++++++++ libs/@local/graph/authorization/typescript/turbo.json | 8 ++++++++ libs/@local/graph/store/typescript/turbo.json | 8 ++++++++ libs/@local/harpc/client/typescript/turbo.json | 10 +++++++++- 5 files changed, 41 insertions(+), 1 deletion(-) diff --git a/libs/@blockprotocol/type-system/typescript/turbo.json b/libs/@blockprotocol/type-system/typescript/turbo.json index b1705c9d553..2e0b6558aaf 100644 --- a/libs/@blockprotocol/type-system/typescript/turbo.json +++ b/libs/@blockprotocol/type-system/typescript/turbo.json @@ -6,6 +6,14 @@ }, "codegen": { "dependsOn": ["type-system#build:types", "type-system#build:wasm"], + "inputs": [ + "$TURBO_DEFAULT$", + { + "mode": "dependencyOutputs", + "globs": ["types/index.snap.d.ts", "pkg/type-system.d.ts"], + "from": ["type-system#build:types", "type-system#build:wasm"] + } + ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/codec/typescript/turbo.json b/libs/@local/codec/typescript/turbo.json index da228822bb3..1049a5a9853 100644 --- a/libs/@local/codec/typescript/turbo.json +++ b/libs/@local/codec/typescript/turbo.json @@ -6,6 +6,14 @@ }, "codegen": { "dependsOn": ["hash-codec#build:types"], + "inputs": [ + "$TURBO_DEFAULT$", + { + "mode": "dependencyOutputs", + "globs": ["types/index.snap.d.ts"], + "from": ["hash-codec#build:types"] + } + ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/graph/authorization/typescript/turbo.json b/libs/@local/graph/authorization/typescript/turbo.json index ca8626aec75..390b74ea499 100644 --- a/libs/@local/graph/authorization/typescript/turbo.json +++ b/libs/@local/graph/authorization/typescript/turbo.json @@ -6,6 +6,14 @@ }, "codegen": { "dependsOn": ["hash-graph-authorization#build:types"], + "inputs": [ + "$TURBO_DEFAULT$", + { + "mode": "dependencyOutputs", + "globs": ["types/index.snap.d.ts"], + "from": ["hash-graph-authorization#build:types"] + } + ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/graph/store/typescript/turbo.json b/libs/@local/graph/store/typescript/turbo.json index fe41673086c..6dac47aa89d 100644 --- a/libs/@local/graph/store/typescript/turbo.json +++ b/libs/@local/graph/store/typescript/turbo.json @@ -6,6 +6,14 @@ }, "codegen": { "dependsOn": ["hash-graph-store#build:types"], + "inputs": [ + "$TURBO_DEFAULT$", + { + "mode": "dependencyOutputs", + "globs": ["types/index.snap.d.ts"], + "from": ["hash-graph-store#build:types"] + } + ], "outputs": ["src/generated/**"] }, "build": { diff --git a/libs/@local/harpc/client/typescript/turbo.json b/libs/@local/harpc/client/typescript/turbo.json index 3f1fea1e93b..0126dfa4b97 100644 --- a/libs/@local/harpc/client/typescript/turbo.json +++ b/libs/@local/harpc/client/typescript/turbo.json @@ -6,7 +6,15 @@ "outputs": ["./dist/**"] }, "test:unit": { - "dependsOn": ["harpc-wire-protocol#build:cli"] + "dependsOn": ["harpc-wire-protocol#build:cli"], + "inputs": [ + "$TURBO_DEFAULT$", + { + "mode": "dependencyOutputs", + "globs": ["./dist/release/codec"], + "from": ["harpc-wire-protocol#build:cli"] + } + ] } } } From 2466c75c48b60dd5602864c989a4f1b787f57cc8 Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Fri, 18 Sep 2026 16:23:00 +0200 Subject: [PATCH 14/15] SRE-984: Let turbo hash the package configurations and lockfiles itself --- turbo.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/turbo.json b/turbo.json index 721b9053a6e..8e5b1d9af17 100644 --- a/turbo.json +++ b/turbo.json @@ -137,8 +137,6 @@ } }, "globalDependencies": [ - // Changing any `turbo.json` file will trigger a full rebuild - "**/turbo.json", // Changing workflows should trigger a full rebuild so it's checked in CI ".github/actions/**", ".github/scripts/**", @@ -149,7 +147,6 @@ ".config/**", ".yarn/**", // Manifest files - "*.lock", ".config/mise/**", "package.json", "pyproject.toml", From 217d59ca46b93cc516dc2bc454d7d9523430795a Mon Sep 17 00:00:00 2001 From: Tim Diekmann Date: Sat, 19 Sep 2026 20:09:45 +0200 Subject: [PATCH 15/15] SRE-984: Name the graph by its Cargo name in the root scripts and the snapshot guide --- package.json | 6 +++--- tests/hash-backend-integration/README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8b82d395cdf..28f02c92ed7 100644 --- a/package.json +++ b/package.json @@ -59,14 +59,14 @@ "lint:tsc": "mise run lint:tsc", "lint:yarn-deduplicate": "yarn dedupe --strategy highest --check", "prune-node-modules": "find . -type d -name \"node_modules\" -exec rm -rf {} +", - "start": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter @apps/hash-graph --filter @apps/hash-api --filter @apps/hash-ai-worker-ts --filter @apps/hash-integration-worker --filter @apps/hash-frontend --env-mode=loose", + "start": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter hash-graph --filter @apps/hash-api --filter @apps/hash-ai-worker-ts --filter @apps/hash-integration-worker --filter @apps/hash-frontend --env-mode=loose", "start:backend": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter @apps/hash-api --env-mode=loose", "start:frontend": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter @apps/hash-frontend --env-mode=loose", - "start:graph": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter @apps/hash-graph --env-mode=loose", + "start:graph": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter hash-graph --env-mode=loose", "start:test": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --env-mode=loose", "start:test:backend": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter @apps/hash-api --env-mode=loose", "start:test:frontend": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter @apps/hash-frontend --env-mode=loose", - "start:test:graph": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter @apps/hash-graph --env-mode=loose", + "start:test:graph": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter hash-graph --env-mode=loose", "start:test:worker": "CARGO_TERM_PROGRESS_WHEN=never turbo run start:test start:test:healthcheck --filter '@apps/hash-*-worker*' --env-mode=loose", "start:worker": "CARGO_TERM_PROGRESS_WHEN=never turbo run start start:healthcheck --filter '@apps/hash-*-worker*' --env-mode=loose", "test": "npm-run-all --continue-on-error \"test:*\"", diff --git a/tests/hash-backend-integration/README.md b/tests/hash-backend-integration/README.md index 543968aeb13..f3a35d255a6 100644 --- a/tests/hash-backend-integration/README.md +++ b/tests/hash-backend-integration/README.md @@ -4,8 +4,8 @@ The [`subgraph`](src/tests/subgraph) module contains two subdirectories, `pass` and `fail`, each of which houses snapshots of the graph. The integration test suite is able to restore these snapshots to the graph, and run the tests against them. In most cases, this requires a clean graph, so the test suite will create a new graph, and restore the snapshot to it. Because of this, every test should ensure that the graph is cleaned up after it has run. -To create a new snapshot of the existing graph the [`@apps/hash-graph`] package should be used. While it is also possible to create snapshots by hand doing so is comparatively error prone, and should be avoided. -To create a snapshot first make sure the graph contains the desired data and then run the following command from the [`@apps/hash-graph`] package: +To create a new snapshot of the existing graph the [`hash-graph`] package should be used. While it is also possible to create snapshots by hand doing so is comparatively error prone, and should be avoided. +To create a snapshot first make sure the graph contains the desired data and then run the following command from the [`hash-graph`] package: ```bash just run snapshot dump @@ -29,7 +29,7 @@ or just run snapshot dump --help ``` -[`@apps/hash-graph`]: ../../apps/hash-graph +[`hash-graph`]: ../../apps/hash-graph ## Integration tests