[package]
edition = "2021"
name = "docspec-core"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core event types and traits for DocSpec streaming document conversion"
readme = "README.md"
keywords = [
"document",
"conversion",
"streaming",
]
categories = [
"parsing",
"encoding",
]
license = "MIT"
repository = "https://github.com/docspec/docspec"
[lib]
name = "docspec_core"
path = "src/lib.rs"
[[test]]
name = "error"
path = "tests/error.rs"
[[test]]
name = "event"
path = "tests/event.rs"
[[test]]
name = "stack"
path = "tests/stack.rs"
[[test]]
name = "text_style"
path = "tests/text_style.rs"
[[test]]
name = "traits"
path = "tests/traits.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[dependencies.thiserror]
version = "2"
default-features = false
[lints.clippy]
absolute_paths = "allow"
alloc_instead_of_core = "warn"
allow_attributes = "allow"
allow_attributes_without_reason = "allow"
assertions_on_result_states = "allow"
big_endian_bytes = "allow"
blanket_clippy_restriction_lints = "allow"
cfg_not_test = "allow"
cognitive_complexity = "deny"
decimal_literal_representation = "allow"
default_numeric_fallback = "allow"
error_impl_error = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
expect_used = "deny"
fn_params_excessive_bools = "allow"
host_endian_bytes = "allow"
implicit_return = "allow"
integer_division_remainder_used = "allow"
let_underscore_untyped = "allow"
little_endian_bytes = "allow"
min_ident_chars = "allow"
missing_docs_in_private_items = "allow"
missing_trait_methods = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
multiple_inherent_impl = "allow"
option_if_let_else = "deny"
partial_pub_fields = "allow"
pattern_type_mismatch = "allow"
print_stderr = "allow"
pub_use = "allow"
question_mark_used = "allow"
redundant_pub_crate = "deny"
semicolon_inside_block = "allow"
shadow_same = "allow"
single_call_fn = "allow"
single_char_lifetime_names = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
str_to_string = "allow"
unnecessary_wraps = "allow"
unwrap_used = "deny"
use_self = "deny"
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.complexity]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.clippy.restriction]
level = "deny"
priority = -1
[lints.clippy.style]
level = "deny"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"