Commit 6ecedf9
fix(data-contracts): compile linkable tests on no_std and add them to the test matrix
The #[cfg(test)] module in linkable.rs relied on the std prelude for
String/Vec/ToString, so 'cargo test -p aimdb-data-contracts
--no-default-features --features linkable' failed to compile (found by
@thaodt in #155). Add the alloc imports.
The gap went unnoticed because 'make check' never compiled that module:
'linkable' appeared only in build (no test code), clippy without
--all-targets (tests not linted), and test-embedded (cargo check). Add
'linkable' to both data-contracts test matrix lines so the unit and
derive tests actually run — under std and no_std + alloc.
Refs #155
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent e45ffab commit 6ecedf9
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments