[package]
edition = "2024"
rust-version = "1.100.0"
name = "feedparser-rs"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance RSS/Atom/JSON Feed parser"
readme = "README.md"
keywords = [
"rss",
"atom",
"feed",
"parser",
"feedparser",
]
categories = [
"parsing",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bug-ops/feedparser-rs"
[features]
default = ["http"]
http = [
"dep:reqwest",
"dep:tokio",
]
[lib]
name = "feedparser_rs"
path = "src/lib.rs"
[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
[[example]]
name = "parse_file"
path = "examples/parse_file.rs"
[[example]]
name = "parse_url"
path = "examples/parse_url.rs"
required-features = ["http"]
[[example]]
name = "podcast_feed"
path = "examples/podcast_feed.rs"
[[example]]
name = "profile_memory"
path = "examples/profile_memory.rs"
[[test]]
name = "encoding_integration"
path = "tests/encoding_integration.rs"
[[test]]
name = "guid_entity_tests"
path = "tests/guid_entity_tests.rs"
[[test]]
name = "http_integration"
path = "tests/http_integration.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "issue45_test"
path = "tests/issue45_test.rs"
[[test]]
name = "namespace_edge_cases"
path = "tests/namespace_edge_cases.rs"
[[test]]
name = "namespace_integration"
path = "tests/namespace_integration.rs"
[[test]]
name = "test_572_media_thumbnail_long_form"
path = "tests/test_572_media_thumbnail_long_form.rs"
[[test]]
name = "test_589_rss_version_strings"
path = "tests/test_589_rss_version_strings.rs"
[[test]]
name = "test_596_geo_points_limit"
path = "tests/test_596_geo_points_limit.rs"
[[test]]
name = "test_608_depth_after_over_limit_entries"
path = "tests/test_608_depth_after_over_limit_entries.rs"
[[test]]
name = "test_612_rss10_root_lang"
path = "tests/test_612_rss10_root_lang.rs"
[[test]]
name = "test_622_podcast_prose"
path = "tests/test_622_podcast_prose.rs"
[[test]]
name = "test_631_atom_itunes_author"
path = "tests/test_631_atom_itunes_author.rs"
[[test]]
name = "test_632_namespace_parity"
path = "tests/test_632_namespace_parity.rs"
[[test]]
name = "test_633_limits_builders"
path = "tests/test_633_limits_builders.rs"
[[test]]
name = "test_634_fetch_errors"
path = "tests/test_634_fetch_errors.rs"
[[test]]
name = "test_635_entry_image"
path = "tests/test_635_entry_image.rs"
[[test]]
name = "test_639_empty_elements"
path = "tests/test_639_empty_elements.rs"
[[test]]
name = "test_640_xhtml_cdata_selfclosed"
path = "tests/test_640_xhtml_cdata_selfclosed.rs"
[[test]]
name = "test_641_639_regressions"
path = "tests/test_641_639_regressions.rs"
[[test]]
name = "test_641_mismatched_end_tags"
path = "tests/test_641_mismatched_end_tags.rs"
[[test]]
name = "test_642_rss10_channel_qnames"
path = "tests/test_642_rss10_channel_qnames.rs"
[[test]]
name = "test_643_xhtml_limits"
path = "tests/test_643_xhtml_limits.rs"
[[test]]
name = "test_650_skip_element_bozo"
path = "tests/test_650_skip_element_bozo.rs"
[[test]]
name = "test_655_itunes_category_nested"
path = "tests/test_655_itunes_category_nested.rs"
[[test]]
name = "test_662_bare_ampersand"
path = "tests/test_662_bare_ampersand.rs"
[[test]]
name = "test_663_resync_recovery"
path = "tests/test_663_resync_recovery.rs"
[[test]]
name = "test_664_json_truncated"
path = "tests/test_664_json_truncated.rs"
[[test]]
name = "test_665_json_numeric_id"
path = "tests/test_665_json_numeric_id.rs"
[[test]]
name = "test_acceptance_535_date_edges"
path = "tests/test_acceptance_535_date_edges.rs"
[[test]]
name = "test_acceptance_540_no_panic"
path = "tests/test_acceptance_540_no_panic.rs"
[[test]]
name = "test_acceptance_541_charset"
path = "tests/test_acceptance_541_charset.rs"
[[test]]
name = "test_acceptance_collection_limits"
path = "tests/test_acceptance_collection_limits.rs"
[[test]]
name = "test_acceptance_detection_decoding"
path = "tests/test_acceptance_detection_decoding.rs"
[[test]]
name = "test_acceptance_inheritance_bounds"
path = "tests/test_acceptance_inheritance_bounds.rs"
[[test]]
name = "test_acceptance_podcast_ns"
path = "tests/test_acceptance_podcast_ns.rs"
[[test]]
name = "test_adversarial_input"
path = "tests/test_adversarial_input.rs"
[[test]]
name = "test_author_detail"
path = "tests/test_author_detail.rs"
[[test]]
name = "test_channel_image_and_keywords"
path = "tests/test_channel_image_and_keywords.rs"
[[test]]
name = "test_element_lang_cap"
path = "tests/test_element_lang_cap.rs"
[[test]]
name = "test_empty_elements_and_xhtml_wrapper"
path = "tests/test_empty_elements_and_xhtml_wrapper.rs"
[[test]]
name = "test_entity_lang_empty_elements"
path = "tests/test_entity_lang_empty_elements.rs"
[[test]]
name = "test_entry_author_precedence"
path = "tests/test_entry_author_precedence.rs"
[[test]]
name = "test_georss_cc_namespaces"
path = "tests/test_georss_cc_namespaces.rs"
[[test]]
name = "test_itunes_category_byte_limit"
path = "tests/test_itunes_category_byte_limit.rs"
[[test]]
name = "test_itunes_category_limit"
path = "tests/test_itunes_category_limit.rs"
[[test]]
name = "test_jiff_date_migration"
path = "tests/test_jiff_date_migration.rs"
[[test]]
name = "test_json_extension_memory"
path = "tests/test_json_extension_memory.rs"
[[test]]
name = "test_json_nested_extensions"
path = "tests/test_json_nested_extensions.rs"
[[test]]
name = "test_media_namespace"
path = "tests/test_media_namespace.rs"
[[test]]
name = "test_namespace_text_bozo"
path = "tests/test_namespace_text_bozo.rs"
[[test]]
name = "test_nested_text_and_empty_values"
path = "tests/test_nested_text_and_empty_values.rs"
[[test]]
name = "test_parser_limits"
path = "tests/test_parser_limits.rs"
[[test]]
name = "test_podcast_namespace"
path = "tests/test_podcast_namespace.rs"
[[test]]
name = "test_podcast_stream_position"
path = "tests/test_podcast_stream_position.rs"
[[test]]
name = "test_rss10"
path = "tests/test_rss10.rs"
[[test]]
name = "test_rss_optional_elements"
path = "tests/test_rss_optional_elements.rs"
[[test]]
name = "test_sanitize_wiring"
path = "tests/test_sanitize_wiring.rs"
[[test]]
name = "test_self_closing_elements"
path = "tests/test_self_closing_elements.rs"
[[test]]
name = "test_slash_wfw_namespaces"
path = "tests/test_slash_wfw_namespaces.rs"
[[test]]
name = "test_text_byte_limit"
path = "tests/test_text_byte_limit.rs"
[[test]]
name = "test_thr_namespace"
path = "tests/test_thr_namespace.rs"
[[test]]
name = "test_threading_namespace"
path = "tests/test_threading_namespace.rs"
[[test]]
name = "test_timezone_preservation"
path = "tests/test_timezone_preservation.rs"
[[test]]
name = "test_truncated_feeds"
path = "tests/test_truncated_feeds.rs"
[[test]]
name = "test_url_resolution"
path = "tests/test_url_resolution.rs"
[[test]]
name = "test_url_security"
path = "tests/test_url_security.rs"
[[bench]]
name = "date"
path = "benches/date.rs"
harness = false
[[bench]]
name = "parsing"
path = "benches/parsing.rs"
harness = false
[[bench]]
name = "types"
path = "benches/types.rs"
harness = false
[dependencies.ammonia]
version = "4.2"
[dependencies.compact_str]
version = "0.10"
features = ["serde"]
[dependencies.encoding_rs]
version = "0.8"
[dependencies.html-escape]
version = "0.3"
[dependencies.jiff]
version = "1.0.3"
features = [
"perf-inline",
"std",
]
default-features = false
[dependencies.quick-xml]
version = "0.42"
[dependencies.reqwest]
version = "0.13"
features = [
"blocking",
"gzip",
"deflate",
"brotli",
"rustls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true
default-features = false
[dependencies.url]
version = "2.5"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[dev-dependencies.dhat]
version = "0.3.3"
[dev-dependencies.flate2]
version = "1.1"
[dev-dependencies.mockito]
version = "1.7"
[lints.clippy]
allow_attributes_without_reason = "warn"
assert_is_empty = "allow"
expect_used = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
string_slice = "deny"
too_many_lines = "allow"
unreachable = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]