Skip to content

Refactor: Replace BitVec dependency with plain bool vectors#10

Open
jbeyerstedt wants to merge 4 commits intomainfrom
chore/remove-bitvec-dependency
Open

Refactor: Replace BitVec dependency with plain bool vectors#10
jbeyerstedt wants to merge 4 commits intomainfrom
chore/remove-bitvec-dependency

Conversation

@jbeyerstedt
Copy link
Collaborator

@jbeyerstedt jbeyerstedt commented Mar 4, 2026

The bitvec crate seems to be unmaintained and is not compatible with the latest Nom release (if we need to update at some point).

It also doesn't help us quite so much here since most of the data is byte aligned anyways, so I would rather have less dependencies and a bit more code.
I added a dependency on arbitrary-int though to properly represent the 4, 5 and 15 bit values we have.

TODO:

  • Test with more data than in the unit tests
  • Wait to have a release version of 0.3.0 before merging these potentially breaking changes

Also fixes encoding issues with bit vectors and introduces explicit functions to encode an decode SEQUENCE preambles
@jbeyerstedt jbeyerstedt force-pushed the chore/remove-bitvec-dependency branch from 51b61e2 to 805838d Compare March 4, 2026 12:57
@jbeyerstedt jbeyerstedt force-pushed the chore/remove-bitvec-dependency branch from 805838d to e6fc2b5 Compare March 4, 2026 12:59
@jbeyerstedt jbeyerstedt force-pushed the chore/remove-bitvec-dependency branch from e6fc2b5 to 6fe7c1f Compare March 4, 2026 13:04
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

Successfully merging this pull request may close these issues.

1 participant