feat(core): split foundational capabilities into dedicated crates
This commit is contained in:
402 files changed
+4386
-3367
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ import { ANNOTATION_FILE_KEYS, COLUMN_ANNOTATION_KEYS, GROUP_ANNOTATION_KEYS, PR
|
||||
// that Rust does not declare turns every save into a deserialization error at
|
||||
// runtime. vue-tsc cannot see across the language boundary, so this reads the
|
||||
// Rust source and compares the field sets directly.
|
||||
const rustSource = readFileSync(path.resolve(__dirname, "../../../../../crates/dbx-core/src/docs/annotations.rs"), "utf8");
|
||||
const rustSource = readFileSync(path.resolve(__dirname, "../../../../../crates/dbx-core/src/data/docs/annotations.rs"), "utf8");
|
||||
|
||||
function rustFields(structName: string): string[] {
|
||||
const start = rustSource.indexOf(`pub struct ${structName} {`);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Mirrors crates/dbx-core/src/docs/snapshot.rs. There is no Rust->TS codegen
|
||||
// Mirrors crates/dbx-core/src/data/docs/snapshot.rs. There is no Rust->TS codegen
|
||||
// in this repo, so this file is maintained by hand — see
|
||||
// __tests__/fixtureConformance.spec.ts, which validates it against a snapshot
|
||||
// generated by the real Rust code and fails if the two drift apart.
|
||||
|
||||
Reference in new issue
Block a user