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