Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ allow-indexing-slicing-in-tests = true
allow-print-in-tests = true
allow-renamed-params-for = ["core::fmt::Debug", "core::fmt::Display", "core::fmt::LowerHex", "core::fmt::UpperHex", "core::fmt::Pointer", "futures_sink::Sink", "serde::de::Visitor", ".."]
avoid-breaking-exported-api = false
doc-valid-idents = ["BlockProtocol", "HaRPC", "HashQL", "OpenAPI", "PostgreSQL", "OAuth2", ".."]
doc-valid-idents = ["BlockProtocol", "HaRPC", "HashQL", "OpenAI", "OpenAPI", "PostgreSQL", "OAuth2", ".."]
suppress-restriction-lint-in-const = true
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ cargo clippy --all-features --package <package-name>

For Rust packages, you can add features as needed with `--all-features`, specific features like `--features=foo,bar`, or use `cargo-hack` with `--feature-powerset` for comprehensive feature testing.

### Monorepo wiring for Rust crates

Each Rust crate has a `package.json` whose **identity and workspace-dependency wiring** — its `@rust/<name>` 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:

```bash
mise run sync:turborepo # sync package.json identity + deps from Cargo.toml metadata
```

`sync:turborepo` only manages that generated wiring — the `scripts` section is hand-maintained and is used by CI and Turborepo (e.g. `test:unit`, `lint:clippy`, `doc:dependency-diagram`), so add or edit scripts 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.

## Documentation Maintenance

### Petrinaut user-facing docs
Expand Down
104 changes: 80 additions & 24 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"libs/@local/effect-dns/hickory",
"libs/@local/graph/api",
"libs/@local/graph/authorization",
"libs/@local/graph/embeddings",
"libs/@local/graph/migrations",
"libs/@local/graph/migrations-macros",
"libs/@local/graph/postgres-store",
Expand Down Expand Up @@ -75,6 +76,7 @@ hash-codec.path = "libs/@local/codec"
hash-codegen.path = "libs/@local/codegen"
hash-graph-api.path = "libs/@local/graph/api"
hash-graph-authorization.path = "libs/@local/graph/authorization"
hash-graph-embeddings.path = "libs/@local/graph/embeddings"
hash-graph-migrations.path = "libs/@local/graph/migrations"
hash-graph-migrations-macros.path = "libs/@local/graph/migrations-macros"
hash-graph-postgres-store.path = "libs/@local/graph/postgres-store"
Expand Down Expand Up @@ -228,6 +230,7 @@ refinery = { version = "0.8.16", default-features = fa
regex = { version = "1.11.2", default-features = false, features = ["perf", "unicode"] }
reqwest = { version = "0.13.0", default-features = false, features = ["json", "rustls"] }
reqwest-middleware = { version = "0.5.0", default-features = false }
reqwest-retry = { version = "0.9.1", default-features = false }
reqwest-tracing = { version = "0.7.0", default-features = false }
roaring = { version = "0.11.2", default-features = false }
rpds = { version = "1.1.2", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions apps/hash-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ harpc-server = { workspace = true }
hash-codec = { workspace = true }
hash-graph-api = { workspace = true, features = ["clap"] }
hash-graph-authorization = { workspace = true }
hash-graph-embeddings = { workspace = true }
hash-graph-postgres-store = { workspace = true, features = ["clap"] }
hash-graph-store = { workspace = true }
hash-graph-type-fetcher = { workspace = true }
Expand Down
Loading
Loading