-
Notifications
You must be signed in to change notification settings - Fork 15
/
Cargo.toml
61 lines (53 loc) · 2.13 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
[package]
version = "1.12.1"
authors = ["Philipp Korber <philipp@korber.dev>"]
categories = ["data-structures"]
description = "a std Vec wrapper assuring that it has at least 1 element"
documentation = "https://docs.rs/vec1"
keywords = ["vec", "min", "length", "1"]
license = "MIT OR Apache-2.0"
name = "vec1"
readme = "./README.md"
repository = "https://github.com/rustonaut/vec1/"
edition = "2021"
rust-version = "1.71.1"
[features]
default = ["std"]
std = []
# Keep feature as to not brake code which used it in the past.
# The Vec1 crate roughly traces rust stable=1 but tries to keep
# as much compatiblility with older compiler versions. But it
# should never require changes to older projects compiled with
# a new enough rust compiler. As such this features needs to
# stay in existence.
unstable-nightly-try-from-impl = []
# Provide a `SmallVec1` which works like a `Vec1` but is backed by a `SmallVec`
# it's explicitly v1 as I do not intend to do a braking change once v2 is released.
# Enabling this crates serde features will also enable (de-)serialization for the
# `SmallVec1` (but not for the `SmallVec` if not wrapped into a `SmallVec1`, this
# is necessary as you can't implicitly pull in `smallvec_v1_/serde` if `serde` and
# `smallvec_v1_` are enabled).
#
# To enable `smallvec_v1_/union` import it seperately in your crate with the
# dependency enabled (and using a compatible version). In the future `union`
# might be enabled by default.
smallvec-v1 = ["smallvec_v1_"]
# Enables the smallvec-v1/write feature
smallvec-v1-write = ["std", "smallvec_v1_/write"]
[dependencies]
# Is a feature!
serde = { version = "1.0", optional = true, features = ["derive"], default-features=false }
# In the future we will support smallvec v1 and v2 so if we had
# a optional dependency called smallvec people might acidentally
# pull it in as feature and create anoyences wrt. backward compatibility.
[dependencies.smallvec_v1_]
version = "1.6.1"
package = "smallvec"
optional = true
features = ["const_generics", "const_new"]
[dev-dependencies]
serde_json = "1.0"
proptest = "1.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docs"]