Commit 97413e5
committed
🎨 Refactor
Problem:
- The dependency DAG between `cib` sub libraries is not well-defined.
Solution:
- Define it. Each library "level" depends on the level below.
Level 0 libraries:
- `async`
- `conc`
- `fmt`
- `stdx`
Level 1 libraries:
- `cib_lookup` depends on `stdx`
- `cib_nexus` depends on `stdx`
- `cib_sc` depends on `fmt`, `stdx`
Level 2 libraries:
- `cib_log` depends on `cib_sc`
- `cib_match` depends on `cib_sc`
- `cib_interrupt` depends on `conc`, `cib_sc`
Level 3 libraries:
- `cib_flow` depends on `cib_log`, `cib_nexus`, `cib_sc`
- `cib_log_fmt` depends on `cib_log`
- `cib_msg` depends on `async`, `cib_log`, `cib_lookup`, `cib_match`, `cib_sc`
Level 4 libraries:
- `cib_log_mipi` depends on `conc`, `cib_log`, `cib_msg`
- `cib_seq` depends on `cib_flow`, `cib_log`, `cib_nexus`, `cib_sc`
Level 5 libraries:
- `cib` depends on `cib_*`
Note:
- No code has moved, so includes remain valid. `cib` remains as an omnibus library. But this paves the
way (if we want) to move code around and separate the libraries more.cib library1 parent bc71244 commit 97413e5
3 files changed
+61
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
223 | 209 | | |
224 | 210 | | |
225 | | - | |
| 211 | + | |
226 | 212 | | |
227 | | - | |
| 213 | + | |
228 | 214 | | |
229 | 215 | | |
230 | 216 | | |
| |||
233 | 219 | | |
234 | 220 | | |
235 | 221 | | |
236 | | - | |
237 | 222 | | |
238 | 223 | | |
239 | 224 | | |
| |||
244 | 229 | | |
245 | 230 | | |
246 | 231 | | |
247 | | - | |
248 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
249 | 237 | | |
250 | 238 | | |
251 | | - | |
| 239 | + | |
252 | 240 | | |
253 | 241 | | |
254 | 242 | | |
| |||
268 | 256 | | |
269 | 257 | | |
270 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
271 | 270 | | |
272 | | - | |
| 271 | + | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
| |||
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
284 | 316 | | |
285 | 317 | | |
286 | 318 | | |
| 319 | + | |
287 | 320 | | |
288 | 321 | | |
289 | 322 | | |
290 | 323 | | |
291 | 324 | | |
292 | 325 | | |
293 | 326 | | |
| 327 | + | |
294 | 328 | | |
| 329 | + | |
295 | 330 | | |
296 | 331 | | |
297 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments