cspr-rad / kairos

Apache License 2.0
2 stars 0 forks source link

Use `rasn` fork that is fully compatible with no-std #126

Closed koxu1996 closed 2 months ago

koxu1996 commented 2 months ago

kairos-tx is mainly based on rasn, ASN.1 library that claims to be no_std:

image

I recently discovered that it implicitly pulls std in 3 different ways - described in https://github.com/librasn/rasn/issues/262.

Until it's fixed, I am proposing to use my fork - see changes here.

With this PR we get full no_std compatibility, proved with:

$ rustup target add thumbv7m-none-eabi
$ cargo build -p kairos-tx --no-default-features --target thumbv7m-none-eabi
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s