-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Support #64
Comments
This is something I had thought of but never implemented. If it's as easy as publishing multiple
CBOR support should be complete; including
Apologies but I'm not exactly sure what "that" is that you are asking for but I'm guessing the answer it "it should already do that".
|
Also, if you are running into collisions (when testing multiple packages) If you want a deterministic encoding it's available as an option when creating the encoder or you can use |
Pretty sure you'd need to put them in separate repositories. You can look at CBORCoding and Half (on which it depends) for an example.
I think that's all I'm after.
Is this “tree” essentially just a
Sorry, I don't know what you mean by that. Care to elaborate? |
Yes. If you want to have arbitrary CBOR values you can add a struct MyThing: Codable {
var id: String
var kind: ThingKind
var data: CBOR
} Allowing
Haha sorry, I was just meaning if you were testing the other package and PotentCBOR together you can disambiguate easily between the different |
Oh, it's rather a shame to have to pass through an intermediate format.
Heh, I don't think I'd try that. "Don't borrow trouble" as my mother-in-law used to say. |
I just deleted / commented out all the YAML stuff and all the tests pass on Windows. I only need CBOR support, and was wondering whether you'd consider breaking PotentCodables into separate packages?
Because Cfyaml uses autoconf, I anticipate difficulty porting it to Windows, but it's possible it could work if I can find a replacement unistd.h. But all of those are long-term solutions. I'd rather not fork your library, but it seems to be the only actively-maintained implementation of CBOR coding anywhere.
Although, now that I look at your docs, I'm not sure whether you actually supply the functionality I need. I want to accomplish essentially this (that package also has portability problems and is not currently passing its own tests).
Does PotentCodables do that? What I see in the docs (though I may have missed it) looks like it's for dynamically traversing already-serialized CBOR representations, but I have an existing Codable data structure that I want to serialize and deserialize.
Thanks!
The text was updated successfully, but these errors were encountered: