1[package]
2name = "smallvec"
3version = "1.15.0"
4edition = "2018"
5authors = ["The Servo Project Developers"]
6license = "MIT OR Apache-2.0"
7repository = "https://github.com/servo/rust-smallvec"
8description = "'Small vector' optimization: store up to a small number of items on the stack"
9keywords = ["small", "vec", "vector", "stack", "no_std"]
10categories = ["data-structures"]
11readme = "README.md"
12documentation = "https://docs.rs/smallvec/"
13
14[features]
15const_generics = []
16const_new = ["const_generics"]
17write = []
18union = []
19specialization = []
20may_dangle = []
21drain_filter = []
22drain_keep_rest = ["drain_filter"]
23impl_bincode = ["bincode", "unty"]
24
25# UNSTABLE FEATURES (requires Rust nightly)
26# Enable to use the #[debugger_visualizer] attribute.
27debugger_visualizer = []
28
29[dependencies]
30serde = { version = "1", optional = true, default-features = false }
31malloc_size_of = { version = "0.1", optional = true, default-features = false }
32arbitrary = { version = "1", optional = true }
33bincode = { version = "2", optional = true, default-features = false }
34unty = { version = "0.0.4", optional = true, default-features = false }
35
36[dev-dependencies]
37bincode1 = { package = "bincode", version = "1.0.1" }
38debugger_test = "0.1.0"
39debugger_test_parser = "0.1.0"
40
41[package.metadata.docs.rs]
42all-features = true
43rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
44
45[[test]]
46name = "debugger_visualizer"
47path = "tests/debugger_visualizer.rs"
48required-features = ["debugger_visualizer"]
49# Do not run these tests by default. These tests need to
50# be run with the additional rustc flag `--test-threads=1`
51# since each test causes a debugger to attach to the current
52# test process. If multiple debuggers try to attach at the same
53# time, the test will fail.
54test = false
55