| 1 |
[package] |
| 2 |
name = "cargo-config2" |
| 3 |
version = "0.1.45" #publish:version |
| 4 |
edition = "2021" |
| 5 |
# NB: Sync with msrv badge in README.md |
| 6 |
rust-version = "1.85" # For toml & fixed home_dir |
| 7 |
license = "Apache-2.0 OR MIT" |
| 8 |
repository = "https://github.com/taiki-e/cargo-config2" |
| 9 |
keywords = ["cargo", "config"] |
| 10 |
categories = [] |
| 11 |
exclude = ["/.*", "/tools"] |
| 12 |
description = """ |
| 13 |
Load and resolve Cargo configuration. |
| 14 |
""" |
| 15 |
|
| 16 |
[package.metadata.docs.rs] |
| 17 |
targets = ["x86_64-unknown-linux-gnu"] |
| 18 |
|
| 19 |
[package.metadata.cargo_check_external_types] |
| 20 |
# The following are external types that are allowed to be exposed in our public API. |
| 21 |
allowed_external_types = [ |
| 22 |
"serde_core::*", |
| 23 |
] |
| 24 |
|
| 25 |
[lib] |
| 26 |
doc-scrape-examples = false |
| 27 |
|
| 28 |
[features] |
| 29 |
# Currently unused. |
| 30 |
# # Enables unstable Cargo config fields. |
| 31 |
# unstable = [] |
| 32 |
|
| 33 |
# Note: serde is public dependencies. |
| 34 |
[dependencies] |
| 35 |
serde = "1.0.225" |
| 36 |
serde_derive = "1.0.225" |
| 37 |
toml = { version = "1", default-features = false, features = ["parse", "serde"] } |
| 38 |
|
| 39 |
[dev-dependencies] |
| 40 |
anyhow = "1" |
| 41 |
build-context = "0.1" |
| 42 |
clap = { version = "4", default-features = false, features = ["std", "derive"] } |
| 43 |
fs-err = "3" |
| 44 |
lexopt = "0.3" |
| 45 |
rustversion = "1" |
| 46 |
serde_json = "1" |
| 47 |
shell-escape = "0.1" |
| 48 |
static_assertions = "1" |
| 49 |
tempfile = { version = "3", default-features = false } |
| 50 |
test-helper = { features = ["git"], git = "https://github.com/taiki-e/test-helper.git", rev = "e1f372423748f3d11a6e1eb911c1f2bec3f476d2" } |
| 51 |
toml = "1" |
| 52 |
|
| 53 |
[lints] |
| 54 |
workspace = true |
| 55 |
|
| 56 |
[workspace] |
| 57 |
resolver = "2" |
| 58 |
members = ["bench", "tools/codegen"] |
| 59 |
|
| 60 |
# This table is shared by projects under github.com/taiki-e. |
| 61 |
# Expect for unexpected_cfgs.check-cfg, it is not intended for manual editing. |
| 62 |
[workspace.lints.rust] |
| 63 |
deprecated_safe = "warn" |
| 64 |
improper_ctypes = "warn" |
| 65 |
improper_ctypes_definitions = "warn" |
| 66 |
non_ascii_idents = "warn" |
| 67 |
rust_2018_idioms = "warn" |
| 68 |
single_use_lifetimes = "warn" |
| 69 |
unexpected_cfgs = { level = "warn", check-cfg = [ |
| 70 |
'cfg(careful)', |
| 71 |
] } |
| 72 |
unnameable_types = "warn" |
| 73 |
unreachable_pub = "warn" |
| 74 |
unsafe_op_in_unsafe_fn = "warn" |
| 75 |
[workspace.lints.clippy] |
| 76 |
all = "warn" # Downgrade deny-by-default lints |
| 77 |
pedantic = "warn" |
| 78 |
as_ptr_cast_mut = "warn" |
| 79 |
as_underscore = "warn" |
| 80 |
default_union_representation = "warn" |
| 81 |
inline_asm_x86_att_syntax = "warn" |
| 82 |
trailing_empty_array = "warn" |
| 83 |
transmute_undefined_repr = "warn" |
| 84 |
undocumented_unsafe_blocks = "warn" |
| 85 |
unused_trait_names = "warn" |
| 86 |
# Suppress buggy or noisy clippy lints |
| 87 |
bool_assert_comparison = { level = "allow", priority = 1 } |
| 88 |
borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286 |
| 89 |
cast_lossless = { level = "allow", priority = 1 } # suggested code has poor codegen with -C opt-level=0 https://godbolt.org/z/GzTxzbd9q |
| 90 |
collapsible_match = { level = "allow", priority = 1 } |
| 91 |
declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 |
| 92 |
doc_markdown = { level = "allow", priority = 1 } |
| 93 |
float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 |
| 94 |
incompatible_msrv = { level = "allow", priority = 1 } # buggy: doesn't consider cfg, https://github.com/rust-lang/rust-clippy/issues/12280, https://github.com/rust-lang/rust-clippy/issues/12257#issuecomment-2093667187 |
| 95 |
manual_assert = { level = "allow", priority = 1 } |
| 96 |
manual_range_contains = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/6455#issuecomment-1225966395 |
| 97 |
missing_errors_doc = { level = "allow", priority = 1 } |
| 98 |
module_name_repetitions = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+module_name_repetitions |
| 99 |
naive_bytecount = { level = "allow", priority = 1 } |
| 100 |
nonminimal_bool = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+nonminimal_bool |
| 101 |
range_plus_one = { level = "allow", priority = 1 } # buggy: https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+is%3Aopen+range_plus_one |
| 102 |
similar_names = { level = "allow", priority = 1 } |
| 103 |
single_match = { level = "allow", priority = 1 } |
| 104 |
single_match_else = { level = "allow", priority = 1 } |
| 105 |
struct_excessive_bools = { level = "allow", priority = 1 } |
| 106 |
struct_field_names = { level = "allow", priority = 1 } |
| 107 |
too_many_arguments = { level = "allow", priority = 1 } |
| 108 |
too_many_lines = { level = "allow", priority = 1 } |
| 109 |
type_complexity = { level = "allow", priority = 1 } |