Skip to content
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

Support & build test no_std/alloc #38

Closed
Tracked by #51
pinkforest opened this issue Mar 15, 2024 · 4 comments
Closed
Tracked by #51

Support & build test no_std/alloc #38

pinkforest opened this issue Mar 15, 2024 · 4 comments

Comments

@pinkforest
Copy link
Contributor

pinkforest commented Mar 15, 2024

There are some dependencies that need to be checked for no_std to be supported

cargo build --target thumbv7em-none-eabi --release --no-default-features --features alloc

EDIT: It seems getrandom creeps from somewhere 👀 tracing up in #28

Too tired but one of them is bringing it...

$ cargo tree -i getrandom --no-default-features
getrandom v0.2.12
└── rand_core v0.6.4
    ├── crypto-bigint v0.5.5
    │   └── elliptic-curve v0.13.8
    │       ├── ecdsa v0.16.9
    │       │   ├── p256 v0.13.2
    │       │   │   └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto)
    │       │   │       └── self-validate v0.1.0 (/home/foobar/code/rustls-rustcrypto/self-validate)
    │       │   ├── p384 v0.13.0
    │       │   │   └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)
    │       │   └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)
    │       ├── p256 v0.13.2 (*)
    │       ├── p384 v0.13.0 (*)
    │       └── primeorder v0.13.6
    │           ├── p256 v0.13.2 (*)
    │           └── p384 v0.13.0 (*)
    ├── elliptic-curve v0.13.8 (*)
    ├── ff v0.13.0
    │   ├── elliptic-curve v0.13.8 (*)
    │   └── group v0.13.0
    │       └── elliptic-curve v0.13.8 (*)
    ├── group v0.13.0 (*)
    ├── rand v0.8.5
    │   └── num-bigint-dig v0.8.4
    │       └── rsa v0.9.6
    │           └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)
    ├── rand_chacha v0.3.1
    │   └── rand v0.8.5 (*)
    ├── rsa v0.9.6 (*)
    ├── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)
    ├── signature v2.2.0
    │   ├── ecdsa v0.16.9 (*)
    │   ├── ed25519 v2.2.3
    │   │   └── ed25519-dalek v2.1.1
    │   │       └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)
    │   ├── rsa v0.9.6 (*)
    │   └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)
    └── x25519-dalek v2.0.1
        └── rustls-rustcrypto v0.1.0 (/home/foobar/code/rustls-rustcrypto/rustls-provider-rustcrypto) (*)

@pinkforest pinkforest changed the title Build test no_std in CI Support & build test no_std + alloc in CI Mar 15, 2024
@pinkforest pinkforest changed the title Support & build test no_std + alloc in CI Support & build test no_std/alloc Mar 15, 2024
@newpavlov
Copy link
Member

newpavlov commented Mar 15, 2024

You need to disable default features for ed25519-dalek.

@pinkforest
Copy link
Contributor Author

pinkforest commented Mar 15, 2024

Awesome thanks - how did I miss that 😪 now need to chase and fix

@pinkforest
Copy link
Contributor Author

PR up for minimizing + feature mapping of dependencies

@pinkforest
Copy link
Contributor Author

Looks like this was done in:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants