-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
wasm-rpc-stubgen/src/wit.rs
Outdated
@@ -33,13 +44,61 @@ pub fn generate_stub_wit(def: &StubDefinition) -> anyhow::Result<()> { | |||
.interfaces | |||
.iter() | |||
.flat_map(|i| i.imports.iter()) | |||
.collect::<IndexSet<_>>(); | |||
.collect::<Vec<_>>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh! I Let me fix this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will you change it back to IndexSet
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was1 more field I added and TypeDef didn't have Hash or something. May be that's why I changed it. I will definitely make it Set
. But I will get back to this in a couple of hours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will change it
Fixed the following today (based on some test results):
|
Found a small mistake: for normal dependency after 5bd0d9d. Will fix it straight up
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I asked for a rename, and there was a IndexedSet->Vec
change that may affect things (introducing duplicates).
I'm also not very happy about that regex but we can keep for now.
Once these are fixed good to merge
Yes, it was noted by me. Will try to fix it. |
Fixes #40
https://www.notion.so/golemcloud/StubGen-Cyclic-Dependency-06394d8825604222a9aaeae5905ab84b
It unblocked
golem-timeline
case, and seem to be workingMore testing (details in above doc)
x -> x
x -> y
x -> x
on top of a workspace that's already havingx -> y
Note:
Makefile.toml
overwrites some steps when initialising again with new target. So when testing make sure all steps are there. Regardlessx -> y
andx -> x
works.x -> y
whiley -> z
, all works as beforey -> z
was added withx -> y
to later bring inx -> x
dependency and it worked. Clone this branch if you want to test yourselfGather input from team based on docs
If all good, complete the remaining code (you can see that it's incomplete, and just a prototype with only record type)
Code cleanup
Tests performed in my personal test project
https://github.com/afsalthaj/testwasmrpc/tree/only_caller