Support using without `alloc`

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
embedded-iot

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.

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?

Dominant language
Rust
Stars
671
Forks
61
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SoftbearStudios/bitcode

All issues in SoftbearStudios/bitcode

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.