Skip to content

aliasing, hashmaps/hashsets, serde_json::Value, 1-tuples, i128/u128 - #402

Merged
jurij-jukic merged 4 commits into
developfrom
j/wit-type-fix
Nov 25, 2025
Merged

aliasing, hashmaps/hashsets, serde_json::Value, 1-tuples, i128/u128#402
jurij-jukic merged 4 commits into
developfrom
j/wit-type-fix

Conversation

@jurij-jukic

Copy link
Copy Markdown
Contributor
  • includes support for aliases, e.g. pub type GroupId = String; in Rust becomes type group-id = string; in WIT
  • includes support for HashMaps and HashSets, e.g. HashMap<String, Role> becomes list<tuple<string, role>>, and HashSet<NodeId> becomes list<node-id>
  • includes support for serde_json::Value, where it's aliased in WIT as type value = string;, and in TS as unknown
  • includes support for 1-tuple structs, GroupPermissions(pub u64) becomes an alias type group-permissions = u64;
  • includes support for i128/u128 → string, since WIT doesn't support 128 bit integers

@nick1udwignick1udwig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ⚡

@jurij-jukic
jurij-jukic merged commit 409b7ab into developNov 25, 2025
@jurij-jukic
jurij-jukic deleted the j/wit-type-fix branch November 25, 2025 09:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@jurij-jukic@nick1udwig