Open matthiasgeihs opened 4 days ago
Yeah, elsewhere we transitively activate pkcs8
when the serde
feature is enabled (e.g. in the elliptic-curve
and ecdsa
crates). k256
should probably be updated to do the same (it wasn't really possible, or rather would be quite convoluted without weak/namespaced features, which k256
predates)
I work on a project using
k256 = 0.13.4
withfeatures = ["arithmetic", "hash2curve", "schnorr", "serde"]
anddefault-features = false
. The project fails to build with the following error:The problem seems to be that feature
"pkcs8"
is required when"schnorr"
and"serde"
are enabled. This cost me a bit of time to realize. Is there a better way to setup the project so that this error does not occur? Or at least a more helpful error message would be nice. Maybe feature "serde" should require "pkcs8"?