| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 1 | 0 | 0% |
| Commands | 0 | 0 | 0 | — |
| Section tags | 0 | 2 | 0 | 0% |
What each file covers
Sections
0 shared · 1 only in A · 0 only in B- − Cursor Rules Location
Commands
neither file has anySection tags
0 shared · 2 only in A · 0 only in B- − do-not
- − agent-behaviour
Line diff
imazen/imageflow · .cursor/rules/creating-rules.mdc
@@ −1 @@
1---
2description: Cursor Rules Location
3globs: *.mdc
4alwaysApply: false
5---
6# Cursor Rules Location
7Cursor rule files (.mdc) must be placed in the /.cursor/rules/ directory, use kebab-case with descriptive names. Never place them in the root or outside of .cursor/rules
imazen/imageflow · .cursor/rules/rust.mdc
@@ +1 @@
1---
2description:
3globs:
4alwaysApply: true
5---
6When working on imageflow, we want to preserve comments in the code - ALWAYS - since they help us remember corner cases. Always repeat them back out into the new code. And always load /imageflow_types/src/lib.rs into memory, since we use it in every rust file.
7
8Our primary interfaces users see are the RIAPI (querystring commands) @riapi.mdc and the JSON API @json-api.mdc, both accessed via @ffi.mdc + Imageflow.Net and Imageflow Server.
9
10We want to keep our gitbook in docs/src up to date.
11
12When creating an Err() in imageflow_core, use the nerror!(ErrorKind:*, "format {}", args) macro (format/args optional), which embeds line/file data and creates a FlowError struct.
13We can map other error types to it stringly, via .map_err(|e| nerror!(ErrorKind::InvalidArgument, "Parse error: {}", e))?;
14We add to the artificial error call stack with .map_err(|e| e.at(here!()))?.
15See @errors.rs for the available ErrorKinds.
16
17Example: Err(nerror!(ErrorKind::InvalidOperation, "LibPNG decoder disposed before call to read_frame"))
@@ −1 +1 @@
11 ---
2−description: Cursor Rules Location
3−globs: *.mdc
4−alwaysApply: false
2+description:
3+globs:
4+alwaysApply: true
55 ---
6−# Cursor Rules Location
7−Cursor rule files (.mdc) must be placed in the /.cursor/rules/ directory, use kebab-case with descriptive names. Never place them in the root or outside of .cursor/rules
6+When working on imageflow, we want to preserve comments in the code - ALWAYS - since they help us remember corner cases. Always repeat them back out into the new code. And always load /imageflow_types/src/lib.rs into memory, since we use it in every rust file.
7+
8+Our primary interfaces users see are the RIAPI (querystring commands) @riapi.mdc and the JSON API @json-api.mdc, both accessed via @ffi.mdc + Imageflow.Net and Imageflow Server.
9+
10+We want to keep our gitbook in docs/src up to date.
11+
12+When creating an Err() in imageflow_core, use the nerror!(ErrorKind:*, "format {}", args) macro (format/args optional), which embeds line/file data and creates a FlowError struct.
13+We can map other error types to it stringly, via .map_err(|e| nerror!(ErrorKind::InvalidArgument, "Parse error: {}", e))?;
14+We add to the artificial error call stack with .map_err(|e| e.at(here!()))?.
15+See @errors.rs for the available ErrorKinds.
16+
17+Example: Err(nerror!(ErrorKind::InvalidOperation, "LibPNG decoder disposed before call to read_frame"))
