Expand description
cypher — meta-crate re-exporting the full front-end library surface.
Consumers that want “everything for parsing Cypher and turning it into a typed plan” depend on this crate. Consumers with tighter needs (parse-only, schema-only, etc.) depend on the specific member crate.
Feature flags (spec 0001 §17.15):
default— full library surface: core + fmt + schemalsp-only— library deps consumed by the LSP binary (core + fmt)fmt-only— formatter slice (core + fmt)schema-only— schema / type-system slice (core + schema)no-default-features— empty; downstream picks slices explicitly
Note: cyrs-lsp is a pure binary crate (no lib target), so it is
not re-exported here. Use cargo check -p cyrs-lsp to verify the
LSP binary compiles.
Spec 0001 §3.1.
Re-exports§
pub use cyrs_ast as ast;pub use cyrs_db as db;pub use cyrs_diag as diag;pub use cyrs_hir as hir;pub use cyrs_plan as plan;pub use cyrs_sema as sema;pub use cyrs_syntax as syntax;pub use cyrs_fmt as fmt;pub use cyrs_project as project;pub use cyrs_schema as schema;
Structs§
- Cypher
Database - The concrete incremental database (Salsa 2022-style, spec §11.1).
- Database
- Workspace-scoped incremental analysis database (spec §11).
- Diagnostic
- A single diagnostic. Spec §10.1.
- Empty
Schema - A
SchemaProviderthat reports nothing. Useful for schema-free mode and for unit tests that do not want to construct a full schema. - FileId
- A stable, workspace-scoped file identity (spec §11.4).
- Parse
- A completed parse: green tree + accumulated syntax errors.
- Parse
Output - Memoised result of parsing a
SourceFile. - Source
File - A single source file tracked by the incremental database.
Enums§
- Diag
Code - Stable diagnostic code. Rendered as
E0001/W6001/N8001. - Dialect
Mode - Dialect mode selected at parse time. Spec §9.
- Severity
- Diagnostic severity (spec §10.3).
Errorfailures set exit code 1 incypher check; the others are informational. - Syntax
Kind - Every syntactic category in Cypher: tokens, nodes, and meta.
Traits§
- Cypher
Db - Trait that all concrete databases in this workspace implement.
- Schema
Provider - The single trait consumers implement to feed schema into the front-end.
Functions§
- parse
- Entry point. Parses a complete source file.