-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
71 lines (58 loc) · 2.25 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
[workspace]
resolver = "2"
members = [
# Helper crate to build rustdoc JSON
"rustdoc-json",
# Helper crate for managing rustup toolchains
"rustup-toolchain",
# Takes rustdoc JSON as input and outputs the corresponding public API
"public-api",
# High-level CLI for "rustdoc-json" and "public-api"
"cargo-public-api",
# Contains various repo-wide tests
"repo-tests",
]
# Test APIs can't be part of the workspace because
#
# * We do not want them to be built when someone does e.g. `cargo build`
#
# * We do not want them to be part of Cargo.lock
#
# * Some test crates use different directories but the same name (e.g.
# `example_api`), which cargo does not allow.
#
# * We do not want the test-apis to share Cargo.lock since our tests run in
# parallel
#
exclude = [
# Contains a public API that aim so to contain all public API item and
# variants (with and without generics etc etc)
"test-apis/comprehensive_api",
# Same as 'comprehensive_api', but for proc-macro stuff, because those needs
# to be in a separate crate, see
# https://stackoverflow.com/questions/56713877/why-do-proc-macros-have-to-be-defined-in-proc-macro-crate
"test-apis/comprehensive_api_proc_macro",
# Tests that requires auto traits. Normally we omit auto trait impls because
# they make the output very repetitive.
"test-apis/auto_traits",
# Contains different versions of the same small API. Used mainly to test
# test the API-diffing functionality of this library.
"test-apis/example_api-v0.1.0",
"test-apis/example_api-v0.1.1",
"test-apis/example_api-v0.2.0",
"test-apis/example_api-v0.2.1",
"test-apis/example_api-v0.3.0",
# To test that we pass --cap-lints when building rustdoc JSON
"test-apis/lint_error",
# Has `[lib] name = "other_name"` in Cargo.toml so that package name and lib
# name are different.
"test-apis/other-lib-name",
# Contains no lib, only a bin.
"test-apis/no-lib",
# Test for feature flags
"test-apis/features",
# Contains a public API that use unstable Rust features. Not used in
# regression tests. Only use for one-off experiments, e.g. to understand
# impact of rustdoc JSON format changes.
"test-apis/nightly_api",
]