Are there plans to make `Uuid` and `Instant` `@Se...
# stdlib
c
Are there plans to make
Uuid
and
Instant
@Serializable
?
e
similar to other stdlib types, so after (if) Instant moves to stdlib, I'd expect kotlinx.serialization to add a default serializer too
the kotlinx.datetime version is already @Serializable on its own
e
oh I missed Instant entering stdlib. nice
c
According to https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.7.2, Uuid should work since Kotlin 2.1.0, but it doesn't in my project…
h
Works on my machine with Kotlin 2.1.0. Do you have a reproducer? 🤔
👀 1
e
it probably requires kxs 1.8.1, is that on your compile classpath?
c
@hfhbd it's not minimal in any way, but here: https://gitlab.com/opensavvy/art/tournagang/-/merge_requests/9, there are some comments
// TODO: replace by Uuid
where I tried. To be fair I only had the IDEA warning and didn't try actually compiling. There's a chance the kxs version is simply too old, I'll try updating it in a few days.
👀 1