1[package]
2name = "simplecss"
3version = "0.2.2"
4license = "Apache-2.0 OR MIT"
5edition = "2021"
6description = "A simple CSS 2 parser and selector."
7repository = "https://github.com/linebender/simplecss"
8keywords = ["css", "parser", "selector"]
9categories = ["parser-implementations"]
10readme = "README.md"
11# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml and with the relevant README.md files.
12# and with the MSRV in the `Unreleased` section of CHANGELOG.md.
13rust-version = "1.65"
14exclude = [".github", ".clippy.toml", ".gitignore", ".typos.toml"]
15
16[lints]
17rust.unsafe_code = "forbid"
18
19# LINEBENDER LINT SET - Cargo.toml - v3
20# See https://linebender.org/wiki/canonical-lints/
21rust.keyword_idents_2024 = "forbid"
22rust.non_ascii_idents = "forbid"
23rust.non_local_definitions = "forbid"
24rust.unsafe_op_in_unsafe_fn = "forbid"
25
26rust.elided_lifetimes_in_paths = "warn"
27rust.let_underscore_drop = "warn"
28rust.missing_debug_implementations = "warn"
29rust.missing_docs = "warn"
30rust.single_use_lifetimes = "warn"
31rust.trivial_numeric_casts = "warn"
32rust.unexpected_cfgs = "warn"
33rust.unit_bindings = "warn"
34rust.unnameable_types = "warn"
35rust.unreachable_pub = "warn"
36rust.unused_import_braces = "warn"
37rust.unused_lifetimes = "warn"
38rust.unused_macro_rules = "warn"
39rust.unused_qualifications = "warn"
40rust.variant_size_differences = "warn"
41
42clippy.too_many_arguments = "allow"
43
44clippy.allow_attributes = "warn"
45clippy.allow_attributes_without_reason = "warn"
46clippy.cast_possible_truncation = "warn"
47clippy.collection_is_never_read = "warn"
48clippy.dbg_macro = "warn"
49clippy.debug_assert_with_mut_call = "warn"
50clippy.doc_markdown = "warn"
51clippy.exhaustive_enums = "warn"
52clippy.fn_to_numeric_cast_any = "warn"
53clippy.infinite_loop = "warn"
54clippy.large_include_file = "warn"
55clippy.large_stack_arrays = "warn"
56clippy.match_same_arms = "warn"
57clippy.mismatching_type_param_order = "warn"
58clippy.missing_assert_message = "warn"
59clippy.missing_errors_doc = "warn"
60clippy.missing_fields_in_debug = "warn"
61clippy.missing_panics_doc = "warn"
62clippy.partial_pub_fields = "warn"
63clippy.return_self_not_must_use = "warn"
64clippy.same_functions_in_if_condition = "warn"
65clippy.semicolon_if_nothing_returned = "warn"
66clippy.shadow_unrelated = "warn"
67clippy.should_panic_without_expect = "warn"
68clippy.todo = "warn"
69clippy.unseparated_literal_suffix = "warn"
70clippy.use_self = "warn"
71clippy.wildcard_imports = "warn"
72
73clippy.cargo_common_metadata = "warn"
74clippy.negative_feature_names = "warn"
75clippy.redundant_feature_names = "warn"
76clippy.wildcard_dependencies = "warn"
77# END LINEBENDER LINT SET
78
79[features]
80default = ["std"]
81std = ["log/std"]
82
83[dependencies]
84log = { version = "0.4.22", default-features = false }
85
86[dev-dependencies]
87env_logger = { version = "0.11.6", default-features = false }
88roxmltree = "0.20.0"
89