Skip to content

Commit d2288ef

Browse files
author
jaumelopez
committed
First version in crates.io
0 parents  commit d2288ef

31 files changed

Lines changed: 4462 additions & 0 deletions

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Rust Tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
name: Test Suite
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
21+
- name: Test with no features (no doc tests)
22+
run: cargo test --lib --tests
23+
24+
- name: Test with serde feature
25+
run: cargo test -F serde

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/target
2+
.idea
3+
4+
5+
# Added by cargo
6+
#
7+
# already existing elements were commented out
8+
9+
#/target
10+
11+
12+
# Added by cargo
13+
#
14+
# already existing elements were commented out
15+
16+
#/target

Cargo.lock

Lines changed: 290 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[workspace]
2+
members = ["enum-bitset-derive"]
3+
4+
5+
[package]
6+
name = "enum-bitset"
7+
version = "0.1.0"
8+
authors = ["glueball <glueball@gmail.com>"]
9+
description = "Generate efficient bitsets out of your enum types"
10+
keywords = ["bitset", "bit-set", "procmacro"]
11+
edition = "2024"
12+
homepage = "https://github.com/glueball/enum-bitset"
13+
repository = "https://github.com/glueball/enum-bitset"
14+
documentation = "https://docs.rs/enum_bitset"
15+
16+
17+
[dependencies]
18+
enum-bitset-derive = { path = "enum-bitset-derive", version = "0.1.0" }
19+
serde = { version = "^1", default-features = false, optional = true }
20+
21+
22+
[features]
23+
serde = ["dep:serde", "enum-bitset-derive/serde"]
24+
25+
26+
[dev-dependencies]
27+
assert2 = "0.3.15"
28+
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
29+
serde_json = "1.0.140"
30+
strum = { version = "0.27.1", features = ["derive"] }
31+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 glueball
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)