SoftbearStudios / SoftbearStudios/bitcode
Support using without `alloc`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 671
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
I try this awesome library to create firmware for microcontrollers.
Because it supports no_std I expected it works but seems currently Encoder and Decoder implementations uses Vec type from std/alloc. I got the following errors:
error[E0412]: cannot find type `Vec` in this scope
I added dependency as follows:
[dependencies.bitcode]
version = "0.6"
default-features = false
features = ["derive"]
Is it possible to use this crate without std and alloc at all?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown Cargo.toml settings and inspect the Encoder and Decoder implementations that use Vec. Determine whether the crate can build without std and alloc, then define the required no_std/no_alloc behavior and verify it with a microcontroller-style build or focused tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100