| 1 |
[package] |
| 2 |
name = "tinyvec" |
| 3 |
description = "`tinyvec` provides 100% safe vec-like data structures." |
| 4 |
version = "1.10.0" |
| 5 |
authors = ["Lokathor <[email protected]>"] |
| 6 |
edition = "2018" |
| 7 |
license = "Zlib OR Apache-2.0 OR MIT" |
| 8 |
keywords = ["vec", "no_std", "no-std"] |
| 9 |
categories = ["data-structures", "no-std"] |
| 10 |
repository = "https://github.com/Lokathor/tinyvec" |
| 11 |
exclude = ["/.github", "/*.py", "/*.sh", "/src-backup"] |
| 12 |
|
| 13 |
[dependencies] |
| 14 |
tinyvec_macros = { version = "0.1", optional = true } |
| 15 |
# Provides `Serialize` and `Deserialize` implementations |
| 16 |
serde = { version = "1.0", optional = true, default-features = false } |
| 17 |
# Provides derived `Arbitrary` implementations |
| 18 |
arbitrary = { version = "1", optional = true } |
| 19 |
# Provides `BorshSerialize` and `BorshDeserialize implementations |
| 20 |
borsh = { version = "1.2.0", optional = true, default-features = false } |
| 21 |
# Implements the trait `Array` for `GenericArray` struct. |
| 22 |
generic-array = { version = "1.1.1", optional = true, default-features = false } |
| 23 |
|
| 24 |
|
| 25 |
[features] |
| 26 |
default = [] |
| 27 |
|
| 28 |
# Provide things that utilize the `alloc` crate, namely `TinyVec`. |
| 29 |
alloc = ["tinyvec_macros"] |
| 30 |
|
| 31 |
# Provide things that require Rust's `std` module |
| 32 |
std = ["alloc"] |
| 33 |
|
| 34 |
# (not part of Vec!) Extra methods to let you grab the slice of memory after the |
| 35 |
# "active" portion of an `ArrayVec` or `SliceVec`. |
| 36 |
grab_spare_slice = [] |
| 37 |
|
| 38 |
# obsolete feature that has to stay for semver reasons |
| 39 |
rustc_1_40 = [] |
| 40 |
|
| 41 |
# obsolete feature that has to stay for semver reasons |
| 42 |
rustc_1_55 = [] |
| 43 |
|
| 44 |
# features that require rustc 1.57 |
| 45 |
# add try_reserve functions to types that heap allocate. |
| 46 |
rustc_1_57 = [] |
| 47 |
|
| 48 |
# features that require rustc 1.61 |
| 49 |
# add retain_mut function to TinyVec |
| 50 |
rustc_1_61 = ["rustc_1_57"] |
| 51 |
|
| 52 |
# We're done with per-version featuring, this feature opts in to all the |
| 53 |
# abilities of the latest release of Stable rust, and we don't need a million |
| 54 |
# features forever now. |
| 55 |
latest_stable_rust = ["rustc_1_61"] |
| 56 |
|
| 57 |
# allow use of nightly feature `slice_partition_dedup`, |
| 58 |
# will become useless once that is stabilized: |
| 59 |
# https://github.com/rust-lang/rust/issues/54279 |
| 60 |
nightly_slice_partition_dedup = [] |
| 61 |
|
| 62 |
# allow use of nightly feature `debugger_visualizer`, |
| 63 |
# will become useless once that is stabilized: |
| 64 |
# https://github.com/rust-lang/rust/issues/95939 |
| 65 |
debugger_visualizer = [] |
| 66 |
|
| 67 |
# EXPERIMENTAL: Not part of SemVer. It adds `core::fmt::Write` to `ArrayVec` |
| 68 |
# and `SliceVec`. It works on Stable Rust, but Vec normally supports the |
| 69 |
# `std::io::Write` trait instead of `core::fmt::Write`, so we're keeping it as |
| 70 |
# an experimental impl only for now. |
| 71 |
experimental_write_impl = [] |
| 72 |
|
| 73 |
# Some benchmarks are optimized away with the stable black_box function |
| 74 |
# which is based on read_volatile. This feature requires inline assembly |
| 75 |
# and thus a nightly compiler, but is only used in benchmarks. |
| 76 |
real_blackbox = ["criterion/real_blackbox"] |
| 77 |
|
| 78 |
[package.metadata.docs.rs] |
| 79 |
features = ["alloc", "std", "grab_spare_slice", "latest_stable_rust", "serde", "borsh"] |
| 80 |
rustdoc-args = ["--cfg","docs_rs"] |
| 81 |
|
| 82 |
[package.metadata.playground] |
| 83 |
features = ["alloc", "std", "grab_spare_slice", "latest_stable_rust", "serde", "borsh"] |
| 84 |
|
| 85 |
[profile.bench] |
| 86 |
debug = 2 |
| 87 |
|
| 88 |
[workspace] |
| 89 |
members = ["fuzz"] |
| 90 |
|
| 91 |
[dev-dependencies] |
| 92 |
criterion = "0.3.0" |
| 93 |
serde_test = "1.0" |
| 94 |
smallvec = "1" |
| 95 |
debugger_test = "0.1" |
| 96 |
debugger_test_parser = "0.1" |
| 97 |
|
| 98 |
[[test]] |
| 99 |
name = "tinyvec" |
| 100 |
required-features = ["alloc", "std"] |
| 101 |
|
| 102 |
[[bench]] |
| 103 |
name = "macros" |
| 104 |
harness = false |
| 105 |
required-features = ["alloc"] |
| 106 |
|
| 107 |
[[bench]] |
| 108 |
name = "smallvec" |
| 109 |
harness = false |
| 110 |
required-features = ["alloc", "real_blackbox"] |
| 111 |
|
| 112 |
[[test]] |
| 113 |
path = "tests/debugger_visualizer.rs" |
| 114 |
name = "debugger_visualizer" |
| 115 |
required-features = ["debugger_visualizer"] |
| 116 |
test = false |