We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0379389 commit 877a258Copy full SHA for 877a258
1 file changed
crates/wit-smith/src/generate.rs
@@ -716,6 +716,7 @@ impl<'a> InterfaceGenerator<'a> {
716
Option,
717
Result,
718
List,
719
+ FixedSizeList,
720
Stream,
721
Future,
722
ErrorContext,
@@ -797,6 +798,16 @@ impl<'a> InterfaceGenerator<'a> {
797
798
self.gen_type(u, fuel, dst)?;
799
dst.push_str(">");
800
}
801
+ Kind::FixedSizeList => {
802
+ *fuel = match fuel.checked_sub(1) {
803
+ Some(fuel) => fuel,
804
+ None => continue,
805
+ };
806
+ let elements = u.int_in_range(1..=self.config.max_type_parts)?;
807
+ dst.push_str("list<");
808
+ self.gen_type(u, fuel, dst)?;
809
+ dst.push_str(&format!(", {elements}>"));
810
+ }
811
Kind::Result => {
812
*fuel = match fuel.checked_sub(2) {
813
Some(fuel) => fuel,
0 commit comments