js-semver 0.4.0

Parser and evaluator for npm's flavor of Semantic Versioning, compliant with node-semver
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "js-semver"
version = "0.4.0"
build = false
include = [
    "src/**/*",
    "benches/**/*",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parser and evaluator for npm's flavor of Semantic Versioning, compliant with node-semver"
readme = "README.md"
keywords = [
    "semver",
    "nodejs",
    "npm",
]
categories = ["no-std"]
license = "MIT-0"
repository = "https://github.com/ryuapp/js-semver"

[features]
default = ["std"]
serde = ["dep:serde"]
std = []

[lib]
name = "js_semver"
path = "src/lib.rs"

[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false

[dependencies.serde]
version = "^1.0.220"
optional = true
package = "serde_core"

[dev-dependencies.criterion2]
version = "3.0.3"

[dev-dependencies.serde_json]
version = "1"

[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
arithmetic_side_effects = "allow"
blanket_clippy_restriction_lints = "allow"
dbg_macro = "deny"
decimal_literal_representation = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
exit = "deny"
expect_used = "deny"
implicit_return = "allow"
indexing_slicing = "allow"
inline_always = "deny"
map_err_ignore = "allow"
min_ident_chars = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
missing_trait_methods = "allow"
needless_doctest_main = "allow"
panic = "deny"
pattern_type_mismatch = "allow"
print_stderr = "deny"
print_stdout = "deny"
pub_use = "allow"
pub_with_shorthand = "allow"
question_mark_used = "allow"
shadow_reuse = "allow"
single_call_fn = "allow"
single_char_lifetime_names = "allow"
std_instead_of_core = "allow"
string_slice = "allow"
todo = "deny"
unimplemented = "deny"
unseparated_literal_suffix = "allow"
unwrap_in_result = "deny"
unwrap_used = "deny"
wildcard_imports = "deny"

[lints.clippy.all]
level = "warn"
priority = -2

[lints.clippy.cargo]
level = "warn"
priority = -2

[lints.clippy.pedantic]
level = "warn"
priority = -2

[lints.clippy.restriction]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unit_bindings = "deny"
unnameable_types = "deny"
unreachable_pub = "deny"
unused_qualifications = "deny"