forked from hecatia-elegua/bilge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
74 lines (65 loc) · 2.08 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[package]
name = "bilge"
authors = ["Hecatia Elegua"]
version.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
keywords.workspace = true
license.workspace = true
readme.workspace = true
repository.workspace = true
include = ["src/lib.rs", "LICENSE-*", "README.md"]
[workspace]
members = ["bilge-impl"]
[workspace.package]
version = "0.2.0"
categories = ["data-structures", "no-std::no-alloc", "embedded", "rust-patterns"]
description = "Use bitsized types as if they were a feature of rust."
documentation = "https://docs.rs/bilge"
edition = "2021"
keywords = ["bilge", "bitfield", "bits", "register"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/hecatia-elegua/bilge"
# tested with `cargo msrv`:
# 1.64 without let...else
# 1.34 without cargo workspace-inheritance
rust-version = "1.65"
[features]
# at bilge devs: easiest way to test nightly is by switching the
# channel in `rust-toolchain.toml` and switching to nightly here:
# default = ["nightly"]
default = []
# Enables constness, see README.md: only usable with nightly-2022-11-03
nightly = ["arbitrary-int/const_convert_and_const_trait_impl", "bilge-impl/nightly"]
[dependencies]
# cargo clippy workaround, we can't add `path = "../arbitrary-int"` as well
arbitrary-int = { version = "1.2.6" }
bilge-impl = { version = "=0.2.0", path = "bilge-impl" }
[dev-dependencies]
# tests
rustversion = "1.0"
trybuild = "1.0"
custom_bits = { path = "tests/custom_bits" }
assert_matches = "1.5.0"
# examples
# volatile = { git = "https://github.com/theseus-os/volatile" }
volatile = "0.5.1"
zerocopy = "0.5.0"
# benches - commented out due to build times, also nightly-only
# criterion = "0.3"
# modular-bitfield = "0.11.2"
# bitbybit = "1.1.4"
# is not const enough:
# deku = "0.16"
# criterion workaround to make `cargo bench -- --verbose` work
[lib]
bench = false
[[bench]]
name = "compared"
# cargo publish workaround "can't find `compared` bench at ... `benches\compared\main.rs`"
path = "benches/compared/main.rs"
harness = false
# REMOVE this when benchmarking
bench = false