File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -212,24 +212,24 @@ graph TB
212
212
213
213
Impl crates depend on each other
214
214
``` mermaid
215
- graph TB
215
+ graph LR
216
216
I1 & I2 -->|impl| D
217
217
I2 --> I1
218
218
```
219
219
Impl crates use other crates (common)
220
220
``` mermaid
221
- graph TB
221
+ graph LR
222
222
I1 -->|impl| D
223
223
I1 --> T
224
224
```
225
225
Impl crates implement multiple definition crates
226
226
``` mermaid
227
- graph TB
227
+ graph LR
228
228
I1 -->|impl| D0 & D1
229
229
```
230
230
Impl crates define types and have their own impl crates
231
231
``` mermaid
232
- graph TB
232
+ graph LR
233
233
I1 -->|impl| D0
234
234
I1 -->|impl| I2
235
235
I2 -->|impl| D0
@@ -262,7 +262,7 @@ feature is used must be very carefully considered.
262
262
# Rationale and alternatives
263
263
[ rationale-and-alternatives ] : #rationale-and-alternatives
264
264
265
- In principle you could use features to achieve similar outcomes to the
265
+ In principle you could use Cargo features to achieve similar outcomes to the
266
266
motivating ` DBTrait ` example above - you'd define a feature for each DB
267
267
implementation, and the consumer would only enable the specific implementations
268
268
they want.
@@ -325,3 +325,7 @@ crates.io publication time to make sure the package doesn't have lurking
325
325
problems. On the other hand there might be cases where it's desireable to allow
326
326
incoherent implementations to exist; for example, two implementations of the
327
327
same API with different algorithms tuned for different use-cases.
328
+
329
+ There are cases where the same coherence properties may be checked multiple
330
+ times. Perhaps these checks could be memoized with the incremental machinery to
331
+ avoid the redundancy.
You can’t perform that action at this time.
0 commit comments