version-number 1.0.0

Two and three component 'major.minor' and 'major.minor.patch' version number parsing
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 = "version-number"
version = "1.0.0"
authors = ["Martijn Gribnau <garm@ilumeo.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Two and three component 'major.minor' and 'major.minor.patch' version number parsing"
readme = "README.md"
keywords = [
    "version",
    "semver",
    "version-core",
    "semver-shorthand",
    "rust-version",
]
categories = ["parser-implementations"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/foresterre/version-number"

[package.metadata.release]
tag-name = "v{{version}}"

[lib]
name = "version_number"
path = "src/lib.rs"
bench = false

[[example]]
name = "convert"
path = "examples/convert.rs"

[[example]]
name = "from_tuple"
path = "examples/from_tuple.rs"

[[example]]
name = "map_version"
path = "examples/map_version.rs"

[[example]]
name = "modular_parser"
path = "examples/modular_parser.rs"

[[example]]
name = "no_labels"
path = "examples/no_labels.rs"

[[example]]
name = "parse_base_version"
path = "examples/parse_base_version.rs"

[[example]]
name = "parse_full_version"
path = "examples/parse_full_version.rs"

[[example]]
name = "parse_version"
path = "examples/parse_version.rs"

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

[dependencies.semver]
version = "1"
optional = true

[dependencies.serde]
version = "1"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dev-dependencies.criterion]
version = "0.8"

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

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