Fix codegen compatibility with indexmap 2.x in no_std + alloc mode (#20)
This merge request fixes compilation errors when codegen is built with indexmap = { version = "2.11", default-features = false } (no_std + alloc mode).
Problem
-
IndexMapinindexmap 2.xrequires an explicit hasher parameter whenstdis disabled. -
IndexMap::new()is not available without thestdfeature. - As a result,
codegenfails to compile with errors likeE0107andE0599.
Changes
- Added explicit
RandomStategeneric parameter to nestedIndexMapusages. - Replaced
IndexMap::new()withIndexMap::with_hasher(RandomState::new()). - Ensures
codegennow builds successfully under bothstdandno_std + allocenvironments.
References
Closes #20 (closed)