@Peter Huene I'd love a way to download a wit package from a registry into a local directory (resolving its deps into a deps folder) and rendering everything as wit files. Is that something you would imagine wit
would gain the ability to do?
@Ryan Levick (rylev) what does: "and rendering everything as wit files." mean in this context?
Binary encodings of WIT don't include original file structure info; they are just a flat set of packages
ahh, okay okay
I'm thinking we could do wit/deps/namespace.package@version/package.wit
, at least until we work out something for https://bytecodealliance.zulipchat.com/#narrow/stream/327223-wit-bindgen/topic/WIT.20directory.20structure
@Yoshua Wuyts and many tools expect human readable wit files (not to mention, it's better for humans, of course).
ahh, okay yeah I see!
ty
https://github.com/bytecodealliance/wasm-tools/issues/1461
I'm on leave today, but to answer the original question, certainly the wit
tool should have some facility to render registry packages in a user-friendly format; if not recreating the original WIT source, something approximate
Last updated: Nov 25 2024 at 19:03 UTC