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