Closed OndrejSpanel closed 2 months ago
I think with Scala 3 you have to import ByteStringArrayCodecs.LittleEndian.given
.
The docs need to be updated in that respect.
👍
Confirmed as working. For cross-building one needs to use:
import ByteStringArrayCodecs.LittleEndian.{given, *}
Together with:
scalacOptions += "-Xsource:3-cross",
Thank you! Will add that to the docs.
Following code works differently on Scala 2 / Scala 3. In Scala 3 the
ByteStringArrayCodecs
import does nothing. The issue is present both in Cbor and Json, I show here Json version because of easier output comparison.Scala 2 output:
Scala 3 output: