Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bit-vec

> 编程语言
Open source

A Vec of Bits

191 stars0 likes1 views
WebsiteGitHub

About

A Vec of Bits

Usage

Add this to your Cargo.toml:

toml
[dependencies]
bit-vec = "0.10"

If you want serde support, include the feature like this:

toml
[dependencies]
bit-vec = { version = "0.10", features = ["serde"] }

If you want to use bit-vec in a program that has #![no_std], just drop default features:

toml
[dependencies]
bit-vec = { version = "0.10", default-features = false }

If you want to use serde with the alloc crate instead of std, use this:

toml
[dependencies]
bit-vec = { version = "0.10", default-features = false, features = ["serde"] }

If you want borsh-rs support, include it like this:

toml
[dependencies]
bit-vec = { version = "0.10", features = ["borsh"] }

Another available serialization library can be enabled with the miniserde feature.

Description

Dynamic collections implemented with compact bit vectors.

Examples

This is a simple example of the Sieve of Eratosthenes which calculates prime numbers up to a given limit.

…

License

Dual-licensed for compatibility with the Rust project.

Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0, or the MIT license: http://opensource.org/licenses/MIT, at your option.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言