Open wolfv opened 1 year ago
@wolfv I wouldn't mind trying this one, could you explain how I could easily test this?
I think this one is a bit tricky because the relationship with platform, subdir and arch dont necesarily always hold I believe.
We have been talking about splitting the Platform enum into os and arch but many combinations of os and arch dont make sense (win-powerpc, wasm-s390x?). So Im inclined to keep the current enum.
In the
IndexJson
struct we could parseplatform
(or rather thesubdir
field) into the Platform enum (with an escape hatch forPlatform::Other(String)
I would argue.Similarly I would say that we can remove
arch
andsubdir
fields, and only reconstruct them for serialization?Basically, the relationship is as follows:
subdir
is<platform> - <arch>
with the special that for64
arch isx86_64
and for32
arch isx86
.