delta-behavior uses `std` items without feature gate
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- build-system, embedded-iot
Research direction
Start in examples/delta-behavior/src/lib.rs at the conditional no_std setup, then inspect the std::f64::consts::E and std::collections::HashMap uses in examples/delta-behavior/src/wasm.rs at the referenced lines. Verify the example compiles for its no_std target; done means bare-metal or other no_std-only builds no longer fail because of these std items.
Written by the indexing model from the issue text.
Description
The delta-behavior supports no_std conditionally:
https://github.com/ruvnet/RuVector/blob/5356a84e2f784a33fa497da2e73440d469eb5542/examples/delta-behavior/src/lib.rs#L59
However it uses std::f64::consts::E without feature gate:
https://github.com/ruvnet/RuVector/blob/5356a84e2f784a33fa497da2e73440d469eb5542/examples/delta-behavior/src/wasm.rs#L344
https://github.com/ruvnet/RuVector/blob/5356a84e2f784a33fa497da2e73440d469eb5542/examples/delta-behavior/src/wasm.rs#L428
It also uses std::collections::HashMap without feature gate:
https://github.com/ruvnet/RuVector/blob/5356a84e2f784a33fa497da2e73440d469eb5542/examples/delta-behavior/src/wasm.rs#L711
https://github.com/ruvnet/RuVector/blob/5356a84e2f784a33fa497da2e73440d469eb5542/examples/delta-behavior/src/wasm.rs#L760
This breaks no_std builds and prevents compilation on bare-metal or other no_std-only targets.
- Dominant language
- Rust
- Stars
- 4.5k
- Forks
- 603
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 56
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
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.
More from ruvnet/RuVector
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
adr phase-w4-3 pir stretch wave-4
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws-samples/sample-pacer#76 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
axodotdev/cargo-dist#2523 ·
Maintainers usually reply within 2 days